Home
last modified time | relevance | path

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

12

/third_party/flutter/skia/src/gpu/
DGrResourceCache.cpp163 !resource->getUniqueKey().isValid()) { in insertResource()
194 !resource->getUniqueKey().isValid()) { in removeResource()
197 if (resource->getUniqueKey().isValid()) { in removeResource()
198 fUniqueHash.remove(resource->getUniqueKey()); in removeResource()
277 if (tag.filter(resource->getResourceTag()) && resource->getUniqueKey().isValid()) { in releaseByTag()
278 fProxyProvider->processInvalidUniqueKey(resource->getUniqueKey(), nullptr, in releaseByTag()
288 if (resource->getUniqueKey().isValid()) { in releaseByTag()
289 fProxyProvider->processInvalidUniqueKey(resource->getUniqueKey(), nullptr, in releaseByTag()
331 (!scratchResourcesOnly || !resource->getUniqueKey().isValid())) { in purgeUnlockedResourcesByTag()
378 SkASSERT(!resource->getUniqueKey().isValid() && in operator ()()
[all …]
DGrResourceAllocator.cpp271 if (surface->getUniqueKey().isValid()) { in recycleSurface()
290 if (proxy->asTextureProxy() && proxy->asTextureProxy()->getUniqueKey().isValid()) { in findSurfaceFor()
293 proxy->asTextureProxy()->getUniqueKey()); in findSurfaceFor()
325 SkASSERT(!surface->getUniqueKey().isValid()); in findSurfaceFor()
464 if (texProxy && texProxy->getUniqueKey().isValid()) { in assign()
465 if (!surface->getUniqueKey().isValid()) { in assign()
466 fResourceProvider->assignUniqueKeyToResource(texProxy->getUniqueKey(), in assign()
469 SkASSERT(surface->getUniqueKey() == texProxy->getUniqueKey()); in assign()
DGrProxyProvider.cpp71 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
89 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
90 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
91 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
93 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
100 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
106 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
207 if (tex->getUniqueKey().isValid()) { in createWrapped()
208 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey(), origin)); in createWrapped()
253 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrSurfaceProxy.cpp245 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
462 if (fProxy->asTextureProxy() && fProxy->asTextureProxy()->getUniqueKey().isValid()) { in doLazyInstantiation()
465 fProxy->asTextureProxy()->getUniqueKey()); in doLazyInstantiation()
507 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
509 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
514 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
517 SkASSERT(!surface->getUniqueKey().isValid()); in doLazyInstantiation()
DGrTextureProxy.h72 const GrUniqueKey& getUniqueKey() const { in getUniqueKey() function
78 SkASSERT(surface->getUniqueKey().isValid()); in getUniqueKey()
83 SkASSERT(fUniqueKey == surface->getUniqueKey()); in getUniqueKey()
DGrTextureProxy.cpp56 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
151 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
154 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrTextureRenderTargetProxy.cpp99 const GrUniqueKey& key = this->getUniqueKey(); in instantiate()
107 SkASSERT(key == this->getUniqueKey()); in instantiate()
DGrGpuResourcePriv.h51 !fResource->getUniqueKey().isValid() || fResource->fRefsWrappedObjects); in budgetedType()
DGrGpuResourceCacheAccess.h31 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch()
DGrBitmapTextureMaker.cpp88 SkASSERT(proxy->getUniqueKey() == fOriginalKey); in refOriginalTextureProxy()
DGrTexture.cpp67 if (texture->getUniqueKey().isValid()) { in StealBackendTexture()
DGrTextureMaker.cpp99 SkASSERT(cachedProxy->getUniqueKey() == copyKey); in onRefTextureProxyForParams()
/third_party/skia/tests/
DTextureProxyTest.cpp52 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
68 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped()
96 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid()); in wrapped_with_key()
135 if (proxy->getUniqueKey().isValid()) { in basic_test()
136 key = proxy->getUniqueKey(); in basic_test()
150 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey()); in basic_test()
160 const GrUniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
316 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
317 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
/third_party/flutter/skia/tests/
DTextureProxyTest.cpp51 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
67 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
77 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in wrapped()
97 REPORTER_ASSERT(reporter, proxy->getUniqueKey().isValid()); in wrapped_with_key()
139 if (proxy->getUniqueKey().isValid()) { in basic_test()
140 key = proxy->getUniqueKey(); in basic_test()
154 REPORTER_ASSERT(reporter, key == proxy->getUniqueKey()); in basic_test()
165 const GrUniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
297 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
298 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
/third_party/skia/src/gpu/
DGrResourceCache.cpp195 if (resource->getUniqueKey().isValid()) { in removeResource()
196 fUniqueHash.remove(resource->getUniqueKey()); in removeResource()
283 if (resource->getUniqueKey().isValid()) { in releaseByTag()
284 fProxyProvider->processInvalidUniqueKey(resource->getUniqueKey(), nullptr, in releaseByTag()
294 if (resource->getUniqueKey().isValid()) { in releaseByTag()
295 fProxyProvider->processInvalidUniqueKey(resource->getUniqueKey(), nullptr, in releaseByTag()
383 if (resource->getUniqueKey().isValid()) { in removeUniqueKey()
384 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in removeUniqueKey()
385 fUniqueHash.remove(resource->getUniqueKey()); in removeUniqueKey()
419 if (resource->getUniqueKey().isValid()) { in changeUniqueKey()
[all …]
DGrProxyProvider.cpp79 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
97 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
98 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
99 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
101 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
108 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
114 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
214 if (tex->getUniqueKey().isValid()) { in createWrapped()
215 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey())); in createWrapped()
258 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrSurfaceProxy.cpp184 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
421 if (const auto& uniqueKey = fProxy->getUniqueKey(); uniqueKey.isValid()) { in doLazyInstantiation()
452 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
454 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
459 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
462 SkASSERT(!surface->getUniqueKey().isValid()); in doLazyInstantiation()
DGrTextureProxy.cpp80 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
127 …if (!(surface->getUniqueKey().isValid()) && !(surface->resourcePriv().getScratchKey().isValid())) { in createSurface()
180 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
183 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrTextureProxy.h72 const GrUniqueKey& getUniqueKey() const override { in getUniqueKey() function
79 SkASSERT(surface->getUniqueKey().isValid()); in getUniqueKey()
84 SkASSERT(fUniqueKey == surface->getUniqueKey()); in getUniqueKey()
DGrResourceAllocator.cpp180 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in instantiateSurface()
181 if (!surface->getUniqueKey().isValid()) { in instantiateSurface()
184 SkASSERT(surface->getUniqueKey() == uniqueKey); in instantiateSurface()
284 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in findOrCreateRegisterFor()
DGrTextureRenderTargetProxy.cpp123 const GrUniqueKey& key = this->getUniqueKey(); in instantiate()
130 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()
/third_party/flutter/skia/src/image/
DSkImage_Lazy.cpp385 if (originalProxy && originalProxy->getUniqueKey().isValid()) { in set_key_on_proxy()
386 SkASSERT(originalProxy->getUniqueKey() == key); in set_key_on_proxy()
392 SkASSERT(originalProxy->getUniqueKey() == key); in set_key_on_proxy()

12