Home
last modified time | relevance | path

Searched refs:texProxy (Results 1 – 16 of 16) sorted by relevance

/external/skqp/tests/
DProxyTest.cpp80 GrTextureProxy* texProxy, in check_texture() argument
82 GrSurfaceProxy::UniqueID idBefore = texProxy->uniqueID(); in check_texture()
84 bool preinstantiated = texProxy->isInstantiated(); in check_texture()
85 REPORTER_ASSERT(reporter, texProxy->instantiate(provider)); in check_texture()
86 GrTexture* tex = texProxy->peekTexture(); in check_texture()
88 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore); in check_texture()
91 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt()); in check_texture()
93 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt()); in check_texture()
97 REPORTER_ASSERT(reporter, tex->width() == texProxy->width()); in check_texture()
98 REPORTER_ASSERT(reporter, tex->height() == texProxy->height()); in check_texture()
[all …]
DGrMipMappedTest.cpp258 GrTextureProxy* texProxy = device->accessRenderTargetContext()->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
259 REPORTER_ASSERT(reporter, mipMapped == texProxy->mipMapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
261 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
262 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
270 texProxy = as_IB(image)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
271 REPORTER_ASSERT(reporter, mipMapped == texProxy->mipMapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
273 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
274 texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkBackendSurfaceTest.cpp66 sk_sp<GrTextureProxy> texProxy = as_IB(wrappedImage)->asTextureProxyRef(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local
67 REPORTER_ASSERT(reporter, texProxy.get()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
68 REPORTER_ASSERT(reporter, texProxy->isInstantiated()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
69 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
/external/skia/tests/
DProxyTest.cpp80 GrTextureProxy* texProxy, in check_texture() argument
82 GrSurfaceProxy::UniqueID idBefore = texProxy->uniqueID(); in check_texture()
84 bool preinstantiated = texProxy->isInstantiated(); in check_texture()
94 SkISize expectedSize = texProxy->backingStoreDimensions(); in check_texture()
96 REPORTER_ASSERT(reporter, texProxy->instantiate(provider)); in check_texture()
97 GrTexture* tex = texProxy->peekTexture(); in check_texture()
99 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore); in check_texture()
102 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt()); in check_texture()
104 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt()); in check_texture()
109 REPORTER_ASSERT(reporter, tex->backendFormat() == texProxy->backendFormat()); in check_texture()
DEGLImageTest.cpp158 sk_sp<GrSurfaceProxy> texProxy = context0->priv().proxyProvider()->wrapBackendTexture( in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS() local
160 if (!texProxy) { in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
165 GrSwizzle swizzle = context0->priv().caps()->getReadSwizzle(texProxy->backendFormat(), in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
167 GrSurfaceProxyView view(std::move(texProxy), origin, swizzle); in DEF_GPUTEST_FOR_GL_RENDERING_CONTEXTS()
DGrMipMappedTest.cpp314 GrTextureProxy* texProxy = device->surfaceDrawContext()->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
315 REPORTER_ASSERT(reporter, mipmapped == texProxy->mipmapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
317 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
318 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
324 texProxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
325 REPORTER_ASSERT(reporter, mipmapped == texProxy->mipmapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
327 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
328 texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DImageTest.cpp447 GrTextureProxy* texProxy = sk_gpu_test::GetTextureImageProxy(texImage.get(), in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
449 REPORTER_ASSERT(reporter, !texProxy->getUniqueKey().isValid()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
450 REPORTER_ASSERT(reporter, texProxy->isBudgeted() == budgeted); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
/external/skqp/src/gpu/
DGrGpu.cpp48 bool GrGpu::IsACopyNeededForRepeatWrapMode(const GrCaps* caps, GrTextureProxy* texProxy, in IsACopyNeededForRepeatWrapMode() argument
74 if (texProxy) { in IsACopyNeededForRepeatWrapMode()
77 if (texProxy->hasRestrictedSampling()) { in IsACopyNeededForRepeatWrapMode()
79 copyParams->fWidth = texProxy->width(); in IsACopyNeededForRepeatWrapMode()
80 copyParams->fHeight = texProxy->height(); in IsACopyNeededForRepeatWrapMode()
88 bool GrGpu::IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy, in IsACopyNeededForMips() argument
91 SkASSERT(texProxy); in IsACopyNeededForMips()
95 if (willNeedMips && texProxy->mipMapped() == GrMipMapped::kNo) { in IsACopyNeededForMips()
97 copyParams->fWidth = texProxy->width(); in IsACopyNeededForMips()
98 copyParams->fHeight = texProxy->height(); in IsACopyNeededForMips()
DGrResourceAllocator.cpp386 GrTextureProxy* texProxy = cur->proxy()->asTextureProxy(); in assign() local
388 if (texProxy && texProxy->getUniqueKey().isValid()) { in assign()
390 fResourceProvider->assignUniqueKeyToResource(texProxy->getUniqueKey(), in assign()
393 SkASSERT(surface->getUniqueKey() == texProxy->getUniqueKey()); in assign()
DGrAHardwareBufferImageGenerator.cpp580 sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( in makeProxy() local
624 if (!texProxy) { in makeProxy()
627 return texProxy; in makeProxy()
632 sk_sp<GrTextureProxy> texProxy = this->makeProxy(context); in onGenerateTexture() local
633 if (!texProxy) { in onGenerateTexture()
641 return texProxy; in onGenerateTexture()
648 return GrSurfaceProxy::Copy(context, texProxy.get(), mipMapped, subset, SkBackingFit::kExact, in onGenerateTexture()
DGrGpu.h400 static bool IsACopyNeededForRepeatWrapMode(const GrCaps*, GrTextureProxy* texProxy,
410 static bool IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy,
DGrSurfaceProxy.cpp467 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local
468 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
DGrRenderTargetContext.cpp2003 if (GrTextureProxy* texProxy = rtProxy->asTextureProxy()) { in setupDstProxy() local
2006 dstProxy->setProxy(sk_ref_sp(texProxy)); in setupDstProxy()
/external/skia/src/gpu/
DGrAHardwareBufferImageGenerator.cpp139 sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( in makeView() local
193 return GrSurfaceProxyView(std::move(texProxy), fSurfaceOrigin, readSwizzle); in makeView()
DGrSurfaceProxy.cpp440 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local
441 texProxy->setTargetKeySync(syncKey); in doLazyInstantiation()
443 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
/external/skia/src/gpu/gl/
DGrGLCaps.cpp3391 if (const auto* texProxy = src->asTextureProxy()) { in getDstCopyRestrictions() local
3392 if (texProxy->textureType() == GrTextureType::kExternal) { in getDstCopyRestrictions()