Index: third_party/WebKit/Source/web/linux/WebFontRendering.cpp |
diff --git a/third_party/WebKit/Source/web/linux/WebFontRendering.cpp b/third_party/WebKit/Source/web/linux/WebFontRendering.cpp |
index 621ff44ff9068862aee7bee9814be55a8efcaf1b..63b21a3a5a4852496c5beaec261ba7ff1d172e35 100644 |
--- a/third_party/WebKit/Source/web/linux/WebFontRendering.cpp |
+++ b/third_party/WebKit/Source/web/linux/WebFontRendering.cpp |
@@ -31,6 +31,7 @@ |
#include "public/web/linux/WebFontRendering.h" |
#include "core/layout/LayoutThemeFontProvider.h" |
+#include "platform/fonts/FontCache.h" |
#include "platform/fonts/FontDescription.h" |
#include "platform/fonts/FontPlatformData.h" |
@@ -40,6 +41,13 @@ using blink::FontPlatformData; |
namespace blink { |
// static |
+void WebFontRendering::setSkiaFontManager(SkFontMgr* fontMgr) |
+{ |
+ WTF::adopted(fontMgr); |
+ FontCache::setFontManager(RefPtr<SkFontMgr>(fontMgr)); |
+} |
+ |
+// static |
void WebFontRendering::setHinting(SkPaint::Hinting hinting) |
{ |
FontPlatformData::setHinting(hinting); |