chromium_org/third_party/skia/src/core/SkGlyphCache.cpp
ここはchromium_orgで使用していないようだ。
makeを実行してもコンパイルが動かなかった。
/external/chromium_org/third_party/skia/src/core/SkGlyphCache.cpp
56 SkGlyphCache::SkGlyphCache(SkTypeface* typeface, const SkDescriptor* desc, SkScalerContext* ctx) 57 : fScalerContext(ctx), fGlyphAlloc(kMinAllocAmount) { 58 SkASSERT(typeface); 59 SkASSERT(desc); 60 SkASSERT(ctx); 61 62 fPrev = fNext = NULL; 63 64 fDesc = desc->copy(); 65 fScalerContext->getFontMetrics(&fFontMetrics); 66 67 // init to 0 so that all of the pointers will be null 68 memset(fGlyphHash, 0, sizeof(fGlyphHash)); 69 // init with 0xFF so that the charCode field will be -1, which is invalid 70 memset(fCharToGlyphHash, 0xFF, sizeof(fCharToGlyphHash)); 71 72 fMemoryUsed = sizeof(*this); 73 74 fGlyphArray.setReserve(kMinGlyphCount); 75 76 fMetricsCount = 0; 77 fAdvanceCount = 0; 78 fAuxProcList = NULL; 79 }