提交 6e92a5e3 编写于 作者: J Jason Simmons 提交者: GitHub

Remove unused code in FontCacheSkia (#2805)

上级 3a4e0a0c
......@@ -49,24 +49,6 @@
#include "third_party/skia/include/ports/SkFontConfigInterface.h"
#endif
#if !OS(WIN) && !OS(ANDROID) && !OS(IOS) && !OS(MACOSX)
// TODO(bungeman) remove this temporary code ASAP.
// This namespace exists to ease transition of SkTypeface from using SkStream to SkStreamAsset.
namespace tmp {
// Like std::declval but only returns lvalue references, ok since it isn't used on rvalue references.
template<typename T> T& declvall();
// The return type of SkFontConfigInterface::openStream(const SkFontConfigInterface::FontIdentity&).
using StreamType = decltype(tmp::declvall<SkFontConfigInterface>().openStream(tmp::declvall<const SkFontConfigInterface::FontIdentity&>()));
}
static tmp::StreamType streamForFontconfigInterfaceId(int fontconfigInterfaceId)
{
SkAutoTUnref<SkFontConfigInterface> fci(SkFontConfigInterface::RefGlobal());
SkFontConfigInterface::FontIdentity fontIdentity;
fontIdentity.fID = fontconfigInterfaceId;
return fci->openStream(fontIdentity);
}
#endif
namespace blink {
static int toSkiaWeight(FontWeight weight)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册