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
This commit is contained in:
parent
4d9f094349
commit
49360dfa61
@ -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;
|
||||
|
@ -211,8 +211,6 @@ private:
|
||||
SkTDArray<SkGlyph*> fGlyphArray;
|
||||
SkChunkAlloc fGlyphAlloc;
|
||||
|
||||
int fMetricsCount, fAdvanceCount;
|
||||
|
||||
struct CharGlyphRec {
|
||||
uint32_t fID; // unichar + subpixel
|
||||
SkGlyph* fGlyph;
|
||||
|
Loading…
Reference in New Issue
Block a user