Home
last modified time | relevance | path

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

/frameworks/base/libs/hwui/font/
DCacheTexture.cpp47 while (currBlock && currBlock->mY != TEXTURE_BORDER_SIZE) { in insertBlock()
116 mCacheBlocks = new CacheBlock(TEXTURE_BORDER_SIZE, TEXTURE_BORDER_SIZE, in CacheTexture()
117 mWidth - TEXTURE_BORDER_SIZE, mHeight - TEXTURE_BORDER_SIZE); in CacheTexture()
145 mCacheBlocks = new CacheBlock(TEXTURE_BORDER_SIZE, TEXTURE_BORDER_SIZE, in init()
146 mWidth - TEXTURE_BORDER_SIZE, mHeight - TEXTURE_BORDER_SIZE); in init()
260 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > mHeight) { in fitBitmap()
264 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; in fitBitmap()
265 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; in fitBitmap()
279 (cacheBlock->mY == TEXTURE_BORDER_SIZE || in fitBitmap()
291 if (cacheBlock->mY == TEXTURE_BORDER_SIZE) { in fitBitmap()
[all …]
DFontUtil.h33 #define TEXTURE_BORDER_SIZE 1 macro
34 #if TEXTURE_BORDER_SIZE != 1
35 # error TEXTURE_BORDER_SIZE other than 1 is not currently supported
/frameworks/base/libs/hwui/
DFontRenderer.cpp252 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap()
306 uint32_t row = (startY - TEXTURE_BORDER_SIZE) * cacheWidth + startX in cacheBitmap()
307 - TEXTURE_BORDER_SIZE; in cacheBitmap()
309 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
314 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
319 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
325 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap()
326 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap()
330 row = (endY + TEXTURE_BORDER_SIZE - 1) * cacheWidth + startX - TEXTURE_BORDER_SIZE; in cacheBitmap()
331 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap()
[all …]