Home | History | Annotate | Download | only in hwui

Lines Matching refs:CacheTexture

152 void clearCacheTextures(Vector<CacheTexture*>& cacheTextures) {
187 void FontRenderer::flushLargeCaches(Vector<CacheTexture*>& cacheTextures) {
190 CacheTexture* cacheTexture = cacheTextures[i];
191 if (cacheTexture->getPixelBuffer()) {
192 cacheTexture->init();
195 it.value()->invalidateTextureCache(cacheTexture);
197 cacheTexture->releaseTexture();
207 CacheTexture* FontRenderer::cacheBitmapInTexture(Vector<CacheTexture*>& cacheTextures,
234 Vector<CacheTexture*>* cacheTextures = NULL;
262 CacheTexture* cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY);
264 if (!cacheTexture) {
269 cacheTexture = cacheBitmapInTexture(*cacheTextures, glyph, &startX, &startY);
272 if (!cacheTexture) {
278 cachedGlyph->mCacheTexture = cacheTexture;
286 uint32_t cacheWidth = cacheTexture->getWidth();
288 if (!cacheTexture->getPixelBuffer()) {
291 cacheTexture->allocateTexture();
293 if (!cacheTexture->mesh()) {
294 cacheTexture->allocateMesh();
297 uint8_t* cacheBuffer = cacheTexture->getPixelBuffer()->map();
343 uint8_t* dst = &cacheBuffer[cacheTexture->getOffset(startX, startY - 1)];
344 uint8_t* dstEnd = &cacheBuffer[cacheTexture->getOffset(startX, endY - 1)];
397 CacheTexture* FontRenderer::createCacheTexture(int width, int height, GLenum format,
399 CacheTexture* cacheTexture = new CacheTexture(width, height, format, gMaxNumberOfQuads);
403 cacheTexture->allocateTexture();
404 cacheTexture->allocateMesh();
407 return cacheTexture;
441 void checkTextureUpdateForCache(Caches& caches, Vector<CacheTexture*>& cacheTextures,
444 CacheTexture* cacheTexture = cacheTextures[i];
445 if (cacheTexture->isDirty() && cacheTexture->getPixelBuffer()) {
446 if (cacheTexture->getTextureId() != lastTextureId) {
447 cacheTexture->getTextureId();
452 if (cacheTexture->upload()) {
486 void FontRenderer::issueDrawCommand(Vector<CacheTexture*>& cacheTextures) {
491 CacheTexture* texture = cacheTextures[i];
538 float x4, float y4, float u4, float v4, CacheTexture* texture) {
550 float x4, float y4, float u4, float v4, CacheTexture* texture) {
573 float x4, float y4, float u4, float v4, CacheTexture* texture) {
774 static uint32_t calculateCacheSize(const Vector<CacheTexture*>& cacheTextures) {
777 CacheTexture* cacheTexture = cacheTextures[i];
778 if (cacheTexture && cacheTexture->getPixelBuffer()) {
779 size += cacheTexture->getPixelBuffer()->getSize();