Index: src/core/SkTypefaceCache.cpp |
diff --git a/src/core/SkTypefaceCache.cpp b/src/core/SkTypefaceCache.cpp |
index cfa301ef39def299aa2abb801cec433daa3f2307..f864e1c9dc5105b4961eacd0253c48c7a18a67d8 100644 |
--- a/src/core/SkTypefaceCache.cpp |
+++ b/src/core/SkTypefaceCache.cpp |
@@ -29,7 +29,7 @@ |
} |
void SkTypefaceCache::add(SkTypeface* face, |
- const SkFontStyle& requestedStyle, |
+ SkTypeface::Style requestedStyle, |
bool strong) { |
if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { |
this->purge(TYPEFACE_CACHE_LIMIT >> 2); |
@@ -120,7 +120,7 @@ |
SK_DECLARE_STATIC_MUTEX(gMutex); |
void SkTypefaceCache::Add(SkTypeface* face, |
- const SkFontStyle& requestedStyle, |
+ SkTypeface::Style requestedStyle, |
bool strong) { |
SkAutoMutexAcquire ama(gMutex); |
Get().add(face, requestedStyle, strong); |
@@ -145,9 +145,9 @@ |
/////////////////////////////////////////////////////////////////////////////// |
#ifdef SK_DEBUG |
-static bool DumpProc(SkTypeface* face, const SkFontStyle& s, void* ctx) { |
- SkDebugf("SkTypefaceCache: face %p fontID %d weight %d width %d style %d refcnt %d\n", |
- face, face->uniqueID(), s.weight(), s.width(), s.slant(), face->getRefCnt()); |
+static bool DumpProc(SkTypeface* face, SkTypeface::Style style, void* ctx) { |
+ SkDebugf("SkTypefaceCache: face %p fontID %d style %d refcnt %d\n", |
+ face, face->uniqueID(), style, face->getRefCnt()); |
return false; |
} |
#endif |