| Index: Source/platform/fonts/win/FontCacheSkiaWin.cpp
|
| diff --git a/Source/platform/fonts/win/FontCacheSkiaWin.cpp b/Source/platform/fonts/win/FontCacheSkiaWin.cpp
|
| index 8f1ae21f65091c601becef20ebf005374fe6b56b..be6d0629b603f10567bc4564e947958d2b4db8b7 100644
|
| --- a/Source/platform/fonts/win/FontCacheSkiaWin.cpp
|
| +++ b/Source/platform/fonts/win/FontCacheSkiaWin.cpp
|
| @@ -42,6 +42,18 @@
|
|
|
| namespace WebCore {
|
|
|
| +HashMap<String, SkTypeface*>* FontCache::s_sideloadedFonts = 0;
|
| +
|
| +// static
|
| +void FontCache::addSideloadedFont(SkTypeface* typeface)
|
| +{
|
| + if (!s_sideloadedFonts)
|
| + s_sideloadedFonts = new HashMap<String, SkTypeface*>;
|
| + SkString name;
|
| + typeface->getFamilyName(&name);
|
| + s_sideloadedFonts->set(name.c_str(), typeface);
|
| +}
|
| +
|
| FontCache::FontCache()
|
| : m_purgePreventCount(0)
|
| {
|
|
|