Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(902)

Unified Diff: Source/core/platform/graphics/FontCache.h

Issue 21353004: Use Skia for font selection on windows (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: Source/core/platform/graphics/FontCache.h
diff --git a/Source/core/platform/graphics/FontCache.h b/Source/core/platform/graphics/FontCache.h
index b268374ac5ecc077be223094b99d6a0a7594e506..a7aafad6504fac5379ef5459e03ca06a1fa00905 100644
--- a/Source/core/platform/graphics/FontCache.h
+++ b/Source/core/platform/graphics/FontCache.h
@@ -44,6 +44,8 @@
#include <mlang.h>
#endif
+class SkTypeface;
+
namespace WebCore {
class Font;
@@ -126,6 +128,9 @@ private:
PassRefPtr<SimpleFontData> getSimilarFontPlatformData(const Font&);
FontPlatformData* createFontPlatformData(const FontDescription&, const AtomicString& family);
+ // Implemented on skia platforms.
+ SkTypeface* createTypeface(const FontDescription&, const AtomicString& family);
+
PassRefPtr<SimpleFontData> getFontResourceData(const FontPlatformData*, ShouldRetain = Retain);
const FontPlatformData* getFallbackFontData(const FontDescription&);

Powered by Google App Engine
This is Rietveld 408576698