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

Unified Diff: src/core/SkTypefaceCache.h

Issue 664173003: Remove a pointless use of SkWeakRefCnt. (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: missed also Created 6 years, 2 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 ba851ee0b6a4b2dc45c7fca456e56c0a862796ce..c6b433deadc6245a291331a9d690129d877d396c 100644
--- a/src/core/SkTypefaceCache.h
+++ b/src/core/SkTypefaceCache.h
@@ -39,7 +39,7 @@ public:
* whose refcnt is 1 (meaning only the cache is an owner) will be
* unref()ed.
*/
- void add(SkTypeface*, const SkFontStyle& requested, bool strong = true);
+ void add(SkTypeface*, const SkFontStyle& requested);
/**
* Search the cache for a typeface with the specified fontID (uniqueID).
@@ -72,9 +72,7 @@ public:
// These are static wrappers around a global instance of a cache.
- static void Add(SkTypeface*,
- const SkFontStyle& requested,
- bool strong = true);
+ static void Add(SkTypeface*, const SkFontStyle& requested);
static SkTypeface* FindByID(SkFontID fontID);
static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx);
static void PurgeAll();
@@ -91,7 +89,6 @@ private:
struct Rec {
SkTypeface* fFace;
- bool fStrong;
SkFontStyle fRequestedStyle;
};
SkTDArray<Rec> fArray;
« 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