Home
last modified time | relevance | path

Searched refs:texProxy (Results 1 – 18 of 18) 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()
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(context); 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/src/gpu/
DGrAHardwareBufferImageGenerator.cpp151 sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( in makeProxy() local
190 return texProxy; in makeProxy()
196 sk_sp<GrTextureProxy> texProxy = this->makeProxy(context); in onGenerateTexture() local
197 if (!texProxy) { in onGenerateTexture()
205 return texProxy; in onGenerateTexture()
212 return GrSurfaceProxy::Copy(context, texProxy.get(), mipMapped, subset, SkBackingFit::kExact, in onGenerateTexture()
DGrGpu.cpp47 bool GrGpu::IsACopyNeededForRepeatWrapMode(const GrCaps* caps, GrTextureProxy* texProxy, in IsACopyNeededForRepeatWrapMode() argument
73 if (texProxy) { in IsACopyNeededForRepeatWrapMode()
76 if (texProxy->hasRestrictedSampling()) { in IsACopyNeededForRepeatWrapMode()
78 copyParams->fWidth = texProxy->width(); in IsACopyNeededForRepeatWrapMode()
79 copyParams->fHeight = texProxy->height(); in IsACopyNeededForRepeatWrapMode()
87 bool GrGpu::IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy, in IsACopyNeededForMips() argument
90 SkASSERT(texProxy); in IsACopyNeededForMips()
94 if (willNeedMips && texProxy->mipMapped() == GrMipMapped::kNo) { in IsACopyNeededForMips()
96 copyParams->fWidth = texProxy->width(); in IsACopyNeededForMips()
97 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()
DGrGpu.h432 static bool IsACopyNeededForRepeatWrapMode(const GrCaps*, GrTextureProxy* texProxy,
442 static bool IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy,
DGrSurfaceProxy.cpp464 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local
465 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
DGrRenderTargetContext.cpp2113 if (GrTextureProxy* texProxy = rtProxy->asTextureProxy()) { in setupDstProxy() local
2116 dstProxy->setProxy(sk_ref_sp(texProxy)); in setupDstProxy()
/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()