Home
last modified time | relevance | path

Searched refs:memoryCache (Results 1 – 6 of 6) sorted by relevance

/external/glide/library/src/main/java/com/bumptech/glide/load/engine/prefill/
DBitmapPreFillRunner.java57 private final MemoryCache memoryCache; field in BitmapPreFillRunner
66 …public BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocation… in BitmapPreFillRunner() argument
67 …this(bitmapPool, memoryCache, allocationOrder, DEFAULT_CLOCK, new Handler(Looper.getMainLooper())); in BitmapPreFillRunner()
71 …BitmapPreFillRunner(BitmapPool bitmapPool, MemoryCache memoryCache, PreFillQueue allocationOrder, … in BitmapPreFillRunner() argument
74 this.memoryCache = memoryCache; in BitmapPreFillRunner()
98 memoryCache.put(new UniqueKey(), BitmapResource.obtain(bitmap, bitmapPool)); in allocate()
117 return memoryCache.getMaxSize() - memoryCache.getCurrentSize(); in getFreeMemoryCacheBytes()
DBitmapPreFiller.java21 private final MemoryCache memoryCache; field in BitmapPreFiller
28 …public BitmapPreFiller(MemoryCache memoryCache, BitmapPool bitmapPool, DecodeFormat defaultFormat)… in BitmapPreFiller() argument
29 this.memoryCache = memoryCache; in BitmapPreFiller()
50 current = new BitmapPreFillRunner(bitmapPool, memoryCache, allocationOrder); in preFill()
56 …final int maxSize = memoryCache.getMaxSize() - memoryCache.getCurrentSize() + bitmapPool.getMaxSiz… in generateAllocationOrder()
/external/glide/library/src/main/java/com/bumptech/glide/
DGlideBuilder.java30 private MemoryCache memoryCache; field in GlideBuilder
59 public GlideBuilder setMemoryCache(MemoryCache memoryCache) { in setMemoryCache() argument
60 this.memoryCache = memoryCache; in setMemoryCache()
163 if (memoryCache == null) { in createGlide()
164 memoryCache = new LruResourceCache(calculator.getMemoryCacheSize()); in createGlide()
178 engine = new Engine(memoryCache, diskCache, diskCacheService, sourceService); in createGlide()
185 return new Glide(engine, memoryCache, bitmapPool, context, decodeFormat); in createGlide()
DGlide.java89 private final MemoryCache memoryCache; field in Glide
187 …Glide(Engine engine, MemoryCache memoryCache, BitmapPool bitmapPool, Context context, DecodeFormat… in Glide() argument
190 this.memoryCache = memoryCache; in Glide()
194 bitmapPreFiller = new BitmapPreFiller(memoryCache, bitmapPool, decodeFormat); in Glide()
353 memoryCache.clearMemory(); in clearMemory()
363 memoryCache.trimMemory(level); in trimMemory()
378 memoryCache.setSizeMultiplier(memoryCategory.getMultiplier()); in setMemoryCategory()
/external/glide/library/src/main/java/com/bumptech/glide/load/engine/
DEngine.java56 public Engine(MemoryCache memoryCache, DiskCache diskCache, ExecutorService diskCacheService, in Engine() argument
58 this(memoryCache, diskCache, diskCacheService, sourceService, null, null, null, null, null); in Engine()
/external/skia/dm/
DDMSrcSink.cpp1726 sk_gpu_test::MemoryCache memoryCache; in draw() local
1728 contextOptions.fPersistentCache = &memoryCache; in draw()
1741 memoryCache.resetCacheStats(); in draw()
1746 SkASSERT(!memoryCache.numCacheMisses()); in draw()
1747 SkASSERT(!memoryCache.numCacheStores()); in draw()
1765 sk_gpu_test::MemoryCache memoryCache; in draw() local
1767 contextOptions.fPersistentCache = &memoryCache; in draw()
1775 auto precompileShaders = [&memoryCache](GrDirectContext* dContext) { in draw()
1776 memoryCache.foreach([dContext](sk_sp<const SkData> key, in draw()
1787 replayOptions.fRuntimeProgramCacheSize = memoryCache.numCacheMisses(); in draw()