Home
last modified time | relevance | path

Searched refs:cacheBuffer (Results 1 – 3 of 3) sorted by relevance

/frameworks/base/libs/hwui/
DFontRenderer.cpp285 uint8_t* cacheBuffer = cacheTexture->getPixelBuffer()->map(); in cacheBitmap() local
295 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
300 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
303 cacheBuffer[row + cacheX] = mGammaTable[tempCol]; in cacheBitmap()
305 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
310 memcpy(&cacheBuffer[row + startX], &bitmapBuffer[bY], glyph.fWidth); in cacheBitmap()
311 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
312 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
317 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
330 uint8_t* dst = &cacheBuffer[cacheTexture->getOffset(startX, startY - 1)]; in cacheBitmap()
[all …]
/frameworks/rs/
DrsFont.cpp122 const uint8_t* cacheBuffer = state->mCacheBuffer; in drawCachedGlyph() local
132 uint8_t tempCol = cacheBuffer[cacheY * cacheWidth + cacheX]; in drawCachedGlyph()
461 uint8_t *cacheBuffer = mCacheBuffer; in cacheBitmap() local
468 cacheBuffer[cacheY*cacheWidth + cacheX] = tempCol; in cacheBitmap()
/frameworks/base/libs/hwui/font/
DFont.cpp220 const uint8_t* cacheBuffer = pixelBuffer->map(); in drawCachedGlyphBitmap() local
227 cacheBuffer[cacheY + (glyph->mStartX + i) * formatSize + alpha_channel_offset]; in drawCachedGlyphBitmap()