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

Unified Diff: sky/engine/platform/fonts/FontCustomPlatformData.h

Issue 709603006: Remove a bunch of OS(MACOSX) code (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Even more Created 6 years, 1 month 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: sky/engine/platform/fonts/FontCustomPlatformData.h
diff --git a/sky/engine/platform/fonts/FontCustomPlatformData.h b/sky/engine/platform/fonts/FontCustomPlatformData.h
index 4ed2f95930fd225002e5ac68e3c4928998311b26..aae08011b096c74fd1219707e04bc19d76c41aa2 100644
--- a/sky/engine/platform/fonts/FontCustomPlatformData.h
+++ b/sky/engine/platform/fonts/FontCustomPlatformData.h
@@ -40,12 +40,6 @@
#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 {
@@ -64,12 +58,7 @@ public:
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;
};

Powered by Google App Engine
This is Rietveld 408576698