Home
last modified time | relevance | path

Searched refs:cachedGlyph (Results 1 – 4 of 4) sorted by relevance

/frameworks/base/libs/hwui/font/
DFont.cpp133 CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueAt(i); in invalidateTextureCache() local
134 if (!cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) { in invalidateTextureCache()
135 cachedGlyph->mIsValid = false; in invalidateTextureCache()
283 CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueFor(textUnit); in getCachedGlyph() local
284 if (cachedGlyph) { in getCachedGlyph()
286 if (!cachedGlyph->mIsValid) { in getCachedGlyph()
290 updateGlyphCache(paint, skiaGlyph, autoCache.getCache(), cachedGlyph, precaching); in getCachedGlyph()
293 cachedGlyph = cacheGlyph(paint, textUnit, precaching); in getCachedGlyph()
296 return cachedGlyph; in getCachedGlyph()
341 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph); in render() local
[all …]
/frameworks/rs/
DrsFont.cpp199 CachedGlyphInfo *cachedGlyph = getCachedUTFChar(utfChar); in renderUTF() local
202 if (cachedGlyph->mIsValid) { in renderUTF()
205 drawCachedGlyph(cachedGlyph, penX, penY); in renderUTF()
208 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); in renderUTF()
211 measureCachedGlyph(cachedGlyph, penX, penY, bounds); in renderUTF()
216 penX += (cachedGlyph->mAdvanceX >> 6); in renderUTF()
227 CachedGlyphInfo *cachedGlyph = mCachedGlyphs.valueFor((uint32_t)utfChar); in getCachedUTFChar() local
228 if (cachedGlyph == nullptr) { in getCachedUTFChar()
229 cachedGlyph = cacheGlyph((uint32_t)utfChar); in getCachedUTFChar()
232 if (!cachedGlyph->mIsValid) { in getCachedUTFChar()
[all …]
/frameworks/base/libs/hwui/
DFontRenderer.cpp205 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument
212 cachedGlyph->mIsValid = true; in cacheBitmap()
213 cachedGlyph->mCacheTexture = nullptr; in cacheBitmap()
217 cachedGlyph->mIsValid = false; in cacheBitmap()
265 cachedGlyph->mCacheTexture = cacheTexture; in cacheBitmap()
381 cachedGlyph->mIsValid = true; in cacheBitmap()
DFontRenderer.h128 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph,