Searched refs:TEXTURE_BORDER_SIZE (Results 1 – 3 of 3) sorted by relevance
/frameworks/base/libs/hwui/font/ |
D | CacheTexture.cpp | 48 while (currBlock && currBlock->mY != TEXTURE_BORDER_SIZE) { in insertBlock() 121 mCacheBlocks = new CacheBlock(TEXTURE_BORDER_SIZE, TEXTURE_BORDER_SIZE, in CacheTexture() 122 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE); in CacheTexture() 150 mCacheBlocks = new CacheBlock(TEXTURE_BORDER_SIZE, TEXTURE_BORDER_SIZE, in init() 151 getWidth() - TEXTURE_BORDER_SIZE, getHeight() - TEXTURE_BORDER_SIZE); in init() 242 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > getHeight()) { in fitBitmap() 246 uint16_t glyphW = glyph.fWidth + TEXTURE_BORDER_SIZE; in fitBitmap() 247 uint16_t glyphH = glyph.fHeight + TEXTURE_BORDER_SIZE; in fitBitmap() 261 (cacheBlock->mY == TEXTURE_BORDER_SIZE || in fitBitmap() 273 if (cacheBlock->mY == TEXTURE_BORDER_SIZE) { in fitBitmap() [all …]
|
D | FontUtil.h | 33 #ifdef TEXTURE_BORDER_SIZE 34 #if TEXTURE_BORDER_SIZE != 1 35 #error TEXTURE_BORDER_SIZE other than 1 is not currently supported 38 #define TEXTURE_BORDER_SIZE 1 macro
|
/frameworks/base/libs/hwui/ |
D | FontRenderer.cpp | 244 if (glyph.fHeight + TEXTURE_BORDER_SIZE * 2 > in cacheBitmap() 298 uint32_t row = (startY - TEXTURE_BORDER_SIZE) * cacheWidth + startX in cacheBitmap() 299 - TEXTURE_BORDER_SIZE; in cacheBitmap() 301 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap() 306 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap() 311 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap() 317 cacheBuffer[row + startX - TEXTURE_BORDER_SIZE] = 0; in cacheBitmap() 318 cacheBuffer[row + endX + TEXTURE_BORDER_SIZE - 1] = 0; in cacheBitmap() 322 row = (endY + TEXTURE_BORDER_SIZE - 1) * cacheWidth + startX - TEXTURE_BORDER_SIZE; in cacheBitmap() 323 memset(&cacheBuffer[row], 0, glyph.fWidth + 2 * TEXTURE_BORDER_SIZE); in cacheBitmap() [all …]
|