Home
last modified time | relevance | path

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

/third_party/flutter/skia/tests/
DProxyTest.cpp81 GrTextureProxy* texProxy, in check_texture() argument
83 GrSurfaceProxy::UniqueID idBefore = texProxy->uniqueID(); in check_texture()
85 bool preinstantiated = texProxy->isInstantiated(); in check_texture()
86 REPORTER_ASSERT(reporter, texProxy->instantiate(provider)); in check_texture()
87 GrTexture* tex = texProxy->peekTexture(); in check_texture()
89 REPORTER_ASSERT(reporter, texProxy->uniqueID() == idBefore); in check_texture()
92 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() == tex->uniqueID().asUInt()); in check_texture()
94 REPORTER_ASSERT(reporter, texProxy->uniqueID().asUInt() != tex->uniqueID().asUInt()); in check_texture()
98 REPORTER_ASSERT(reporter, tex->width() == texProxy->width()); in check_texture()
99 REPORTER_ASSERT(reporter, tex->height() == texProxy->height()); in check_texture()
[all …]
DGLBackendSurfaceTest.cpp66 sk_sp<GrTextureProxy> texProxy = as_IB(wrappedImage)->asTextureProxyRef(context); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS() local
67 REPORTER_ASSERT(reporter, texProxy.get()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
68 REPORTER_ASSERT(reporter, texProxy->isInstantiated()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
69 auto texture = static_cast<GrGLTexture*>(texProxy->peekTexture()); in DEF_GPUTEST_FOR_ALL_GL_CONTEXTS()
DGrMipMappedTest.cpp276 GrTextureProxy* texProxy = device->accessRenderTargetContext()->asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
277 REPORTER_ASSERT(reporter, mipMapped == texProxy->mipMapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
279 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
280 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
288 texProxy = as_IB(image)->peekProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
289 REPORTER_ASSERT(reporter, mipMapped == texProxy->mipMapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
291 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
292 texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DVkBackendSurfaceTest.cpp70 sk_sp<GrTextureProxy> texProxy = as_IB(wrappedImage)->asTextureProxyRef(context); in DEF_GPUTEST_FOR_VULKAN_CONTEXT() local
71 REPORTER_ASSERT(reporter, texProxy.get()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
72 REPORTER_ASSERT(reporter, texProxy->isInstantiated()); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
73 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_VULKAN_CONTEXT()
/third_party/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()
DGrMipMappedTest.cpp316 GrTextureProxy* texProxy = device->readSurfaceView().asTextureProxy(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS() local
317 REPORTER_ASSERT(reporter, mipmapped == texProxy->mipmapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
319 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
320 GrTexture* texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
326 texProxy = sk_gpu_test::GetTextureImageProxy(image.get(), dContext); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
327 REPORTER_ASSERT(reporter, mipmapped == texProxy->mipmapped()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
329 texProxy->instantiate(resourceProvider); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
330 texture = texProxy->peekTexture(); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
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()
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()
/third_party/flutter/skia/src/gpu/
DGrAHardwareBufferImageGenerator.cpp152 sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( in makeProxy() local
195 return texProxy; in makeProxy()
201 sk_sp<GrTextureProxy> texProxy = this->makeProxy(context); in onGenerateTexture() local
202 if (!texProxy) { in onGenerateTexture()
210 return texProxy; in onGenerateTexture()
217 return GrSurfaceProxy::Copy(context, texProxy.get(), mipMapped, subset, SkBackingFit::kExact, in onGenerateTexture()
DGrSurfaceContext.cpp453 sk_sp<GrTextureProxy> texProxy = sk_ref_sp(this->asTextureProxy()); in rescale() local
455 if (!texProxy) { in rescale()
456 texProxy = GrSurfaceProxy::Copy(fContext, this->asSurfaceProxy(), GrMipMapped::kNo, srcRect, in rescale()
458 if (!texProxy) { in rescale()
496 linearRTC->drawTexture(GrNoClip(), texProxy, GrSamplerState::Filter::kNearest, in rescale()
500 texProxy = linearRTC->asTextureProxyRef(); in rescale()
557 if (srcW != texProxy->width() || srcH != texProxy->height()) { in rescale()
560 fp = GrBicubicEffect::Make(texProxy, matrix, domain, dir, prevAlphaType); in rescale()
562 fp = GrBicubicEffect::Make(texProxy, matrix, dir, prevAlphaType); in rescale()
576 currRTC->drawTexture(GrNoClip(), texProxy, filter, SkBlendMode::kSrc, SK_PMColor4fWHITE, in rescale()
[all …]
DGrGpu.cpp45 bool GrGpu::IsACopyNeededForRepeatWrapMode(const GrCaps* caps, GrTextureProxy* texProxy, in IsACopyNeededForRepeatWrapMode() argument
71 if (texProxy) { in IsACopyNeededForRepeatWrapMode()
74 if (texProxy->hasRestrictedSampling()) { in IsACopyNeededForRepeatWrapMode()
76 copyParams->fWidth = texProxy->width(); in IsACopyNeededForRepeatWrapMode()
77 copyParams->fHeight = texProxy->height(); in IsACopyNeededForRepeatWrapMode()
85 bool GrGpu::IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy, in IsACopyNeededForMips() argument
88 SkASSERT(texProxy); in IsACopyNeededForMips()
92 if (willNeedMips && texProxy->mipMapped() == GrMipMapped::kNo) { in IsACopyNeededForMips()
94 copyParams->fWidth = texProxy->width(); in IsACopyNeededForMips()
95 copyParams->fHeight = texProxy->height(); in IsACopyNeededForMips()
DGrResourceAllocator.cpp462 GrTextureProxy* texProxy = cur->proxy()->asTextureProxy(); in assign() local
464 if (texProxy && texProxy->getUniqueKey().isValid()) { in assign()
466 fResourceProvider->assignUniqueKeyToResource(texProxy->getUniqueKey(), in assign()
469 SkASSERT(surface->getUniqueKey() == texProxy->getUniqueKey()); in assign()
DGrSurfaceProxy.cpp504 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local
505 texProxy->setTargetKeySync(syncKey); in doLazyInstantiation()
507 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
DGrRenderTargetContext.cpp1631 sk_sp<GrTextureProxy> texProxy = sk_ref_sp(fRenderTargetProxy->asTextureProxy()); in asyncRescaleAndReadPixels() local
1634 if (!texProxy) { in asyncRescaleAndReadPixels()
1635 texProxy = GrSurfaceProxy::Copy(fContext, fRenderTargetProxy.get(), in asyncRescaleAndReadPixels()
1638 if (!texProxy) { in asyncRescaleAndReadPixels()
1652 rtc->drawTexture(GrNoClip(), std::move(texProxy), GrSamplerState::Filter::kNearest, in asyncRescaleAndReadPixels()
1765 sk_sp<GrTextureProxy> texProxy = this->asTextureProxyRef(); in asyncRescaleAndReadPixelsYUV420() local
1767 if (!texProxy) { in asyncRescaleAndReadPixelsYUV420()
1779 rtc->drawTexture(GrNoClip(), std::move(texProxy), GrSamplerState::Filter::kNearest, in asyncRescaleAndReadPixelsYUV420()
2372 if (GrTextureProxy* texProxy = rtProxy->asTextureProxy()) { in setupDstProxy() local
2375 dstProxy->setProxy(sk_ref_sp(texProxy)); in setupDstProxy()
DGrGpu.h490 static bool IsACopyNeededForRepeatWrapMode(const GrCaps*, GrTextureProxy* texProxy,
500 static bool IsACopyNeededForMips(const GrCaps* caps, const GrTextureProxy* texProxy,
/third_party/flutter/skia/src/image/
DSkImage_GpuBase.cpp90 sk_sp<GrTextureProxy> texProxy = this->asTextureProxyRef(direct); in getROPixels() local
93 texProxy->backendFormat()); in getROPixels()
96 direct->priv().makeWrappedSurfaceContext(std::move(texProxy), in getROPixels()
148 sk_sp<GrTextureProxy> texProxy = this->asTextureProxyRef(direct); in onReadPixels() local
151 texProxy->backendFormat()); in onReadPixels()
154 std::move(texProxy), grColorType, this->alphaType(), this->refColorSpace()); in onReadPixels()
/third_party/skia/src/gpu/
DGrAHardwareBufferImageGenerator.cpp128 sk_sp<GrTextureProxy> texProxy = proxyProvider->createLazyProxy( in makeView() local
182 return GrSurfaceProxyView(std::move(texProxy), fSurfaceOrigin, readSwizzle); in makeView()
DGrSurfaceProxy.cpp449 if (GrTextureProxy* texProxy = fProxy->asTextureProxy()) { in doLazyInstantiation() local
450 texProxy->setTargetKeySync(syncKey); in doLazyInstantiation()
452 const GrUniqueKey& key = texProxy->getUniqueKey(); in doLazyInstantiation()
DGrResourceAllocator.cpp109 GrTextureProxy* texProxy = proxy->asTextureProxy(); in user_cache_proxy() local
110 if (texProxy) { in user_cache_proxy()
111 return texProxy->getUserCacheTarget(); in user_cache_proxy()
/third_party/skia/src/image/
DSkImage_Gpu.cpp873 GrTextureProxy* texProxy = this->makeView(dContext).asTextureProxy(); in hintCacheGpuResource() local
874 if (texProxy) { in hintCacheGpuResource()
875 texProxy->setUserCacheTarget(true); in hintCacheGpuResource()
/third_party/flutter/skia/src/gpu/gl/
DGrGLCaps.cpp3073 if (const auto* texProxy = src->asTextureProxy()) { in getDstCopyRestrictions() local
3074 if (texProxy->textureType() == GrTextureType::kExternal) { in getDstCopyRestrictions()
/third_party/skia/src/gpu/gl/
DGrGLCaps.cpp3500 if (const auto* texProxy = src->asTextureProxy()) { in getDstCopyRestrictions() local
3501 if (texProxy->textureType() == GrTextureType::kExternal) { in getDstCopyRestrictions()