Searched refs:findByUniqueKey (Results 1 – 20 of 20) sorted by relevance
69 template <typename T = GrGpuResource> sk_sp<T> findByUniqueKey(const GrUniqueKey& key) { in findByUniqueKey() function169 if (auto buffer = this->findByUniqueKey<GrBuffer>(key)) { in findOrCreatePatternedIndexBuffer()183 if (auto buffer = this->findByUniqueKey<const GrBuffer>(fQuadIndexBufferKey)) { in refQuadIndexBuffer()
292 if (auto buffer = this->findByUniqueKey<GrBuffer>(key)) { in findOrMakeStaticBuffer()425 auto stencil = this->findByUniqueKey<GrStencilAttachment>(sbKey); in attachStencilAttachment()
246 sk_sp<GrSurface> surface = fResourceProvider->findByUniqueKey<GrSurface>( in findSurfaceFor()
433 surface = resourceProvider->findByUniqueKey<GrSurface>( in doLazyInstantiation()
743 invalidGpuResource = fResourceProvider->findByUniqueKey<GrGpuResource>(key); in processInvalidUniqueKey()
496 REPORTER_ASSERT(reporter, ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey1)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()515 REPORTER_ASSERT(reporter, !ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey1)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()542 REPORTER_ASSERT(reporter, ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey2)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()567 REPORTER_ASSERT(reporter, ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey2)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()590 REPORTER_ASSERT(reporter, ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey2)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()619 REPORTER_ASSERT(reporter, !ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey2)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()620 REPORTER_ASSERT(reporter, ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey3)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()665 REPORTER_ASSERT(reporter, !ctx->contextPriv().resourceProvider()->findByUniqueKey<>(texKey3)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()764 auto surf = ctx->contextPriv().resourceProvider()->findByUniqueKey<GrSurface>(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()778 auto surf = ctx->contextPriv().resourceProvider()->findByUniqueKey<GrSurface>(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
66 findByUniqueKey(const GrUniqueKey& key) { in findByUniqueKey() function166 if (auto buffer = this->findByUniqueKey<const GrGpuBuffer>(key)) { in findOrCreatePatternedIndexBuffer()
273 if (auto buffer = this->findByUniqueKey<GrGpuBuffer>(key)) { in findOrMakeStaticBuffer()395 auto stencil = this->findByUniqueKey<GrStencilAttachment>(sbKey); in attachStencilAttachment()
431 surface = resourceProvider->findByUniqueKey<GrSurface>( in doLazyInstantiation()
794 invalidGpuResource = resourceProvider->findByUniqueKey<GrGpuResource>(key); in processInvalidUniqueKey()
61 path = resourceProvider->findByUniqueKey<GrPath>(key); in get_gr_path()
289 sk_sp<GrBuffer> vertexBuffer = rp->findByUniqueKey<GrBuffer>(vertexKey); in drawNonVolatile()291 rp->findByUniqueKey<GrBuffer>(indexKey) : in drawNonVolatile()
264 sk_sp<GrBuffer> cachedVertexBuffer(rp->findByUniqueKey<GrBuffer>(key)); in draw()
347 sk_sp<GrGpuBuffer> vertexBuffer = rp->findByUniqueKey<GrGpuBuffer>(vertexKey); in drawNonVolatile()349 this->isIndexed() ? rp->findByUniqueKey<GrGpuBuffer>(indexKey) : nullptr; in drawNonVolatile()
265 sk_sp<GrGpuBuffer> cachedVertexBuffer(rp->findByUniqueKey<GrGpuBuffer>(key)); in draw()
317 auto surf = ctx->priv().resourceProvider()->findByUniqueKey<GrSurface>(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()331 auto surf = ctx->priv().resourceProvider()->findByUniqueKey<GrSurface>(key); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
443 auto surf = resourceProvider->findByUniqueKey<GrSurface>(fLastFulfilledKey); in MakePromiseImageLazyProxy()491 if (auto surf = resourceProvider->findByUniqueKey<GrSurface>(fLastFulfilledKey)) { in MakePromiseImageLazyProxy()
494 if (auto surf = resourceProvider->findByUniqueKey<GrSurface>(key)) { in MakePromiseImageLazyProxy()