Lines Matching refs:glyph
188 GrGlyph* glyph = (GrGlyph*)fPool.alloc(sizeof(GrGlyph), SK_MALLOC_THROW); in generateGlyph() local
189 glyph->init(packed, bounds, format); in generateGlyph()
190 fCache.add(glyph); in generateGlyph()
191 return glyph; in generateGlyph()
206 bool GrBatchTextStrike::addGlyphToAtlas(GrBatchTarget* batchTarget, GrGlyph* glyph, in addGlyphToAtlas() argument
208 SkASSERT(glyph); in addGlyphToAtlas()
210 SkASSERT(fCache.find(glyph->fPackedID)); in addGlyphToAtlas()
211 SkASSERT(NULL == glyph->fPlot); in addGlyphToAtlas()
215 int bytesPerPixel = GrMaskFormatBytesPerPixel(glyph->fMaskFormat); in addGlyphToAtlas()
217 size_t size = glyph->fBounds.area() * bytesPerPixel; in addGlyphToAtlas()
220 if (GrGlyph::kDistance_MaskStyle == GrGlyph::UnpackMaskStyle(glyph->fPackedID)) { in addGlyphToAtlas()
221 if (!scaler->getPackedGlyphDFImage(glyph->fPackedID, glyph->width(), in addGlyphToAtlas()
222 glyph->height(), in addGlyphToAtlas()
227 if (!scaler->getPackedGlyphImage(glyph->fPackedID, glyph->width(), in addGlyphToAtlas()
228 glyph->height(), in addGlyphToAtlas()
229 glyph->width() * bytesPerPixel, in addGlyphToAtlas()
235 bool success = fBatchFontCache->addToAtlas(this, &glyph->fID, batchTarget, glyph->fMaskFormat, in addGlyphToAtlas()
236 glyph->width(), glyph->height(), in addGlyphToAtlas()
237 storage.get(), &glyph->fAtlasLocation); in addGlyphToAtlas()