Home
last modified time | relevance | path

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

123

/external/skqp/src/gpu/
DGrTextureRenderTargetProxy.cpp61 SkASSERT(surf->asTexture()); in GrTextureRenderTargetProxy()
95 SkASSERT(fTarget->asTexture()); in instantiate()
111 SkASSERT(surface->asTexture()); in createSurface()
119 SkASSERT(surface->asTexture()); in onValidateSurface()
121 GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in onValidateSurface()
127 SkASSERT(surface->asTexture()->texturePriv().textureType() == this->textureType()); in onValidateSurface()
DGrTextureProxy.cpp54 , fMipMapped(fTarget->asTexture()->texturePriv().mipMapped()) in GrTextureProxy()
58 fProxyProvider = fTarget->asTexture()->getContext()->contextPriv().proxyProvider(); in GrTextureProxy()
90 SkASSERT(fTarget->asTexture()); in instantiate()
104 SkASSERT(surface->asTexture()); in createSurface()
174 SkASSERT(surface->asTexture()); in onValidateSurface()
176 GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in onValidateSurface()
178 SkASSERT(surface->asTexture()->texturePriv().textureType() == this->textureType()); in onValidateSurface()
DGrSurface.cpp144 const GrTexture* thisTex = this->asTexture(); in hasPendingRead()
156 const GrTexture* thisTex = this->asTexture(); in hasPendingWrite()
168 const GrTexture* thisTex = this->asTexture(); in hasPendingIO()
DGrRenderTargetProxy.cpp75 SkASSERT(!fTarget->asTexture()); in instantiate()
88 SkASSERT(!surface->asTexture()); in createSurface()
DGrSurfaceProxy.cpp173 SkASSERT(surface->asTexture()); in createSurfaceImpl()
174 SkASSERT(GrMipMapped::kYes == surface->asTexture()->texturePriv().mipMapped()); in createSurfaceImpl()
470 if (!surface->asTexture()->getUniqueKey().isValid()) { in doLazyInstantiation()
475 SkASSERT(surface->asTexture()->getUniqueKey() == key); in doLazyInstantiation()
DGrPathRendering.cpp61 if (GrXferBarrierType barrierType = pipeline.xferBarrierType(renderTarget->asTexture(), in drawPath()
DGrProxyProvider.cpp170 sk_sp<GrTexture> texture(static_cast<GrSurface*>(resource)->asTexture()); in findOrCreateProxyByUniqueKey()
533 SkASSERT(!rt->asTexture()); // A GrRenderTarget that's not textureable in wrapBackendRenderTarget()
557 SkASSERT(!rt->asTexture()); // A GrRenderTarget that's not textureable in wrapBackendTextureAsRenderTarget()
582 SkASSERT(!rt->asTexture()); // A GrRenderTarget that's not textureable in wrapVulkanSecondaryCBAsRenderTarget()
/external/skia/src/gpu/
DGrTextureProxy.cpp73 , fMipmapped(fTarget->asTexture()->mipmapped()) in GrTextureProxy()
74 , fMipmapStatus(fTarget->asTexture()->mipmapStatus()) in GrTextureProxy()
80 fProxyProvider = fTarget->asTexture()->getContext()->priv().proxyProvider(); in GrTextureProxy()
126 SkASSERT(surface->asTexture()); in createSurface()
215 SkASSERT(surface->asTexture()); in onValidateSurface()
218 GrMipmapped::kYes == surface->asTexture()->mipmapped()); in onValidateSurface()
220 SkASSERT(surface->asTexture()->textureType() == this->textureType()); in onValidateSurface()
DGrTextureRenderTargetProxy.cpp82 SkASSERT(surf->asTexture()); in GrTextureRenderTargetProxy()
147 SkASSERT(surface->asTexture()); in createSurface()
177 SkASSERT(surface->asTexture()); in onValidateSurface()
179 GrMipmapped::kYes == surface->asTexture()->mipmapped()); in onValidateSurface()
185 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.cpp188 SkASSERT(surf->asTexture()); in onGenerateTexture()
189 tex = sk_ref_sp(surf->asTexture()); in onGenerateTexture()
DGrRenderTargetProxy.cpp126 SkASSERT(!surface->asTexture()); in createSurface()
/external/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()
/external/skqp/include/gpu/
DGrTexture.h24 GrTexture* asTexture() override { return this; } in asTexture() function
25 const GrTexture* asTexture() const override { return this; } in asTexture() function
DGrSurface.h51 virtual GrTexture* asTexture() { return nullptr; } in asTexture() function
52 virtual const GrTexture* asTexture() const { return nullptr; } in asTexture() function
/external/skqp/tests/
DGrSurfaceTest.cpp39 REPORTER_ASSERT(reporter, texRT1.get() == texRT1->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
41 texRT1->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
43 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
45 static_cast<GrSurface*>(texRT1->asTexture())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
50 REPORTER_ASSERT(reporter, tex1.get() == tex1->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
51 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1.get()) == tex1->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
60 REPORTER_ASSERT(reporter, texRT2.get() == texRT2->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
62 texRT2->asTexture()); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
64 static_cast<GrSurface*>(texRT2->asTexture())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
66 static_cast<GrSurface*>(texRT2->asTexture())); in DEF_GPUTEST_FOR_NULLGL_CONTEXT()
/external/skia/src/gpu/dawn/
DGrDawnCaps.cpp90 return surface->asTexture() ? SurfaceReadPixelsSupport::kSupported in surfaceSupportsReadPixels()
96 return surface->asTexture() != nullptr; in onSurfaceSupportsWritePixels()
/external/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()
/external/skqp/src/gpu/mock/
DGrMockTexture.h178 GrTexture* asTexture() override { return this; } in asTexture() function
180 const GrTexture* asTexture() const override { return this; } in asTexture() function
/external/skia/src/gpu/gl/
DGrGLRenderTarget.cpp201 if (GrGLTexture* glTex = static_cast<GrGLTexture*>(this->asTexture())) { in ensureDynamicMSAAAttachment()
276 if (this->asTexture()) { in dumpMemoryStatistics()
/external/skia/src/gpu/d3d/
DGrD3DGpu.cpp437 SkASSERT(dst->asTexture()); in onCopySurface()
438 dstTexResource = static_cast<GrD3DTexture*>(dst->asTexture()); in onCopySurface()
445 SkASSERT(src->asTexture()); in onCopySurface()
446 srcTexResource = static_cast<GrD3DTexture*>(src->asTexture()); in onCopySurface()
540 SkASSERT(dst->asTexture()); in resolveTexture()
541 dstTextureResource = static_cast<GrD3DTexture*>(dst->asTexture()); in resolveTexture()
574 texResource = static_cast<GrD3DTexture*>(surface->asTexture()); in onReadPixels()
639 GrD3DTexture* d3dTex = static_cast<GrD3DTexture*>(surface->asTexture()); in onWritePixels()
/external/skqp/src/gpu/mtl/
DGrMtlGpu.mm655 src->config(), SkToBool(src->asTexture())));
657 SkToBool(src->asTexture())));
684 SkToBool(src->asTexture())));
728 src->config(), SkToBool(src->asTexture()))) {
736 SkToBool(src->asTexture()))) {
751 GrMtlTexture* mtlTexture = static_cast<GrMtlTexture*>(surface->asTexture());
/external/skqp/src/gpu/vk/
DGrVkGpu.cpp386 GrVkTexture* vkTex = static_cast<GrVkTexture*>(surface->asTexture()); in onWritePixels()
500 SkASSERT(dst->asTexture()); in resolveImage()
501 dstImage = static_cast<GrVkTexture*>(dst->asTexture()); in resolveImage()
1993 srcConfig, SkToBool(src->asTexture()))) { in onCopySurface()
2011 SkASSERT(dst->asTexture()); in onCopySurface()
2012 dstImage = static_cast<GrVkTexture*>(dst->asTexture()); in onCopySurface()
2019 SkASSERT(src->asTexture()); in onCopySurface()
2020 srcImage = static_cast<GrVkTexture*>(src->asTexture()); in onCopySurface()
2069 image = static_cast<GrVkTexture*>(surface->asTexture()); in onReadPixels()
2122 surface->config(), SkToBool(surface->asTexture()))) { in onReadPixels()

123