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

Unified Diff: include/ports/SkFontMgr.h

Issue 1882803002: Remove SK_VERY_LEGACY_CREATE_TYPEFACE. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Created 4 years, 8 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
« no previous file with comments | « include/ports/SkFontConfigInterface.h ('k') | include/ports/SkFontMgr_indirect.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: include/ports/SkFontMgr.h
diff --git a/include/ports/SkFontMgr.h b/include/ports/SkFontMgr.h
index a961cd48ad515a3e97b17bb71b08139ef0563ef3..ad6ed545d9d58b6b8decac26a1005790ddb4d2f4 100644
--- a/include/ports/SkFontMgr.h
+++ b/include/ports/SkFontMgr.h
@@ -164,11 +164,7 @@ public:
*/
SkTypeface* createFromFile(const char path[], int ttcIndex = 0) const;
-#ifdef SK_VERY_LEGACY_CREATE_TYPEFACE
- SkTypeface* legacyCreateTypeface(const char familyName[], unsigned typefaceStyleBits) const;
-#else
SkTypeface* legacyCreateTypeface(const char familyName[], SkFontStyle style) const;
-#endif
/**
* Return a ref to the default fontmgr. The caller must call unref() on
@@ -199,12 +195,7 @@ protected:
virtual SkTypeface* onCreateFromFontData(SkFontData*) const;
virtual SkTypeface* onCreateFromFile(const char path[], int ttcIndex) const = 0;
-#ifdef SK_VERY_LEGACY_CREATE_TYPEFACE
- virtual SkTypeface* onLegacyCreateTypeface(const char familyName[],
- unsigned styleBits) const = 0;
-#else
virtual SkTypeface* onLegacyCreateTypeface(const char familyName[], SkFontStyle) const = 0;
-#endif
private:
static SkFontMgr* Factory(); // implemented by porting layer
« no previous file with comments | « include/ports/SkFontConfigInterface.h ('k') | include/ports/SkFontMgr_indirect.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698