Home
last modified time | relevance | path

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

12

/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/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()
286 SkASSERT(!resource->getUniqueKey().isValid() && in operator ()()
333 if (!resource->getUniqueKey().isValid()) { in willRemoveScratchKey()
342 if (resource->getUniqueKey().isValid()) { in removeUniqueKey()
343 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in removeUniqueKey()
344 fUniqueHash.remove(resource->getUniqueKey()); in removeUniqueKey()
378 if (resource->getUniqueKey().isValid()) { in changeUniqueKey()
[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()
77 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
78 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
79 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
81 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
88 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
94 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
195 if (tex->getUniqueKey().isValid()) { in createWrapped()
196 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey(), origin)); in createWrapped()
240 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrSurfaceProxy.cpp244 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
461 if (fProxy->asTextureProxy() && fProxy->asTextureProxy()->getUniqueKey().isValid()) { in doLazyInstantiation()
464 fProxy->asTextureProxy()->getUniqueKey()); in doLazyInstantiation()
506 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
508 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
513 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
516 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/src/gpu/
DGrProxyProvider.cpp79 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
85 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
86 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
87 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
89 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
96 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
102 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
202 if (tex->getUniqueKey().isValid()) { in createWrapped()
203 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey())); in createWrapped()
245 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrResourceCache.cpp192 if (resource->getUniqueKey().isValid()) { in removeResource()
193 fUniqueHash.remove(resource->getUniqueKey()); in removeResource()
317 if (resource->getUniqueKey().isValid()) { in removeUniqueKey()
318 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in removeUniqueKey()
319 fUniqueHash.remove(resource->getUniqueKey()); in removeUniqueKey()
353 if (resource->getUniqueKey().isValid()) { in changeUniqueKey()
354 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in changeUniqueKey()
355 fUniqueHash.remove(resource->getUniqueKey()); in changeUniqueKey()
356 SkASSERT(nullptr == fUniqueHash.find(resource->getUniqueKey())); in changeUniqueKey()
443 bool hasUniqueKey = resource->getUniqueKey().isValid(); in notifyARefCntReachedZero()
[all …]
DGrSurfaceProxy.cpp181 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
418 if (const auto& uniqueKey = fProxy->getUniqueKey(); uniqueKey.isValid()) { in doLazyInstantiation()
449 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
451 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
456 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
459 SkASSERT(!surface->getUniqueKey().isValid()); in doLazyInstantiation()
DGrTextureProxy.h72 const GrUniqueKey& getUniqueKey() const override { in getUniqueKey() function
79 SkASSERT(surface->getUniqueKey().isValid()); in getUniqueKey()
84 SkASSERT(fUniqueKey == surface->getUniqueKey()); in getUniqueKey()
DGrTextureProxy.cpp80 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
174 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
177 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrResourceAllocator.cpp170 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in instantiateSurface()
171 if (!surface->getUniqueKey().isValid()) { in instantiateSurface()
174 SkASSERT(surface->getUniqueKey() == uniqueKey); in instantiateSurface()
274 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