Lines Matching refs:glyph
187 GrGlyph* glyph = (GrGlyph*)fPool.alloc(sizeof(GrGlyph)); in generateGlyph() local
188 glyph->init(packed, bounds, format); in generateGlyph()
189 fCache.add(glyph); in generateGlyph()
190 return glyph; in generateGlyph()
206 GrGlyph* glyph, in addGlyphToAtlas() argument
209 SkASSERT(glyph); in addGlyphToAtlas()
211 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
217 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas()
220 const SkGlyph& skGlyph = scaler->grToSkGlyph(glyph->fPackedID); in addGlyphToAtlas()
221 if (GrGlyph::kDistance_MaskStyle == GrGlyph::UnpackMaskStyle(glyph->fPackedID)) { in addGlyphToAtlas()
222 if (!scaler->getPackedGlyphDFImage(skGlyph, glyph->width(), glyph->height(), in addGlyphToAtlas()
227 if (!scaler->getPackedGlyphImage(skGlyph, glyph->width(), glyph->height(), in addGlyphToAtlas()
228 glyph->width() * bytesPerPixel, expectedMaskFormat, in addGlyphToAtlas()
234 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, target, expectedMaskFormat, in addGlyphToAtlas()
235 glyph->width(), glyph->height(), in addGlyphToAtlas()
236 storage.get(), &glyph->fAtlasLocation); in addGlyphToAtlas()
238 SkASSERT(GrBatchAtlas::kInvalidAtlasID != glyph->fID); in addGlyphToAtlas()