Home
last modified time | relevance | path

Searched refs:GrResourceCache (Results 1 – 25 of 50) sorted by relevance

12

/external/skia/src/gpu/
DGrResourceCache.cpp65 class GrResourceCache::AutoValidate : ::SkNoncopyable {
67 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
70 GrResourceCache* fCache;
75 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref() = default;
77 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref(GrTexture* texture) in TextureAwaitingUnref()
80 inline GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref(TextureAwaitingUnref&& that) { in TextureAwaitingUnref()
85 inline GrResourceCache::TextureAwaitingUnref& GrResourceCache::TextureAwaitingUnref::operator=( in operator =()
92 inline GrResourceCache::TextureAwaitingUnref::~TextureAwaitingUnref() { in ~TextureAwaitingUnref()
100 inline void GrResourceCache::TextureAwaitingUnref::TextureAwaitingUnref::addRef() { ++fNumUnrefs; } in addRef()
102 inline void GrResourceCache::TextureAwaitingUnref::unref() { in unref()
[all …]
DGrResourceCache.h59 class GrResourceCache {
61 GrResourceCache(GrSingleOwner* owner,
64 ~GrResourceCache();
393 class GrResourceCache::ResourceAccess {
395 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
462 GrResourceCache* fCache;
465 friend class GrResourceCache; // To create this type. variable
468 inline GrResourceCache::ResourceAccess GrResourceCache::resourceAccess() { in resourceAccess()
DGrResourceProvider.h41 GrResourceProvider(GrGpu*, GrResourceCache*, GrSingleOwner*);
356 GrResourceCache* cache() { return fCache; } in cache()
357 const GrResourceCache* cache() const { return fCache; } in cache()
379 GrResourceCache* fCache;
DGrGpuResource.cpp17 static inline GrResourceCache* get_resource_cache(GrGpu* gpu) { in get_resource_cache()
216 void GrGpuResource::ProxyAccess::ref(GrResourceCache* cache) { in ref()
DGrGpuResource.h16 class GrResourceCache; variable
325 void ref(GrResourceCache* cache);
DGrGpuResourceCacheAccess.h100 friend class GrResourceCache; // to use this type variable
/external/skqp/src/gpu/
DGrResourceCache.cpp62 class GrResourceCache::AutoValidate : ::SkNoncopyable {
64 AutoValidate(GrResourceCache* cache) : fCache(cache) { cache->validate(); } in AutoValidate()
67 GrResourceCache* fCache;
72 GrResourceCache::GrResourceCache(const GrCaps* caps, GrSingleOwner* singleOwner, in GrResourceCache() function in GrResourceCache
98 GrResourceCache::~GrResourceCache() { in ~GrResourceCache()
102 void GrResourceCache::setLimits(int count, size_t bytes) { in setLimits()
108 void GrResourceCache::insertResource(GrGpuResource* resource) { in insertResource()
147 void GrResourceCache::removeResource(GrGpuResource* resource) { in removeResource()
179 void GrResourceCache::abandonAll() { in abandonAll()
210 void GrResourceCache::releaseAll() { in releaseAll()
[all …]
DGrResourceCache.h56 class GrResourceCache {
58 GrResourceCache(const GrCaps*, GrSingleOwner* owner, uint32_t contextUniqueID);
59 ~GrResourceCache();
366 GR_MAKE_BITFIELD_CLASS_OPS(GrResourceCache::ScratchFlags);
368 class GrResourceCache::ResourceAccess {
370 ResourceAccess(GrResourceCache* cache) : fCache(cache) { } in ResourceAccess()
434 GrResourceCache* fCache;
437 friend class GrResourceCache; // To create this type. variable
440 inline GrResourceCache::ResourceAccess GrResourceCache::resourceAccess() { in resourceAccess()
DGrResourceProvider.h61 GrResourceProvider(GrGpu*, GrResourceCache*, GrSingleOwner*,
275 GrResourceCache* cache() { return fCache; } in cache()
276 const GrResourceCache* cache() const { return fCache; } in cache()
297 GrResourceCache* fCache;
DGrGpuResource.cpp17 static inline GrResourceCache* get_resource_cache(GrGpu* gpu) { in get_resource_cache()
171 GrResourceCache::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag; in notifyAllCntsAreZero()
182 uint32_t flags = GrResourceCache::ResourceAccess::kRefCntReachedZero_RefNotificationFlag; in notifyRefCountIsZero()
184 flags |= GrResourceCache::ResourceAccess::kAllCntsReachedZero_RefNotificationFlag; in notifyRefCountIsZero()
DGrResourceProvider.cpp42 GrResourceProvider::GrResourceProvider(GrGpu* gpu, GrResourceCache* cache, GrSingleOwner* owner, in GrResourceProvider()
216 auto scratchFlags = GrResourceCache::ScratchFlags::kNone; in refScratchTexture()
218 scratchFlags |= GrResourceCache::ScratchFlags::kRequireNoPendingIO; in refScratchTexture()
222 scratchFlags |= GrResourceCache::ScratchFlags::kPreferNoPendingIO; in refScratchTexture()
385 auto scratchFlags = GrResourceCache::ScratchFlags::kNone; in createBuffer()
387 scratchFlags = GrResourceCache::ScratchFlags::kRequireNoPendingIO; in createBuffer()
389 scratchFlags = GrResourceCache::ScratchFlags::kPreferNoPendingIO; in createBuffer()
DGrProxyProvider.h29 GrProxyProvider(GrResourceProvider*, GrResourceCache*, sk_sp<const GrCaps>, GrSingleOwner*);
274 GrResourceCache* fResourceCache;
DGrGpuResourceCacheAccess.h87 friend class GrResourceCache; // to use this type variable
/external/skqp/tests/
DResourceCacheTest.cpp355 GrResourceCache* cache = fContext->contextPriv().getResourceCache(); in Mock()
360 GrResourceCache* cache() { return fContext->contextPriv().getResourceCache(); } in cache()
375 GrResourceCache* cache = mock.cache(); in test_no_key()
429 GrResourceCache* cache = mock.cache(); in test_purge_unlocked()
493 GrResourceCache* cache = mock.cache(); in test_budgeting()
620 GrResourceCache* cache = mock.cache(); in test_unbudgeted()
693 GrResourceCache* cache = mock.cache(); in test_unbudgeted_to_scratch()
708 …== cache->findAndRefScratchResource(key, TestResource::kDefaultSize, GrResourceCache::ScratchFlags… in test_unbudgeted_to_scratch()
722 …*>(cache->findAndRefScratchResource(key, TestResource::kDefaultSize, GrResourceCache::ScratchFlags… in test_unbudgeted_to_scratch()
760 GrResourceCache* cache = mock.cache(); in test_duplicate_scratch_key()
[all …]
DPathRendererCacheTests.cpp61 static bool cache_non_scratch_resources_equals(GrResourceCache* cache, int expected) { in cache_non_scratch_resources_equals()
63 GrResourceCache::Stats stats; in cache_non_scratch_resources_equals()
80 GrResourceCache* cache = ctx->contextPriv().getResourceCache(); in test_path()
DTextureProxyTest.cpp130 GrResourceCache* cache = context->contextPriv().getResourceCache(); in basic_test()
223 GrResourceCache* cache = context->contextPriv().getResourceCache(); in invalidation_test()
265 GrResourceCache* cache = context->contextPriv().getResourceCache(); in invalidation_and_instantiation_test()
305 GrResourceCache* cache = context->contextPriv().getResourceCache(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/bench/
DGrResourceCacheBench.cpp79 GrResourceCache* cache = context->contextPriv().getResourceCache(); in onDraw()
125 GrResourceCache* cache = fContext->contextPriv().getResourceCache(); in onDelayedSetup()
140 GrResourceCache* cache = fContext->contextPriv().getResourceCache(); in onDraw()
/external/skia/bench/
DGrResourceCacheBench.cpp79 GrResourceCache* cache = context->priv().getResourceCache(); in onDraw()
125 GrResourceCache* cache = fContext->priv().getResourceCache(); in onDelayedSetup()
140 GrResourceCache* cache = fContext->priv().getResourceCache(); in onDraw()
/external/skqp/tools/gpu/
DGrTest.cpp139 void GrResourceCache::getStats(Stats* stats) const { in getStats()
154 void GrResourceCache::dumpStats(SkString* out) const { in dumpStats()
174 void GrResourceCache::dumpStatsKeyValuePairs(SkTArray<SkString>* keys, in dumpStatsKeyValuePairs()
188 void GrResourceCache::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newTimestamp; } in changeTimestamp()
191 int GrResourceCache::countUniqueKeysWithTag(const char* tag) const { in countUniqueKeysWithTag()
/external/skia/tests/
DPathRendererCacheTests.cpp64 static bool cache_non_scratch_resources_equals(GrResourceCache* cache, int expected) { in cache_non_scratch_resources_equals()
66 GrResourceCache::Stats stats; in cache_non_scratch_resources_equals()
84 GrResourceCache* cache = dContext->priv().getResourceCache(); in test_path()
DResourceCacheTest.cpp333 GrResourceCache* cache = fDContext->priv().getResourceCache(); in Mock()
338 GrResourceCache* cache() { return fDContext->priv().getResourceCache(); } in cache()
352 GrResourceCache* cache = mock.cache(); in test_no_key()
405 GrResourceCache* cache = mock.cache(); in test_purge_unlocked()
468 GrResourceCache* cache = mock.cache(); in test_purge_command_buffer_usage()
536 GrResourceCache* cache = mock.cache(); in test_budgeting()
662 GrResourceCache* cache = mock.cache(); in test_unbudgeted()
734 GrResourceCache* cache = mock.cache(); in test_unbudgeted_to_scratch()
800 GrResourceCache* cache = mock.cache(); in test_duplicate_scratch_key()
847 GrResourceCache* cache = mock.cache(); in test_remove_scratch_key()
[all …]
DTextureProxyTest.cpp130 GrResourceCache* cache = dContext->priv().getResourceCache(); in basic_test()
224 GrResourceCache* cache = dContext->priv().getResourceCache(); in invalidation_test()
291 GrResourceCache* cache = dContext->priv().getResourceCache(); in invalidation_and_instantiation_test()
331 GrResourceCache* cache = direct->priv().getResourceCache(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skia/tools/gpu/
DGrTest.cpp38 void GrResourceCache::changeTimestamp(uint32_t newTimestamp) { fTimestamp = newTimestamp; } in changeTimestamp()
41 int GrResourceCache::countUniqueKeysWithTag(const char* tag) const { in countUniqueKeysWithTag()
/external/skqp/include/gpu/
DGrContext.h38 class GrResourceCache; variable
301 GrResourceCache* fResourceCache;
DGrGpuResource.h17 class GrResourceCache; variable
134 friend class GrResourceCache; // to check IO ref counts. variable

12