From 43b8b36b20ae00e2d78421c4cda1f3f922983a20 Mon Sep 17 00:00:00 2001 From: bungeman Date: Mon, 20 Oct 2014 12:33:59 -0700 Subject: Replace SkTypeface::Style with SkFontStyle. Review URL: https://codereview.chromium.org/488143002 --- src/core/SkTypefaceCache.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'src/core/SkTypefaceCache.cpp') diff --git a/src/core/SkTypefaceCache.cpp b/src/core/SkTypefaceCache.cpp index f864e1c9dc..cfa301ef39 100644 --- a/src/core/SkTypefaceCache.cpp +++ b/src/core/SkTypefaceCache.cpp @@ -29,7 +29,7 @@ SkTypefaceCache::~SkTypefaceCache() { } void SkTypefaceCache::add(SkTypeface* face, - SkTypeface::Style requestedStyle, + const SkFontStyle& requestedStyle, bool strong) { if (fArray.count() >= TYPEFACE_CACHE_LIMIT) { this->purge(TYPEFACE_CACHE_LIMIT >> 2); @@ -120,7 +120,7 @@ SkFontID SkTypefaceCache::NewFontID() { SK_DECLARE_STATIC_MUTEX(gMutex); void SkTypefaceCache::Add(SkTypeface* face, - SkTypeface::Style requestedStyle, + const SkFontStyle& requestedStyle, bool strong) { SkAutoMutexAcquire ama(gMutex); Get().add(face, requestedStyle, strong); @@ -145,9 +145,9 @@ void SkTypefaceCache::PurgeAll() { /////////////////////////////////////////////////////////////////////////////// #ifdef SK_DEBUG -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()); +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()); return false; } #endif -- cgit v1.2.3