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

Unified Diff: third_party/WebKit/Source/platform/fonts/FontPlatformData.h

Issue 2858573002: Use FreeType for OpenType Variations on CoreText < 10.12 (Closed)
Patch Set: Use FreeType for OpenType Variations on CoreText < 10.12 Created 3 years, 7 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: third_party/WebKit/Source/platform/fonts/FontPlatformData.h
diff --git a/third_party/WebKit/Source/platform/fonts/FontPlatformData.h b/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
index 86b210872d71eb44808a3241923851eb525608d7..d159487ca4f87917bd9c5c2dbc6dd162e5968503 100644
--- a/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
+++ b/third_party/WebKit/Source/platform/fonts/FontPlatformData.h
@@ -110,6 +110,10 @@ class PLATFORM_EXPORT FontPlatformData {
~FontPlatformData();
#if OS(MACOSX)
+ // These methods return a nullptr for FreeType backed SkTypefaces, compare
+ // FontCustomPlatformData, which are used for variable fonts on Mac OS <
+ // 10.12. They should not return nullptr otherwise. So they allow
+ // distinguishing which backend the SkTypeface is using.
CTFontRef CtFont() const;
CGFontRef CgFont() const;
#endif

Powered by Google App Engine
This is Rietveld 408576698