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

Unified Diff: src/core/SkTypefaceCache.h

Issue 1125763002: Fix typeface ids on Mac. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: Remove some leaks, maybe some races. Created 5 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 | « no previous file | src/core/SkTypefaceCache.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/core/SkTypefaceCache.h
diff --git a/src/core/SkTypefaceCache.h b/src/core/SkTypefaceCache.h
index c6b433deadc6245a291331a9d690129d877d396c..792958679c45a926bb4076f14b5edd9f79191d13 100644
--- a/src/core/SkTypefaceCache.h
+++ b/src/core/SkTypefaceCache.h
@@ -42,14 +42,6 @@ public:
void add(SkTypeface*, const SkFontStyle& requested);
/**
- * Search the cache for a typeface with the specified fontID (uniqueID).
- * If one is found, return it (its reference count is unmodified). If none
- * is found, return NULL. The reference count is unmodified as it is
- * assumed that the stack will contain a ref to the typeface.
- */
- SkTypeface* findByID(SkFontID findID) const;
-
- /**
* Iterate through the cache, calling proc(typeface, ctx) with each
* typeface. If proc returns true, then we return that typeface (this
* ref()s the typeface). If it never returns true, we return NULL.
@@ -73,7 +65,6 @@ public:
// These are static wrappers around a global instance of a cache.
static void Add(SkTypeface*, const SkFontStyle& requested);
- static SkTypeface* FindByID(SkFontID fontID);
static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx);
static void PurgeAll();
« no previous file with comments | « no previous file | src/core/SkTypefaceCache.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698