Index: Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp |
diff --git a/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp b/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp |
index 0120b9ec0e8b4a687c3c74a7e1a91eb64607d8e0..ac771356b191d18ac650412bc0105a66c1d36a97 100644 |
--- a/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp |
+++ b/Source/core/platform/graphics/skia/FontCacheSkiaWin.cpp |
@@ -32,6 +32,8 @@ |
#include "config.h" |
#include "core/platform/graphics/FontCache.h" |
+#include "SkFontMgr.h" |
+#include "SkTypeface_win.h" |
#include "core/platform/NotImplemented.h" |
#include "core/platform/graphics/Font.h" |
#include "core/platform/graphics/SimpleFontData.h" |
@@ -40,6 +42,13 @@ |
namespace WebCore { |
+FontCache::FontCache() |
+ : m_purgePreventCount(0) |
+{ |
+ m_fontManager = adoptPtr(SkFontMgr_New_GDI()); |
+} |
+ |
+ |
static bool fontContainsCharacter(const FontPlatformData* fontData, const wchar_t* family, UChar32 character) |
{ |
SkPaint paint; |