Index: src/core/SkTypefaceCache.h |
diff --git a/src/core/SkTypefaceCache.h b/src/core/SkTypefaceCache.h |
index ba851ee0b6a4b2dc45c7fca456e56c0a862796ce..ae37ab76ec4ba6cfd4984087606eb78f40030f08 100644 |
--- a/src/core/SkTypefaceCache.h |
+++ b/src/core/SkTypefaceCache.h |
@@ -31,7 +31,7 @@ |
* for the given context. The passed typeface is owned by the cache and is |
* not additionally ref()ed. The typeface may be in the disposed state. |
*/ |
- typedef bool(*FindProc)(SkTypeface*, const SkFontStyle&, void* context); |
+ typedef bool (*FindProc)(SkTypeface*, SkTypeface::Style, void* context); |
/** |
* Add a typeface to the cache. This ref()s the typeface, so that the |
@@ -39,7 +39,7 @@ |
* 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*, SkTypeface::Style requested, bool strong = true); |
/** |
* Search the cache for a typeface with the specified fontID (uniqueID). |
@@ -73,7 +73,7 @@ |
// These are static wrappers around a global instance of a cache. |
static void Add(SkTypeface*, |
- const SkFontStyle& requested, |
+ SkTypeface::Style requested, |
bool strong = true); |
static SkTypeface* FindByID(SkFontID fontID); |
static SkTypeface* FindByProcAndRef(FindProc proc, void* ctx); |
@@ -90,9 +90,9 @@ |
void purge(int count); |
struct Rec { |
- SkTypeface* fFace; |
- bool fStrong; |
- SkFontStyle fRequestedStyle; |
+ SkTypeface* fFace; |
+ bool fStrong; |
+ SkTypeface::Style fRequestedStyle; |
}; |
SkTDArray<Rec> fArray; |
}; |