Home
last modified time | relevance | path

Searched refs:localCache (Results 1 – 17 of 17) sorted by relevance

/external/skqp/src/core/
DSkYUVPlanesCache.cpp12 #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()
DSkMaskCache.cpp10 #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()
DSkMaskCache.h28 SkResourceCache* localCache = nullptr);
31 SkResourceCache* localCache = nullptr);
38 SkResourceCache* localCache = nullptr);
41 SkResourceCache* localCache = nullptr);
DSkBitmapCache.cpp325 #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()
DSkYUVPlanesCache.h36 SkResourceCache* localCache = nullptr);
42 SkResourceCache* localCache = nullptr);
DSkBitmapCache.h68 SkResourceCache* localCache = nullptr);
70 SkResourceCache* localCache = nullptr);
/external/skia/src/core/
DSkYUVPlanesCache.cpp12 #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()
DSkMaskCache.cpp10 #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()
DSkMaskCache.h28 SkResourceCache* localCache = nullptr);
31 SkResourceCache* localCache = nullptr);
38 SkResourceCache* localCache = nullptr);
41 SkResourceCache* localCache = nullptr);
DSkBitmapCache.cpp325 #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()
DSkYUVPlanesCache.h36 SkResourceCache* localCache = nullptr);
42 SkResourceCache* localCache = nullptr);
DSkBitmapCache.h68 SkResourceCache* localCache = nullptr);
70 SkResourceCache* localCache = nullptr);
/external/guava/guava-gwt/src-super/com/google/common/cache/super/com/google/common/cache/
DLocalCache.java348 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/
DLocalCache.java4718 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/
DLocalLoadingCacheTest.java64 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()
DCacheTesting.java120 return ((LocalLoadingCache<K, V>) cache).localCache; in toLocalCache()
DLocalCacheTest.java2414 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()