Lines Matching refs:format
32 bool GrAtlasManager::hasGlyph(GrMaskFormat format, GrGlyph* glyph) {
34 return this->getAtlas(format)->hasID(glyph->fAtlasLocator.plotLocator());
69 // Notice this comparison is with the glyphs raw mask format, and not its GrMaskFormat.
82 // Handle 8-bit format by expanding the mask to the expected format.
100 // Convert if the glyph uses a 565 mask format since it is using LCD text rendering
101 // but the expected format is 8888 (will happen on macOS with Metal since that
126 // Retrieving the image from the cache can actually change the mask format. This case is
137 // mask format has changed, then addGlyphToAtlas will draw a clear box. This will almost never
189 // add to texture atlas that matches this format
192 GrMaskFormat format,
195 return this->getAtlas(format)->addToAtlas(resourceProvider, target, width, height, image,
200 GrMaskFormat format, GrGlyph* glyph,
204 this->getAtlas(format)->setLastUseToken(glyph->fAtlasLocator, token);
301 bool GrAtlasManager::initAtlas(GrMaskFormat format) {
302 int index = MaskFormatToAtlasIndex(format);
304 GrColorType grColorType = GrMaskFormatToColorType(format);
307 if ((format == kA8_GrMaskFormat) && (fAtlasConfig.getARGBDimensions().width() > 512)) {
312 SkISize atlasDimensions = fAtlasConfig.atlasDimensions(format);
313 SkISize plotDimensions = fAtlasConfig.plotDimensions(format);