Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/
DFontRenderer.cpp298 uint8_t* cacheBuffer = cacheTexture->getPixelBuffer()->map(); in cacheBitmap() local
309 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
314 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
317 cacheBuffer[row + cacheX] = mGammaTable[tempCol]; in cacheBitmap()
319 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
324 memcpy(&cacheBuffer[row + startX], &bitmapBuffer[bY], glyph.fWidth); in cacheBitmap()
325 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
326 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
331 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
344 uint8_t* dst = &cacheBuffer[cacheTexture->getOffset(startX, startY - 1)]; in cacheBitmap()
[all …]
/frameworks/base/libs/hwui/font/
DFont.cpp227 const uint8_t* cacheBuffer = pixelBuffer->map(); in drawCachedGlyphBitmap() local
233 … memcpy(&bitmap[bitmapY + dstX], &cacheBuffer[cacheY + glyph->mStartX], glyph->mBitmapWidth); in drawCachedGlyphBitmap()
236 …bitmap[bitmapY + dstX + i] = cacheBuffer[cacheY + (glyph->mStartX + i)*formatSize + alpha_channel_… in drawCachedGlyphBitmap()
/frameworks/rs/
DrsFont.cpp123 const uint8_t* cacheBuffer = state->mCacheBuffer; in drawCachedGlyph() local
133 uint8_t tempCol = cacheBuffer[cacheY * cacheWidth + cacheX]; in drawCachedGlyph()
462 uint8_t *cacheBuffer = mCacheBuffer; in cacheBitmap() local
469 cacheBuffer[cacheY*cacheWidth + cacheX] = tempCol; in cacheBitmap()