/external/skqp/tests/ |
D | ProxyTest.cpp | 80 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 …]
|
D | GrMipMappedTest.cpp | 258 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()
|
D | VkBackendSurfaceTest.cpp | 66 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/ |
D | ProxyTest.cpp | 80 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 …]
|
D | GrMipMappedTest.cpp | 258 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()
|
D | VkBackendSurfaceTest.cpp | 66 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/ |
D | GrAHardwareBufferImageGenerator.cpp | 151 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()
|
D | GrGpu.cpp | 47 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()
|
D | GrResourceAllocator.cpp | 386 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()
|
D | GrGpu.h | 432 static bool IsACopyNeededForRepeatWrapMode(const GrCaps*, GrTextureProxy* texProxy, 442 static bool IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy,
|
D | GrSurfaceProxy.cpp | 464 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local 465 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
|
D | GrRenderTargetContext.cpp | 2113 if (GrTextureProxy* texProxy = rtProxy->asTextureProxy()) { in setupDstProxy() local 2116 dstProxy->setProxy(sk_ref_sp(texProxy)); in setupDstProxy()
|
/external/skqp/src/gpu/ |
D | GrGpu.cpp | 48 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()
|
D | GrResourceAllocator.cpp | 386 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()
|
D | GrAHardwareBufferImageGenerator.cpp | 580 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()
|
D | GrGpu.h | 400 static bool IsACopyNeededForRepeatWrapMode(const GrCaps*, GrTextureProxy* texProxy, 410 static bool IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy,
|
D | GrSurfaceProxy.cpp | 467 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local 468 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
|
D | GrRenderTargetContext.cpp | 2003 if (GrTextureProxy* texProxy = rtProxy->asTextureProxy()) { in setupDstProxy() local 2006 dstProxy->setProxy(sk_ref_sp(texProxy)); in setupDstProxy()
|