Searched refs:cachedGlyph (Results 1 – 4 of 4) sorted by relevance
/frameworks/base/libs/hwui/font/ |
D | Font.cpp | 128 CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueAt(i); in invalidateTextureCache() local 129 if (!cacheTexture || cachedGlyph->mCacheTexture == cacheTexture) { in invalidateTextureCache() 130 cachedGlyph->mIsValid = false; in invalidateTextureCache() 272 CachedGlyphInfo* cachedGlyph = mCachedGlyphs.valueFor(textUnit); in getCachedGlyph() local 273 if (cachedGlyph) { in getCachedGlyph() 275 if (!cachedGlyph->mIsValid) { in getCachedGlyph() 280 updateGlyphCache(paint, skiaGlyph, autoCache.getCache(), cachedGlyph, precaching); in getCachedGlyph() 283 cachedGlyph = cacheGlyph(paint, textUnit, precaching); in getCachedGlyph() 286 return cachedGlyph; in getCachedGlyph() 328 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph); in render() local [all …]
|
/frameworks/rs/ |
D | rsFont.cpp | 198 CachedGlyphInfo *cachedGlyph = getCachedUTFChar(utfChar); in renderUTF() local 201 if (cachedGlyph->mIsValid) { in renderUTF() 204 drawCachedGlyph(cachedGlyph, penX, penY); in renderUTF() 207 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); in renderUTF() 210 measureCachedGlyph(cachedGlyph, penX, penY, bounds); in renderUTF() 215 penX += (cachedGlyph->mAdvanceX >> 6); in renderUTF() 226 CachedGlyphInfo *cachedGlyph = mCachedGlyphs.valueFor((uint32_t)utfChar); in getCachedUTFChar() local 227 if (cachedGlyph == nullptr) { in getCachedUTFChar() 228 cachedGlyph = cacheGlyph((uint32_t)utfChar); in getCachedUTFChar() 231 if (!cachedGlyph->mIsValid) { in getCachedUTFChar() [all …]
|
/frameworks/base/libs/hwui/ |
D | FontRenderer.cpp | 206 void FontRenderer::cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, in cacheBitmap() argument 213 cachedGlyph->mIsValid = true; in cacheBitmap() 214 cachedGlyph->mCacheTexture = nullptr; in cacheBitmap() 218 cachedGlyph->mIsValid = false; in cacheBitmap() 266 cachedGlyph->mCacheTexture = cacheTexture; in cacheBitmap() 381 cachedGlyph->mIsValid = true; in cacheBitmap()
|
D | FontRenderer.h | 133 void cacheBitmap(const SkGlyph& glyph, CachedGlyphInfo* cachedGlyph, uint32_t* retOriginX,
|