Lines Matching refs:glyph
165 SkGlyph* glyph = fGlyphMap.find(packedGlyphID); in lookupByPackedGlyphID() local
167 if (nullptr == glyph) { in lookupByPackedGlyphID()
168 glyph = this->allocateNewGlyph(packedGlyphID, type); in lookupByPackedGlyphID()
170 if (type == kFull_MetricsType && glyph->isJustAdvance()) { in lookupByPackedGlyphID()
171 fScalerContext->getMetrics(glyph); in lookupByPackedGlyphID()
174 return glyph; in lookupByPackedGlyphID()
182 SkGlyph glyph; in allocateNewGlyph() local
183 glyph.initGlyphFromCombinedID(packedGlyphID); in allocateNewGlyph()
184 glyphPtr = fGlyphMap.set(glyph); in allocateNewGlyph()
198 const void* SkGlyphCache::findImage(const SkGlyph& glyph) { in findImage() argument
199 if (glyph.fWidth > 0 && glyph.fWidth < kMaxGlyphWidth) { in findImage()
200 if (nullptr == glyph.fImage) { in findImage()
201 size_t size = glyph.computeImageSize(); in findImage()
202 const_cast<SkGlyph&>(glyph).fImage = fGlyphAlloc.alloc(size, in findImage()
205 if (glyph.fImage) { in findImage()
206 fScalerContext->getImage(glyph); in findImage()
215 return glyph.fImage; in findImage()
218 const SkPath* SkGlyphCache::findPath(const SkGlyph& glyph) { in findPath() argument
219 if (glyph.fWidth) { in findPath()
220 if (glyph.fPathData == nullptr) { in findPath()
223 const_cast<SkGlyph&>(glyph).fPathData = pathData; in findPath()
226 fScalerContext->getPath(glyph, path); in findPath()
230 return glyph.fPathData ? glyph.fPathData->fPath : nullptr; in findPath()
316 const SkGlyph::Intercept* SkGlyphCache::MatchBounds(const SkGlyph* glyph, in MatchBounds() argument
318 if (!glyph->fPathData) { in MatchBounds()
321 const SkGlyph::Intercept* intercept = glyph->fPathData->fIntercept; in MatchBounds()
332 bool yAxis, SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts() argument
333 const SkGlyph::Intercept* match = MatchBounds(glyph, bounds); in findIntercepts()
344 intercept->fNext = glyph->fPathData->fIntercept; in findIntercepts()
349 glyph->fPathData->fIntercept = intercept; in findIntercepts()
350 const SkPath* path = glyph->fPathData->fPath; in findIntercepts()
758 const SkGlyph* glyph = &fGlyphArray[i]; in validate() local
759 SkASSERT(glyph); in validate()
760 if (glyph->fImage) { in validate()
761 SkASSERT(fGlyphAlloc.contains(glyph->fImage)); in validate()