Searched refs:resourceCache (Results 1 – 10 of 10) sorted by relevance
/external/skqp/tests/ |
D | GpuLayerCacheTest.cpp | 131 GrResourceCache* resourceCache = ctxInfo.grContext()->getResourceCache(); 146 resourceCache->getStats(&stats); 175 resourceCache->getStats(&stats); 214 resourceCache->getStats(&stats); 225 resourceCache->getStats(&stats); 281 resourceCache->getStats(&stats); 302 resourceCache->getStats(&stats); 308 resourceCache->purgeAllUnlocked(); 311 resourceCache->getStats(&stats); 335 resourceCache->getStats(&stats); [all …]
|
/external/icu/android_icu4j/src/main/java/android/icu/impl/ |
D | ICUResourceBundleReader.java | 147 private ResourceCache resourceCache; field in ICUResourceBundleReader 328 resourceCache = new ResourceCache(maxOffset); in init() 512 Object value = resourceCache.get(res); in getStringV2() 545 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getStringV2() 578 Object value = resourceCache.get(res); in getString() 585 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getString() 632 Object value = resourceCache.get(res); in getAlias() 639 return (String)resourceCache.putIfAbsent(res, s, length * 2); in getAlias() 740 Object value = resourceCache.get(res); in getArray() 746 return (Array)resourceCache.putIfAbsent(res, array, 0); in getArray() [all …]
|
/external/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/ |
D | ICUResourceBundleReader.java | 145 private ResourceCache resourceCache; field in ICUResourceBundleReader 326 resourceCache = new ResourceCache(maxOffset); in init() 510 Object value = resourceCache.get(res); in getStringV2() 543 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getStringV2() 576 Object value = resourceCache.get(res); in getString() 583 return (String)resourceCache.putIfAbsent(res, s, s.length() * 2); in getString() 630 Object value = resourceCache.get(res); in getAlias() 637 return (String)resourceCache.putIfAbsent(res, s, length * 2); in getAlias() 738 Object value = resourceCache.get(res); in getArray() 744 return (Array)resourceCache.putIfAbsent(res, array, 0); in getArray() [all …]
|
/external/skia/src/gpu/ |
D | GrDrawingManager.cpp | 131 auto resourceCache = dContext->priv().getResourceCache(); in flush() local 228 resourceCache->purgeAsNeeded(); in flush() 237 resourceCache->purgeAsNeeded(); in flush() 945 auto resourceCache = direct->priv().getResourceCache(); in flushIfNecessary() local 946 if (resourceCache && resourceCache->requestsFlush()) { in flushIfNecessary() 950 resourceCache->purgeAsNeeded(); in flushIfNecessary()
|
D | GrThreadSafeCache.cpp | 55 void GrThreadSafeCache::dropUniqueRefs(GrResourceCache* resourceCache) { in dropUniqueRefs() argument 63 if (resourceCache && !resourceCache->overBudget()) { in dropUniqueRefs()
|
D | GrProxyProvider.cpp | 64 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in assignUniqueKeyToProxy() local 68 SkASSERT(!resourceCache->findAndRefUniqueResource(key)); in assignUniqueKeyToProxy() 221 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in findOrCreateProxyByUniqueKey() local 223 GrGpuResource* resource = resourceCache->findAndRefUniqueResource(key); in findOrCreateProxyByUniqueKey()
|
D | GrThreadSafeCache.h | 81 void dropUniqueRefs(GrResourceCache* resourceCache) SK_EXCLUDES(fSpinLock);
|
/external/skqp/src/gpu/ |
D | GrDrawingManager.cpp | 694 GrResourceCache* resourceCache = fContext->contextPriv().getResourceCache(); in flushIfNecessary() local 695 if (resourceCache && resourceCache->requestsFlush()) { in flushIfNecessary() 697 resourceCache->purgeAsNeeded(); in flushIfNecessary()
|
D | GrProxyProvider.cpp | 34 GrResourceCache* resourceCache, in GrProxyProvider() argument 38 , fResourceCache(resourceCache) in GrProxyProvider() 41 , fContextUniqueID(resourceCache->contextUniqueID()) in GrProxyProvider()
|
/external/skia/tests/ |
D | ResourceCacheTest.cpp | 1772 auto resourceCache = dContext->priv().getResourceCache(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local 1776 resourceCache->releaseAll(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1777 REPORTER_ASSERT(reporter, resourceCache->getBudgetedResourceBytes() == 0); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1790 REPORTER_ASSERT(reporter, expectedPurgeable == resourceCache->getPurgeableBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1791 "%zu vs %zu", expectedPurgeable, resourceCache->getPurgeableBytes()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1792 REPORTER_ASSERT(reporter, success == resourceCache->purgeToMakeHeadroom(kTexSize)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1794 REPORTER_ASSERT(reporter, expectedBudgeted == resourceCache->getBudgetedResourceBytes(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() 1795 "%zu vs %zu", expectedBudgeted, resourceCache->getBudgetedResourceBytes()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
|