Lines Matching refs:format
62 // mask format has changed, then addGlyphToAtlas will draw a clear box. This will almost never
128 GrTexture* getTexture(GrMaskFormat format) {
129 if (this->initAtlas(format)) {
130 return this->getAtlas(format)->getTexture();
154 GrMaskFormat format) {
155 this->getAtlas(format)->setLastUseTokenBulk(updater, token);
158 // add to texture atlas that matches this format
161 GrMaskFormat format, int width, int height, const void* image,
164 return this->getAtlas(format)->addToAtlas(id, target, width, height, image, loc);
170 uint64_t atlasGeneration(GrMaskFormat format) const {
171 return this->getAtlas(format)->atlasGeneration();
174 int log2Width(GrMaskFormat format) { return fAtlasConfigs[format].fLog2Width; }
175 int log2Height(GrMaskFormat format) { return fAtlasConfigs[format].fLog2Height; }
184 static GrPixelConfig MaskFormatToPixelConfig(GrMaskFormat format) {
192 return kPixelConfigs[format];
196 static int MaskFormatToAtlasIndex(GrMaskFormat format) {
204 SkASSERT(sAtlasIndices[format] < kMaskFormatCount);
205 return sAtlasIndices[format];
216 GrBatchAtlas* getAtlas(GrMaskFormat format) const {
217 int atlasIndex = MaskFormatToAtlasIndex(format);