diff options
author | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-26 23:17:46 +0000 |
---|---|---|
committer | bungeman@google.com <bungeman@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2013-11-26 23:17:46 +0000 |
commit | 49360dfa6144621db9f3ec25995b8e817a0003c0 (patch) | |
tree | 9ee115900a31536ceab6c6b888732e7464678ce5 /src | |
parent | 4d9f094349575eb2ab5cf1ac2267783172ebe63e (diff) |
Remove unused fields from SkGlyphCache.
Review URL: https://codereview.chromium.org/89423003
git-svn-id: http://skia.googlecode.com/svn/trunk@12407 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src')
-rw-r--r-- | src/core/SkGlyphCache.cpp | 4 | ||||
-rw-r--r-- | src/core/SkGlyphCache.h | 2 |
2 files changed, 0 insertions, 6 deletions
diff --git a/src/core/SkGlyphCache.cpp b/src/core/SkGlyphCache.cpp index faa3f89049..a78b197a55 100644 --- a/src/core/SkGlyphCache.cpp +++ b/src/core/SkGlyphCache.cpp @@ -87,8 +87,6 @@ SkGlyphCache::SkGlyphCache(SkTypeface* typeface, const SkDescriptor* desc, SkSca fGlyphArray.setReserve(kMinGlyphCount); - fMetricsCount = 0; - fAdvanceCount = 0; fAuxProcList = NULL; } @@ -320,11 +318,9 @@ SkGlyph* SkGlyphCache::lookupMetrics(uint32_t id, MetricsType mtype) { if (kJustAdvance_MetricsType == mtype) { fScalerContext->getAdvance(glyph); - fAdvanceCount += 1; } else { SkASSERT(kFull_MetricsType == mtype); fScalerContext->getMetrics(glyph); - fMetricsCount += 1; } return glyph; diff --git a/src/core/SkGlyphCache.h b/src/core/SkGlyphCache.h index 52a8132f72..7b2ebb844e 100644 --- a/src/core/SkGlyphCache.h +++ b/src/core/SkGlyphCache.h @@ -211,8 +211,6 @@ private: SkTDArray<SkGlyph*> fGlyphArray; SkChunkAlloc fGlyphAlloc; - int fMetricsCount, fAdvanceCount; - struct CharGlyphRec { uint32_t fID; // unichar + subpixel SkGlyph* fGlyph; |