Lines Matching refs:glyph
147 static void FreeGlyph(GrGlyph*& glyph) { glyph->free(); } in FreeGlyph() argument
167 GrGlyph* glyph = fPool.alloc(); in generateGlyph() local
168 glyph->init(packed, bounds); in generateGlyph()
169 fCache.insert(packed, glyph); in generateGlyph()
170 return glyph; in generateGlyph()
173 bool GrTextStrike::getGlyphAtlas(GrGlyph* glyph, GrFontScaler* scaler) { in getGlyphAtlas() argument
179 GrAssert(glyph); in getGlyphAtlas()
181 GrAssert(fCache.contains(glyph)); in getGlyphAtlas()
182 if (glyph->fAtlas) { in getGlyphAtlas()
189 size_t size = glyph->fBounds.area() * bytesPerPixel; in getGlyphAtlas()
191 if (!scaler->getPackedGlyphImage(glyph->fPackedID, glyph->width(), in getGlyphAtlas()
192 glyph->height(), in getGlyphAtlas()
193 glyph->width() * bytesPerPixel, in getGlyphAtlas()
198 GrAtlas* atlas = fAtlasMgr->addToAtlas(fAtlas, glyph->width(), in getGlyphAtlas()
199 glyph->height(), storage.get(), in getGlyphAtlas()
201 &glyph->fAtlasLocation); in getGlyphAtlas()
207 glyph->fAtlas = fAtlas = atlas; in getGlyphAtlas()