| 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
|
|
|