Home
last modified time | relevance | path

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

12

/external/skqp/tests/
DTextureProxyTest.cpp51 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_tex()
64 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in deferred_texRT()
75 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()
161 const GrUniqueKey texKey = proxy->peekSurface()->getUniqueKey(); in basic_test()
290 REPORTER_ASSERT(reporter, !proxy->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
291 REPORTER_ASSERT(reporter, !proxy->peekTexture()->getUniqueKey().isValid()); in invalidation_and_instantiation_test()
/external/skqp/src/gpu/
DGrResourceCache.cpp139 !resource->getUniqueKey().isValid()) { in insertResource()
170 !resource->getUniqueKey().isValid()) { in removeResource()
173 if (resource->getUniqueKey().isValid()) { in removeResource()
174 fUniqueHash.remove(resource->getUniqueKey()); in removeResource()
255 SkASSERT(!resource->getUniqueKey().isValid() && in operator ()()
302 if (!resource->getUniqueKey().isValid()) { in willRemoveScratchKey()
311 if (resource->getUniqueKey().isValid()) { in removeUniqueKey()
312 SkASSERT(resource == fUniqueHash.find(resource->getUniqueKey())); in removeUniqueKey()
313 fUniqueHash.remove(resource->getUniqueKey()); in removeUniqueKey()
347 if (resource->getUniqueKey().isValid()) { in changeUniqueKey()
[all …]
DGrProxyProvider.cpp93 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
99 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
100 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
101 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
103 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
110 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
116 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
136 if (tex->getUniqueKey().isValid()) { in createWrapped()
137 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey(), origin)); in createWrapped()
174 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrResourceAllocator.cpp225 if (surface->getUniqueKey().isValid()) { in recycleSurface()
244 if (proxy->asTextureProxy() && proxy->asTextureProxy()->getUniqueKey().isValid()) { in findSurfaceFor()
247 proxy->asTextureProxy()->getUniqueKey()); in findSurfaceFor()
279 SkASSERT(!surface->getUniqueKey().isValid()); in findSurfaceFor()
388 if (texProxy && texProxy->getUniqueKey().isValid()) { in assign()
389 if (!surface->getUniqueKey().isValid()) { in assign()
390 fResourceProvider->assignUniqueKeyToResource(texProxy->getUniqueKey(), in assign()
393 SkASSERT(surface->getUniqueKey() == texProxy->getUniqueKey()); in assign()
DGrSurfaceProxy.cpp233 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
431 if (fProxy->asTextureProxy() && fProxy->asTextureProxy()->getUniqueKey().isValid()) { in doLazyInstantiation()
434 fProxy->asTextureProxy()->getUniqueKey()); in doLazyInstantiation()
468 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
470 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
475 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
DGrTextureProxy.cpp57 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
154 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
157 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrTextureRenderTargetProxy.cpp84 const GrUniqueKey& key = this->getUniqueKey(); in instantiate()
91 SkASSERT(key == this->getUniqueKey()); in instantiate()
DGrGpuResourcePriv.h51 !fResource->getUniqueKey().isValid() || fResource->fRefsWrappedObjects); in budgetedType()
DGrGpuResourceCacheAccess.h28 return !fResource->getUniqueKey().isValid() && fResource->fScratchKey.isValid() && in isScratch()
DGrBitmapTextureMaker.cpp86 SkASSERT(proxy->getUniqueKey() == fOriginalKey); in refOriginalTextureProxy()
DGrTexture.cpp65 if (texture->getUniqueKey().isValid()) { in StealBackendTexture()
/external/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()
/external/skia/src/gpu/
DGrProxyProvider.cpp76 SkASSERT(proxy->getUniqueKey() == key); in assignUniqueKeyToProxy()
82 SkASSERT(surf->getUniqueKey().isValid()); in adoptUniqueKeyFromSurface()
83 proxy->cacheAccess().setUniqueKey(this, surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
84 SkASSERT(proxy->getUniqueKey() == surf->getUniqueKey()); in adoptUniqueKeyFromSurface()
86 SkASSERT(!fUniquelyKeyedProxies.find(surf->getUniqueKey())); in adoptUniqueKeyFromSurface()
93 SkASSERT(proxy->getUniqueKey().isValid()); in removeUniqueKeyFromProxy()
99 this->processInvalidUniqueKey(proxy->getUniqueKey(), proxy, InvalidateGPUResource::kYes); in removeUniqueKeyFromProxy()
189 if (tex->getUniqueKey().isValid()) { in createWrapped()
190 SkASSERT(!this->findProxyByUniqueKey(tex->getUniqueKey())); in createWrapped()
232 SkASSERT(result->getUniqueKey() == key); in findOrCreateProxyByUniqueKey()
[all …]
DGrSurfaceProxy.cpp173 SkASSERT(fTarget->getUniqueKey().isValid() && fTarget->getUniqueKey() == *uniqueKey); in instantiateImpl()
412 if (const auto& uniqueKey = fProxy->getUniqueKey(); uniqueKey.isValid()) { in doLazyInstantiation()
443 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
445 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
450 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
453 SkASSERT(!surface->getUniqueKey().isValid()); in doLazyInstantiation()
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 …]
DGrTextureProxy.h71 const GrUniqueKey& getUniqueKey() const override { in getUniqueKey() function
78 SkASSERT(surface->getUniqueKey().isValid()); in getUniqueKey()
83 SkASSERT(fUniqueKey == surface->getUniqueKey()); in getUniqueKey()
DGrTextureProxy.cpp79 if (fTarget->getUniqueKey().isValid()) { in GrTextureProxy()
173 if (!fTarget->getUniqueKey().isValid()) { in setUniqueKey()
176 SkASSERT(fTarget->getUniqueKey() == key); in setUniqueKey()
DGrResourceAllocator.cpp171 if (const auto& uniqueKey = proxy->getUniqueKey(); uniqueKey.isValid()) { in instantiateSurface()
172 if (!surface->getUniqueKey().isValid()) { in instantiateSurface()
175 SkASSERT(surface->getUniqueKey() == uniqueKey); in instantiateSurface()
275 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.cpp74 if (texture->getUniqueKey().isValid()) { in StealBackendTexture()
/external/skqp/include/private/
DGrTextureProxy.h58 const GrUniqueKey& getUniqueKey() const { in getUniqueKey() function
61 SkASSERT(fTarget->getUniqueKey().isValid()); in getUniqueKey()
66 SkASSERT(fUniqueKey == fTarget->getUniqueKey()); in getUniqueKey()
/external/skqp/src/image/
DSkImage_Lazy.cpp327 if (originalProxy && originalProxy->getUniqueKey().isValid()) { in set_key_on_proxy()
328 SkASSERT(originalProxy->getUniqueKey() == key); in set_key_on_proxy()
334 SkASSERT(originalProxy->getUniqueKey() == key); in set_key_on_proxy()
/external/skia/tools/gpu/
DGrTest.cpp44 if (0 == strcmp(tag, resource.getUniqueKey().tag())) { in countUniqueKeysWithTag()

12