Lines Matching refs:Texture
23 #include "Texture.h"
36 : mCache(LruCache<uint32_t, Texture*>::kUnlimitedCapacity)
69 void TextureCache::operator()(uint32_t&, Texture*& texture) {
76 ALOGD("Texture deleted, size = %d", texture->bitmapSize);
92 LruCache<uint32_t, Texture*>::Iterator iter(mCache);
109 // Returns a prepared Texture* that either is already in the cache or can fit
111 Texture* TextureCache::getCachedTexture(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) {
119 Texture* texture = mCache.get(bitmap->pixelRef()->getStableID());
130 Texture* oldest = mCache.peekOldestValue();
139 texture = new Texture(Caches::getInstance());
148 ALOGD("Texture created, size = %d", size);
153 // Texture was in the cache but is dirty, re-upload
163 Texture* texture = getCachedTexture(bitmap, AtlasUsageType::Use);
170 Texture* TextureCache::get(const SkBitmap* bitmap, AtlasUsageType atlasUsageType) {
171 Texture* texture = getCachedTexture(bitmap, atlasUsageType);
179 texture = new Texture(Caches::getInstance());