Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DFontRenderer.cpp140 CachedGlyphInfo* cachedGlyph = NULL; in getCachedGlyph() local
143 cachedGlyph = mCachedGlyphs.valueAt(index); in getCachedGlyph()
145 cachedGlyph = cacheGlyph(paint, textUnit); in getCachedGlyph()
149 if (!cachedGlyph->mIsValid) { in getCachedGlyph()
151 updateGlyphCache(paint, skiaGlyph, cachedGlyph); in getCachedGlyph()
154 return cachedGlyph; in getCachedGlyph()
208 CachedGlyphInfo* cachedGlyph = getCachedGlyph(paint, glyph); in render() local
209 penX += SkFixedToFloat(SkAutoKern_AdjustF(prevRsbDelta, cachedGlyph->mLsbDelta)); in render()
210 prevRsbDelta = cachedGlyph->mRsbDelta; in render()
213 if (cachedGlyph->mIsValid) { in render()
[all …]
/frameworks/base/libs/rs/
DrsFont.cpp196 CachedGlyphInfo *cachedGlyph = getCachedUTFChar(utfChar); in renderUTF() local
199 if (cachedGlyph->mIsValid) { in renderUTF()
202 drawCachedGlyph(cachedGlyph, penX, penY); in renderUTF()
205 drawCachedGlyph(cachedGlyph, penX, penY, bitmap, bitmapW, bitmapH); in renderUTF()
208 measureCachedGlyph(cachedGlyph, penX, penY, bounds); in renderUTF()
213 penX += (cachedGlyph->mAdvanceX >> 6); in renderUTF()
224 CachedGlyphInfo *cachedGlyph = mCachedGlyphs.valueFor((uint32_t)utfChar); in getCachedUTFChar() local
225 if (cachedGlyph == NULL) { in getCachedUTFChar()
226 cachedGlyph = cacheGlyph((uint32_t)utfChar); in getCachedUTFChar()
229 if (!cachedGlyph->mIsValid) { in getCachedUTFChar()
[all …]