Home
last modified time | relevance | path

Searched refs:getUniqueKey (Results 1 – 20 of 20) sorted by relevance

/external/skia/tests/
DTextureProxyTest.cpp78 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
100 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
109 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped()
128 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid()); in wrapped_with_key()
167 if (proxy->getUniqueKey().isValid()) { in basic_test()
168 key = proxy->getUniqueKey(); in basic_test()
182 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey()); in basic_test()
192 const skgpu::UniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
337 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
338 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
DResourceCacheTest.cpp1114 REPORTER_ASSERT(reporter, *(int*) d2->getUniqueKey().getCustomData()->data() == 4132); in test_duplicate_unique_key()
1550 resource->getUniqueKey(); in test_abandoned()
DImageTest.cpp504 REPORTER_ASSERT(reporter, !texProxy->getUniqueKey().isValid()); in DEF_GANESH_TEST_FOR_RENDERING_CONTEXTS()
/external/skia/src/gpu/ganesh/
DGrResourceCache.cpp129 if (resource->getUniqueKey().isValid()) { in removeResource()
130 fUniqueHash.remove(resource->getUniqueKey()); in removeResource()
233 if (resource->getUniqueKey().isValid()) { in removeUniqueKey()
234 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in removeUniqueKey()
235 fUniqueHash.remove(resource->getUniqueKey()); in removeUniqueKey()
269 if (resource->getUniqueKey().isValid()) { in changeUniqueKey()
270 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in changeUniqueKey()
271 fUniqueHash.remove(resource->getUniqueKey()); in changeUniqueKey()
272 SkASSERT(nullptr == fUniqueHash.find(resource->getUniqueKey())); in changeUniqueKey()
359 bool hasUniqueKey = resource->getUniqueKey().isValid(); in notifyARefCntReachedZero()
[all …]
DGrProxyProvider.cpp78 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
84 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
85 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
86 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
88 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
95 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
101 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
204 if (tex->getUniqueKey().isValid()) { in createWrapped()
205 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey())); in createWrapped()
247 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrSurfaceProxy.cpp204 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
446 if (const auto& uniqueKey = fProxy->getUniqueKey(); uniqueKey.isValid()) { in doLazyInstantiation()
477 const skgpu::UniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
479 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
484 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
487 SkASSERT(!surface->getUniqueKey().isValid()); in doLazyInstantiation()
DGrTextureProxy.h85 const skgpu::UniqueKey& getUniqueKey() const override { in getUniqueKey() function
92 SkASSERT(surface->getUniqueKey().isValid()); in getUniqueKey()
97 SkASSERT(fUniqueKey == surface->getUniqueKey()); in getUniqueKey()
DGrTextureProxy.cpp98 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
194 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
197 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrResourceAllocator.cpp173 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in instantiateSurface()
174 if (!surface->getUniqueKey().isValid()) { in instantiateSurface()
177 SkASSERT(surface->getUniqueKey() == uniqueKey); in instantiateSurface()
277 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in findOrCreateRegisterFor()
DGrTextureRenderTargetProxy.cpp167 const skgpu::UniqueKey& key = this->getUniqueKey(); in instantiate()
174 SkASSERT(key == this->getUniqueKey()); in instantiate()
DGrGpuResourcePriv.h49 !fResource->getUniqueKey().isValid() || fResource->fRefsWrappedObjects); in budgetedType()
DGrGpuResourceCacheAccess.h31 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch()
DGrTexture.cpp75 if (texture->getUniqueKey().isValid()) { in StealBackendTexture()
DGrResourceAllocator.h163 const skgpu::UniqueKey& uniqueKey() const { return fOriginatingProxy->getUniqueKey(); } in uniqueKey()
DGrGpuResource.h175 const skgpu::UniqueKey& getUniqueKey() const { return fUniqueKey; } in getUniqueKey() function
DGrProxyProvider.h303 static const skgpu::UniqueKey& GetKey(const GrTextureProxy& p) { return p.getUniqueKey(); } in GetKey()
DGrSurfaceProxy.h253 virtual const skgpu::UniqueKey& getUniqueKey() const { in getUniqueKey() function
DGrResourceCache.h339 static const skgpu::UniqueKey& GetKey(const GrGpuResource& r) { return r.getUniqueKey(); } in GetKey()
DGrThreadSafeCache.cpp352 SkASSERT(!trampoline->fProxy->peekTexture()->getUniqueKey().isValid()); in CreateLazyView()
DSkGr.cpp239 SkASSERT(proxy->getUniqueKey() == key); in GrMakeCachedBitmapProxyView()