Lines Matching refs:glyphPtr
92 SkGlyph* glyphPtr = fGlyphMap.findOrNull(packedGlyphID); in lookupByPackedGlyphID() local
94 if (nullptr == glyphPtr) { in lookupByPackedGlyphID()
95 glyphPtr = this->allocateNewGlyph(packedGlyphID, type); in lookupByPackedGlyphID()
96 fGlyphMap.set(glyphPtr); in lookupByPackedGlyphID()
98 if (type == kFull_MetricsType && glyphPtr->isJustAdvance()) { in lookupByPackedGlyphID()
99 fScalerContext->getMetrics(glyphPtr); in lookupByPackedGlyphID()
102 return glyphPtr; in lookupByPackedGlyphID()
108 SkGlyph* glyphPtr = fAlloc.make<SkGlyph>(packedGlyphID); in allocateNewGlyph() local
109 fGlyphMap.set(glyphPtr); in allocateNewGlyph()
112 return glyphPtr; in allocateNewGlyph()
114 fScalerContext->getAdvance(glyphPtr); in allocateNewGlyph()
117 fScalerContext->getMetrics(glyphPtr); in allocateNewGlyph()
120 SkASSERT(glyphPtr->fID != SkPackedGlyphID()); in allocateNewGlyph()
121 return glyphPtr; in allocateNewGlyph()
211 if (SkGlyph* glyphPtr = fGlyphMap.findOrNull(packedGlyphID)) { in getCachedGlyphAnySubPix() local
212 return glyphPtr; in getCachedGlyphAnySubPix()
433 fGlyphMap.foreach ([&memoryUsed](const SkGlyph* glyphPtr) { in forceValidate() argument
435 if (glyphPtr->fImage) { in forceValidate()
436 memoryUsed += glyphPtr->computeImageSize(); in forceValidate()
438 if (glyphPtr->fPathData) { in forceValidate()
439 memoryUsed += compute_path_size(glyphPtr->fPathData->fPath); in forceValidate()