Lines Matching refs:cacheBlock
269 CacheBlock* cacheBlock = mCacheBlocks; in fitBitmap() local
270 while (cacheBlock) { in fitBitmap()
274 if (roundedUpW <= cacheBlock->mWidth && glyphH <= cacheBlock->mHeight && in fitBitmap()
275 (cacheBlock->mY == TEXTURE_BORDER_SIZE || in fitBitmap()
276 (cacheBlock->mWidth - roundedUpW < CACHE_BLOCK_ROUNDING_SIZE))) { in fitBitmap()
277 if (cacheBlock->mHeight - glyphH < glyphH) { in fitBitmap()
282 *retOriginX = cacheBlock->mX; in fitBitmap()
283 *retOriginY = cacheBlock->mY; in fitBitmap()
287 if (cacheBlock->mY == TEXTURE_BORDER_SIZE) { in fitBitmap()
288 uint16_t oldX = cacheBlock->mX; in fitBitmap()
290 cacheBlock->mWidth -= roundedUpW; in fitBitmap()
291 cacheBlock->mX += roundedUpW; in fitBitmap()
307 cacheBlock->mY += glyphH; in fitBitmap()
308 cacheBlock->mHeight -= glyphH; in fitBitmap()
311 cacheBlock, cacheBlock->mX, cacheBlock->mY, cacheBlock->mWidth, in fitBitmap()
312 cacheBlock->mHeight); in fitBitmap()
316 if (cacheBlock->mHeight < std::min(glyphH, glyphW)) { in fitBitmap()
318 mCacheBlocks = CacheBlock::removeBlock(mCacheBlocks, cacheBlock); in fitBitmap()
334 cacheBlock = cacheBlock->mNext; in fitBitmap()
343 CacheBlock* cacheBlock = mCacheBlocks; in calculateFreeMemory() local
347 while (cacheBlock) { in calculateFreeMemory()
348 free += bpp * cacheBlock->mWidth * cacheBlock->mHeight; in calculateFreeMemory()
349 cacheBlock = cacheBlock->mNext; in calculateFreeMemory()