Home
last modified time | relevance | path

Searched refs:resourceCache (Results 1 – 9 of 9) sorted by relevance

/third_party/icu/ohos_icu4j/src/main/java/ohos/global/icu/impl/
DICUResourceBundleReader.java147 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 …]
/third_party/icu/icu4j/main/classes/core/src/com/ibm/icu/impl/
DICUResourceBundleReader.java145 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 …]
/third_party/flutter/skia/src/gpu/
DGrDrawingManager.cpp255 auto resourceCache = direct->priv().getResourceCache(); in flush() local
381 resourceCache->purgeAsNeeded(); in flush()
390 resourceCache->purgeAsNeeded(); in flush()
759 auto resourceCache = direct->priv().getResourceCache(); in flushIfNecessary() local
760 if (resourceCache && resourceCache->requestsFlush()) { in flushIfNecessary()
763 resourceCache->purgeAsNeeded(); in flushIfNecessary()
DGrProxyProvider.cpp59 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in assignUniqueKeyToProxy() local
63 SkASSERT(!resourceCache->findAndRefUniqueResource(key)); in assignUniqueKeyToProxy()
242 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in findOrCreateProxyByUniqueKey() local
244 GrGpuResource* resource = resourceCache->findAndRefUniqueResource(key); in findOrCreateProxyByUniqueKey()
/third_party/skia/src/gpu/
DGrDrawingManager.cpp144 auto resourceCache = dContext->priv().getResourceCache(); in flush() local
241 resourceCache->purgeAsNeeded(); in flush()
250 resourceCache->purgeAsNeeded(); in flush()
999 auto resourceCache = direct->priv().getResourceCache(); in flushIfNecessary() local
1000 if (resourceCache && resourceCache->requestsFlush()) { in flushIfNecessary()
1004 resourceCache->purgeAsNeeded(); in flushIfNecessary()
DGrThreadSafeCache.cpp55 void GrThreadSafeCache::dropUniqueRefs(GrResourceCache* resourceCache) { in dropUniqueRefs() argument
63 if (resourceCache && !resourceCache->overBudget()) { in dropUniqueRefs()
DGrProxyProvider.cpp67 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in assignUniqueKeyToProxy() local
71 SkASSERT(!resourceCache->findAndRefUniqueResource(key)); in assignUniqueKeyToProxy()
247 GrResourceCache* resourceCache = direct->priv().getResourceCache(); in findOrCreateProxyByUniqueKey() local
249 GrGpuResource* resource = resourceCache->findAndRefUniqueResource(key); in findOrCreateProxyByUniqueKey()
DGrThreadSafeCache.h80 void dropUniqueRefs(GrResourceCache* resourceCache) SK_EXCLUDES(fSpinLock);
/third_party/skia/tests/
DResourceCacheTest.cpp1772 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()