Home
last modified time | relevance | path

Searched refs:asTexture (Results 1 – 25 of 28) sorted by relevance

12

/third_party/skia/src/gpu/
DGrTextureProxy.cpp74 , fMipmapped(fTarget->asTexture()->mipmapped()) in GrTextureProxy()
75 , fMipmapStatus(fTarget->asTexture()->mipmapStatus()) in GrTextureProxy()
81 fProxyProvider = fTarget->asTexture()->getContext()->priv().proxyProvider(); in GrTextureProxy()
133 SkASSERT(surface->asTexture()); in createSurface()
223 SkASSERT(surface->asTexture()); in onValidateSurface()
226 GrMipmapped::kYes == surface->asTexture()->mipmapped()); in onValidateSurface()
228 SkASSERT(surface->asTexture()->textureType() == this->textureType()); in onValidateSurface()
DGrTextureRenderTargetProxy.cpp82 SkASSERT(surf->asTexture()); in GrTextureRenderTargetProxy()
147 SkASSERT(surface->asTexture()); in createSurface()
178 SkASSERT(surface->asTexture()); in onValidateSurface()
180 GrMipmapped::kYes == surface->asTexture()->mipmapped()); in onValidateSurface()
186 SkASSERT(surface->asTexture()->textureType() == this->textureType()); in onValidateSurface()
DGrSurface.h60 virtual GrTexture* asTexture() { return nullptr; } in asTexture() function
61 virtual const GrTexture* asTexture() const { return nullptr; } in asTexture() function
95 SkASSERT(!this->asTexture()); in setGLRTFBOIDIs0()
DGrTexture.h21 GrTexture* asTexture() override { return this; } in asTexture() function
22 const GrTexture* asTexture() const override { return this; } in asTexture() function
DGrBackendTextureImageGenerator.cpp187 SkASSERT(surf->asTexture()); in onGenerateTexture()
188 tex = sk_ref_sp(surf->asTexture()); in onGenerateTexture()
DGrSurfaceProxy.cpp454 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
459 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
DGrRenderTargetProxy.cpp126 SkASSERT(!surface->asTexture()); in createSurface()
DGrProxyProvider.cpp254 sk_sp<GrTexture> texture(static_cast<GrSurface*>(resource)->asTexture()); in findOrCreateProxyByUniqueKey()
675 SkASSERT(!rt->asTexture()); // A GrRenderTarget that's not textureable in wrapBackendRenderTarget()
703 SkASSERT(!rt->asTexture()); // A GrRenderTarget that's not textureable in wrapVulkanSecondaryCBAsRenderTarget()
DGrSurfaceProxy.h253 GrTexture* peekTexture() const { return fTarget ? fTarget->asTexture() : nullptr; } in peekTexture()
DGrGpu.cpp618 GrTexture* texture = surface->asTexture(); in didWriteToSurface()
/third_party/skia/tests/
DGrSurfaceTest.cpp43 REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
45 texRT1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
47 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
49 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
55 REPORTER_ASSERT(reporter, tex1.get() == tex1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
56 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1.get()) == tex1->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
66 REPORTER_ASSERT(reporter, texRT2.get() == texRT2->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
68 texRT2->asTexture()); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
70 static_cast<GrSurface*>(texRT2->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
72 static_cast<GrSurface*>(texRT2->asTexture())); in DEF_GPUTEST_FOR_MOCK_CONTEXT()
/third_party/skia/src/gpu/gl/
DGrGLRenderTarget.cpp157 if (resourceProvider->caps()->msaaResolvesAutomatically() && this->asTexture()) { in ensureDynamicMSAAAttachment()
191 auto* glTex = static_cast<GrGLTexture*>(this->asTexture()); in bindInternal()
337 if (this->asTexture()) { in dumpMemoryStatistics()
DGrGLGpu.cpp831 auto glTex = static_cast<GrGLTexture*>(surface->asTexture()); in onWritePixels()
2876 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture()); in can_blit_framebuffer_for_copy_surface()
2877 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(src->asTexture()); in can_blit_framebuffer_for_copy_surface()
2910 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture()); in can_copy_texsubimage()
2911 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(src->asTexture()); in can_copy_texsubimage()
2940 SkASSERT(surface->asTexture()); in bindSurfaceFBOForPixelOps()
2941 GrGLTexture* texture = static_cast<GrGLTexture*>(surface->asTexture()); in bindSurfaceFBOForPixelOps()
2966 SkASSERT(surface->asTexture()); in unbindSurfaceFBOForPixelOps()
2967 GrGLenum textureTarget = static_cast<GrGLTexture*>(surface->asTexture())->target(); in unbindSurfaceFBOForPixelOps()
3028 if (preferCopy && this->glCaps().canCopyAsDraw(dstFormat, SkToBool(src->asTexture()))) { in onCopySurface()
[all …]
/third_party/skia/src/gpu/dawn/
DGrDawnCaps.cpp90 return surface->asTexture() ? SurfaceReadPixelsSupport::kSupported in surfaceSupportsReadPixels()
96 return surface->asTexture() != nullptr; in onSurfaceSupportsWritePixels()
DGrDawnOpsRenderPass.cpp57 if (GrTexture* tex = fRenderTarget->asTexture()) { in beginRenderPass()
DGrDawnGpu.cpp188 GrDawnTexture* texture = static_cast<GrDawnTexture*>(surface->asTexture()); in onWritePixels()
578 if (auto t = static_cast<GrDawnTexture*>(src->asTexture())) { in get_dawn_texture_from_surface()
/third_party/skia/src/gpu/mock/
DGrMockTexture.h184 GrTexture* asTexture() override { return this; } in asTexture() function
186 const GrTexture* asTexture() const override { return this; } in asTexture() function
DGrMockOpsRenderPass.h60 if (auto* tex = fRenderTarget->asTexture()) { in markRenderTargetDirty()
/third_party/skia/src/gpu/d3d/
DGrD3DGpu.cpp438 SkASSERT(dst->asTexture()); in onCopySurface()
439 dstTexResource = static_cast<GrD3DTexture*>(dst->asTexture()); in onCopySurface()
446 SkASSERT(src->asTexture()); in onCopySurface()
447 srcTexResource = static_cast<GrD3DTexture*>(src->asTexture()); in onCopySurface()
541 SkASSERT(dst->asTexture()); in resolveTexture()
542 dstTextureResource = static_cast<GrD3DTexture*>(dst->asTexture()); in resolveTexture()
577 texResource = static_cast<GrD3DTexture*>(surface->asTexture()); in onReadPixels()
660 GrD3DTexture* d3dTex = static_cast<GrD3DTexture*>(surface->asTexture()); in onWritePixels()
875 texResource = static_cast<GrD3DTexture*>(surface->asTexture()); in onTransferPixelsFrom()
DGrD3DCaps.cpp916 if (auto tex = static_cast<const GrD3DTexture*>(surface->asTexture())) { in surfaceSupportsReadPixels()
933 return rt->numSamples() <= 1 && SkToBool(surface->asTexture()); in onSurfaceSupportsWritePixels()
/third_party/skia/src/gpu/vk/
DGrVkGpu.cpp485 GrVkTexture* texture = static_cast<GrVkTexture*>(surface->asTexture()); in onWritePixels()
644 SkASSERT(surface->asTexture()); in onTransferPixelsFrom()
645 srcImage = static_cast<GrVkTexture*>(surface->asTexture())->textureImage(); in onTransferPixelsFrom()
702 GrTexture* dstTex = dst->asTexture(); in resolveImage()
2323 } else if (dst->asTexture()) { in onCopySurface()
2324 dstImage = static_cast<GrVkTexture*>(dst->asTexture())->textureImage(); in onCopySurface()
2340 } else if (src->asTexture()) { in onCopySurface()
2341 SkASSERT(src->asTexture()); in onCopySurface()
2342 srcImage = static_cast<GrVkTexture*>(src->asTexture())->textureImage(); in onCopySurface()
2409 image = static_cast<GrVkTexture*>(surface->asTexture())->textureImage(); in onReadPixels()
DGrVkCaps.cpp1593 if (auto tex = static_cast<const GrVkTexture*>(surface->asTexture())) { in surfaceSupportsReadPixels()
1628 return rt->numSamples() <= 1 && SkToBool(surface->asTexture()); in onSurfaceSupportsWritePixels()
1631 if (auto tex = static_cast<const GrVkTexture*>(surface->asTexture())) { in onSurfaceSupportsWritePixels()
/third_party/skia/src/gpu/mtl/
DGrMtlGpu.mm1203 SkASSERT(dst->asTexture());
1204 dstAttachment = static_cast<GrMtlTexture*>(dst->asTexture())->attachment();
1262 } else if (dst->asTexture()) {
1263 dstAttachment = static_cast<GrMtlTexture*>(dst->asTexture())->attachment();
1279 } else if (src->asTexture()) {
1280 SkASSERT(src->asTexture());
1281 srcAttachment = static_cast<GrMtlTexture*>(src->asTexture())->attachment();
1322 GrMtlTexture* mtlTexture = static_cast<GrMtlTexture*>(surface->asTexture());
1499 } else if (GrMtlTexture* texture = static_cast<GrMtlTexture*>(surface->asTexture())) {
DGrMtlUtil.mm257 texture = static_cast<GrMtlTexture*>(surface->asTexture());
/third_party/skia/src/image/
DSkSurface_Gpu.cpp88 GrTexture* texture = rt->asTexture(); in onGetBackendTexture()

12