/external/skqp/src/core/ |
D | SkYUVPlanesCache.cpp | 12 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 13 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 74 SkResourceCache* localCache) { in FindAndRef() argument 77 if (!CHECK_LOCAL(localCache, find, Find, key, YUVPlanesRec::Visitor, &result)) { in FindAndRef() 86 SkResourceCache* localCache) { in Add() argument 88 return CHECK_LOCAL(localCache, add, Add, new YUVPlanesRec(key, data, info)); in Add()
|
D | SkMaskCache.cpp | 10 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 11 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 78 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { in FindAndRef() argument 81 if (!CHECK_LOCAL(localCache, find, Find, key, RRectBlurRec::Visitor, &result)) { in FindAndRef() 92 SkResourceCache* localCache) { in Add() argument 94 return CHECK_LOCAL(localCache, add, Add, new RRectBlurRec(key, mask, data)); in Add() 173 SkResourceCache* localCache) { in FindAndRef() argument 176 if (!CHECK_LOCAL(localCache, find, Find, key, RectsBlurRec::Visitor, &result)) { in FindAndRef() 187 SkResourceCache* localCache) { in Add() argument 189 return CHECK_LOCAL(localCache, add, Add, new RectsBlurRec(key, mask, data)); in Add()
|
D | SkMaskCache.h | 28 SkResourceCache* localCache = nullptr); 31 SkResourceCache* localCache = nullptr); 38 SkResourceCache* localCache = nullptr); 41 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.cpp | 325 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 326 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 391 SkResourceCache* localCache) { in FindAndRef() argument 397 if (!CHECK_LOCAL(localCache, find, Find, key, MipMapRec::Finder, &result)) { in FindAndRef() 403 static SkResourceCache::DiscardableFactory get_fact(SkResourceCache* localCache) { in get_fact() argument 404 return localCache ? localCache->GetDiscardableFactory() in get_fact() 410 SkResourceCache* localCache) { in AddAndRef() argument 411 SkMipMap* mipmap = SkMipMap::Build(src, colorMode, get_fact(localCache)); in AddAndRef() 415 CHECK_LOCAL(localCache, add, Add, rec); in AddAndRef()
|
D | SkYUVPlanesCache.h | 36 SkResourceCache* localCache = nullptr); 42 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.h | 68 SkResourceCache* localCache = nullptr); 70 SkResourceCache* localCache = nullptr);
|
/external/skia/src/core/ |
D | SkYUVPlanesCache.cpp | 12 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 13 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 74 SkResourceCache* localCache) { in FindAndRef() argument 77 if (!CHECK_LOCAL(localCache, find, Find, key, YUVPlanesRec::Visitor, &result)) { in FindAndRef() 86 SkResourceCache* localCache) { in Add() argument 88 return CHECK_LOCAL(localCache, add, Add, new YUVPlanesRec(key, data, info)); in Add()
|
D | SkMaskCache.cpp | 10 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 11 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 78 const SkRRect& rrect, SkMask* mask, SkResourceCache* localCache) { in FindAndRef() argument 81 if (!CHECK_LOCAL(localCache, find, Find, key, RRectBlurRec::Visitor, &result)) { in FindAndRef() 92 SkResourceCache* localCache) { in Add() argument 94 return CHECK_LOCAL(localCache, add, Add, new RRectBlurRec(key, mask, data)); in Add() 173 SkResourceCache* localCache) { in FindAndRef() argument 176 if (!CHECK_LOCAL(localCache, find, Find, key, RectsBlurRec::Visitor, &result)) { in FindAndRef() 187 SkResourceCache* localCache) { in Add() argument 189 return CHECK_LOCAL(localCache, add, Add, new RectsBlurRec(key, mask, data)); in Add()
|
D | SkMaskCache.h | 28 SkResourceCache* localCache = nullptr); 31 SkResourceCache* localCache = nullptr); 38 SkResourceCache* localCache = nullptr); 41 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.cpp | 325 #define CHECK_LOCAL(localCache, localName, globalName, ...) \ argument 326 ((localCache) ? localCache->localName(__VA_ARGS__) : SkResourceCache::globalName(__VA_ARGS__)) 391 SkResourceCache* localCache) { in FindAndRef() argument 397 if (!CHECK_LOCAL(localCache, find, Find, key, MipMapRec::Finder, &result)) { in FindAndRef() 403 static SkResourceCache::DiscardableFactory get_fact(SkResourceCache* localCache) { in get_fact() argument 404 return localCache ? localCache->GetDiscardableFactory() in get_fact() 410 SkResourceCache* localCache) { in AddAndRef() argument 411 SkMipMap* mipmap = SkMipMap::Build(src, colorMode, get_fact(localCache)); in AddAndRef() 415 CHECK_LOCAL(localCache, add, Add, rec); in AddAndRef()
|
D | SkYUVPlanesCache.h | 36 SkResourceCache* localCache = nullptr); 42 SkResourceCache* localCache = nullptr);
|
D | SkBitmapCache.h | 68 SkResourceCache* localCache = nullptr); 70 SkResourceCache* localCache = nullptr);
|
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/ |
D | LocalCache.java | 348 final LocalCache<K, V> localCache; field in LocalCache.LocalManualCache 356 this.localCache = new LocalCache<K, V>(builder, loader); in LocalManualCache() 363 V value = localCache.get(key); in get() 370 localCache.put(key, newValue); in get() 380 return localCache.getIfPresent(key); in getIfPresent() 385 localCache.put(key, value); in put() 391 localCache.remove(key); in invalidate() 396 localCache.clear(); in invalidateAll() 401 return localCache.size(); in size() 406 return localCache; in asMap() [all …]
|
/external/guava/guava/src/com/google/common/cache/ |
D | LocalCache.java | 4718 final LocalCache<K, V> localCache; 4724 private LocalManualCache(LocalCache<K, V> localCache) { 4725 this.localCache = localCache; 4733 return localCache.getIfPresent(key); 4739 return localCache.get(key, new CacheLoader<Object, V>() { 4749 return localCache.getAllPresent(keys); 4754 localCache.put(key, value); 4759 localCache.putAll(m); 4765 localCache.remove(key); 4770 localCache.invalidateAll(keys); [all …]
|
/external/guava/guava-tests/test/com/google/common/cache/ |
D | LocalLoadingCacheTest.java | 64 assertSame(loader, cache.localCache.defaultLoader); in testComputingFunction() 141 ConcurrentMap<Object, Object> map = cache.localCache; // modifiable map view in testStatsNoops() 296 Segment<Object, Object> segment = cache.localCache.segments[0]; in testAsMapRecency()
|
D | CacheTesting.java | 120 return ((LocalLoadingCache<K, V>) cache).localCache; in toLocalCache()
|
D | LocalCacheTest.java | 2414 LocalCache<Object, Object> localCacheOne = one.localCache; in testSerializationProxyLoading() 2415 LocalCache<Object, Object> localCacheTwo = two.localCache; in testSerializationProxyLoading() 2431 LocalCache<Object, Object> localCacheThree = three.localCache; in testSerializationProxyLoading() 2469 LocalCache<Object, Object> localCacheOne = one.localCache; in testSerializationProxyManual() 2470 LocalCache<Object, Object> localCacheTwo = two.localCache; in testSerializationProxyManual() 2485 LocalCache<Object, Object> localCacheThree = three.localCache; in testSerializationProxyManual()
|