Lines Matching refs:cacheTexture
174 CacheTexture* cacheTexture = cacheTextures[i]; in flushLargeCaches() local
175 if (cacheTexture->getPixelBuffer()) { in flushLargeCaches()
176 cacheTexture->init(); in flushLargeCaches()
178 mHistoryTracker.glyphsCleared(cacheTexture); in flushLargeCaches()
182 it.value()->invalidateTextureCache(cacheTexture); in flushLargeCaches()
184 cacheTexture->releasePixelBuffer(); in flushLargeCaches()
250 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap() local
252 if (!cacheTexture) { in cacheBitmap()
257 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY); in cacheBitmap()
260 if (!cacheTexture) { in cacheBitmap()
266 cachedGlyph->mCacheTexture = cacheTexture; in cacheBitmap()
274 uint32_t cacheWidth = cacheTexture->getWidth(); in cacheBitmap()
276 if (!cacheTexture->getPixelBuffer()) { in cacheBitmap()
279 cacheTexture->allocatePixelBuffer(); in cacheBitmap()
281 if (!cacheTexture->mesh()) { in cacheBitmap()
282 cacheTexture->allocateMesh(); in cacheBitmap()
285 uint8_t* cacheBuffer = cacheTexture->getPixelBuffer()->map(); in cacheBitmap()
330 uint8_t* dst = &cacheBuffer[cacheTexture->getOffset(startX, startY - 1)]; in cacheBitmap()
331 uint8_t* dstEnd = &cacheBuffer[cacheTexture->getOffset(startX, endY - 1)]; in cacheBitmap()
384 mHistoryTracker.glyphUploaded(cacheTexture, startX, startY, glyph.fWidth, glyph.fHeight); in cacheBitmap()
390 CacheTexture* cacheTexture = new CacheTexture(width, height, format, kMaxNumberOfQuads); in createCacheTexture() local
394 cacheTexture->allocatePixelBuffer(); in createCacheTexture()
395 cacheTexture->allocateMesh(); in createCacheTexture()
398 return cacheTexture; in createCacheTexture()
435 CacheTexture* cacheTexture = cacheTextures[i]; in checkTextureUpdateForCache() local
436 if (cacheTexture->isDirty() && cacheTexture->getPixelBuffer()) { in checkTextureUpdateForCache()
437 if (cacheTexture->getTextureId() != lastTextureId) { in checkTextureUpdateForCache()
438 lastTextureId = cacheTexture->getTextureId(); in checkTextureUpdateForCache()
443 if (cacheTexture->upload()) { in checkTextureUpdateForCache()
730 CacheTexture* cacheTexture = cacheTextures[i]; in calculateCacheSize() local
731 if (cacheTexture && cacheTexture->getPixelBuffer()) { in calculateCacheSize()
732 size += cacheTexture->getPixelBuffer()->getSize(); in calculateCacheSize()
741 CacheTexture* cacheTexture = cacheTextures[i]; in calculateFreeCacheSize() local
742 if (cacheTexture && cacheTexture->getPixelBuffer()) { in calculateFreeCacheSize()
743 size += cacheTexture->calculateFreeMemory(); in calculateFreeCacheSize()
768 CacheTexture* cacheTexture = cacheTextures[i]; in dumpTextures() local
769 if (cacheTexture && cacheTexture->getPixelBuffer()) { in dumpTextures()
770 uint32_t free = cacheTexture->calculateFreeMemory(); in dumpTextures()
771 uint32_t total = cacheTexture->getPixelBuffer()->getSize(); in dumpTextures()