Index: Source/platform/fonts/FontCustomPlatformData.h |
diff --git a/Source/platform/fonts/FontCustomPlatformData.h b/Source/platform/fonts/FontCustomPlatformData.h |
index 30f44b180014d6530223b2c13ee102d58df9b604..c2f7824767e492e52caa4ca54e74e8b394c3c77b 100644 |
--- a/Source/platform/fonts/FontCustomPlatformData.h |
+++ b/Source/platform/fonts/FontCustomPlatformData.h |
@@ -39,6 +39,12 @@ |
#include "wtf/RefPtr.h" |
#include "wtf/text/WTFString.h" |
+#if OS(MACOSX) |
+#include "wtf/RetainPtr.h" |
+#include <CoreFoundation/CFBase.h> |
+typedef struct CGFont* CGFontRef; |
+#endif |
+ |
class SkTypeface; |
namespace blink { |
@@ -57,7 +63,12 @@ |
static bool supportsFormat(const String&); |
private: |
+#if OS(MACOSX) |
+ explicit FontCustomPlatformData(CGFontRef, PassRefPtr<SkTypeface>); |
+ RetainPtr<CGFontRef> m_cgFont; |
+#else |
explicit FontCustomPlatformData(PassRefPtr<SkTypeface>); |
+#endif |
RefPtr<SkTypeface> m_typeface; |
}; |