Lines Matching refs:SkGlyph

36 #define kMinAllocAmount     ((sizeof(SkGlyph) + kMinGlyphImageSize) * kMinGlyphCount)
56 fGlyphMap.foreach ([](SkGlyph* g) { in ~SkGlyphCache()
72 fPackedUnicharIDToPackedGlyphID[i].fPackedUnicharID = SkGlyph::kImpossibleID; in getCharGlyphRec()
90 PackedUnicharID packedUnicharID = SkGlyph::MakeID(charCode); in unicharToGlyph()
94 return SkGlyph::ID2Code(rec.fPackedGlyphID); in unicharToGlyph()
114 const SkGlyph& SkGlyphCache::getUnicharAdvance(SkUnichar charCode) { in getUnicharAdvance()
119 const SkGlyph& SkGlyphCache::getGlyphIDAdvance(uint16_t glyphID) { in getGlyphIDAdvance()
121 PackedGlyphID packedGlyphID = SkGlyph::MakeID(glyphID); in getGlyphIDAdvance()
127 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode) { in getUnicharMetrics()
132 const SkGlyph& SkGlyphCache::getUnicharMetrics(SkUnichar charCode, SkFixed x, SkFixed y) { in getUnicharMetrics()
137 const SkGlyph& SkGlyphCache::getGlyphIDMetrics(uint16_t glyphID) { in getGlyphIDMetrics()
139 PackedGlyphID packedGlyphID = SkGlyph::MakeID(glyphID); in getGlyphIDMetrics()
143 const SkGlyph& SkGlyphCache::getGlyphIDMetrics(uint16_t glyphID, SkFixed x, SkFixed y) { in getGlyphIDMetrics()
145 PackedGlyphID packedGlyphID = SkGlyph::MakeID(glyphID, x, y); in getGlyphIDMetrics()
149 SkGlyph* SkGlyphCache::lookupByChar(SkUnichar charCode, MetricsType type, SkFixed x, SkFixed y) { in lookupByChar()
150 PackedUnicharID id = SkGlyph::MakeID(charCode, x, y); in lookupByChar()
156 PackedGlyphID combinedID = SkGlyph::MakeID(fScalerContext->charToGlyphID(charCode), x, y); in lookupByChar()
164 SkGlyph* SkGlyphCache::lookupByPackedGlyphID(PackedGlyphID packedGlyphID, MetricsType type) { in lookupByPackedGlyphID()
165 SkGlyph* glyph = fGlyphMap.find(packedGlyphID); in lookupByPackedGlyphID()
177 SkGlyph* SkGlyphCache::allocateNewGlyph(PackedGlyphID packedGlyphID, MetricsType mtype) { in allocateNewGlyph()
178 fMemoryUsed += sizeof(SkGlyph); in allocateNewGlyph()
180 SkGlyph* glyphPtr; in allocateNewGlyph()
182 SkGlyph glyph; in allocateNewGlyph()
194 SkASSERT(glyphPtr->fID != SkGlyph::kImpossibleID); in allocateNewGlyph()
198 const void* SkGlyphCache::findImage(const SkGlyph& glyph) { in findImage()
202 const_cast<SkGlyph&>(glyph).fImage = fGlyphAlloc.alloc(size, in findImage()
218 const SkPath* SkGlyphCache::findPath(const SkGlyph& glyph) { in findPath()
221 SkGlyph::PathData* pathData = in findPath()
222 (SkGlyph::PathData* ) fGlyphAlloc.allocThrow(sizeof(SkGlyph::PathData)); in findPath()
223 const_cast<SkGlyph&>(glyph).fPathData = pathData; in findPath()
254 void SkGlyphCache::OffsetResults(const SkGlyph::Intercept* intercept, SkScalar scale, in OffsetResults()
265 void SkGlyphCache::AddInterval(SkScalar val, SkGlyph::Intercept* intercept) { in AddInterval()
271 bool yAxis, SkGlyph::Intercept* intercept) { in AddPoints()
281 SkGlyph::Intercept* intercept) { in AddLine()
291 SkGlyph::Intercept* intercept) { in AddQuad()
304 SkGlyph::Intercept* intercept) { in AddCubic()
316 const SkGlyph::Intercept* SkGlyphCache::MatchBounds(const SkGlyph* glyph, in MatchBounds()
321 const SkGlyph::Intercept* intercept = glyph->fPathData->fIntercept; in MatchBounds()
332 bool yAxis, SkGlyph* glyph, SkScalar* array, int* count) { in findIntercepts()
333 const SkGlyph::Intercept* match = MatchBounds(glyph, bounds); in findIntercepts()
342 SkGlyph::Intercept* intercept = in findIntercepts()
343 (SkGlyph::Intercept* ) fGlyphAlloc.allocThrow(sizeof(SkGlyph::Intercept)); in findIntercepts()
758 const SkGlyph* glyph = &fGlyphArray[i]; in validate()