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

/external/skia/tests/
H A DGrSurfaceTest.cpp20 // Tests that GrSurface::asTexture(), GrSurface::asRenderTarget(), and static upcasting of texture
34 REPORTER_ASSERT(reporter, texRT1 == texRT1->asTexture());
36 texRT1->asTexture());
38 static_cast<GrSurface*>(texRT1->asTexture()));
40 static_cast<GrSurface*>(texRT1->asTexture()));
45 REPORTER_ASSERT(reporter, tex1 == tex1->asTexture());
46 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(tex1) == tex1->asTexture());
61 REPORTER_ASSERT(reporter, texRT2.get() == texRT2->asTexture());
63 texRT2->asTexture());
65 static_cast<GrSurface*>(texRT2->asTexture()));
[all...]
H A DSRGBMipMapTest.cpp145 read_and_check_pixels(reporter, s32RenderTargetContext->asTexture().get(), expectedSRGB, error,
164 read_and_check_pixels(reporter, l32RenderTargetContext->asTexture().get(), expectedLinear,
171 read_and_check_pixels(reporter, s32RenderTargetContext->asTexture().get(), expectedSRGB, error,
H A DProxyConversionTest.cpp31 SkASSERT(!defaultFBO->asTexture());
/external/skia/src/gpu/
H A DGrTextureProxy.cpp29 return fTarget->asTexture();
33 SkASSERT(fTarget || fTarget->asTexture());
36 fTarget->asTexture()->texturePriv().setMipColorMode(colorMode);
H A DGrTextureRenderTargetProxy.cpp29 , GrTextureProxy(sk_ref_sp(surf->asTexture()))
31 SkASSERT(surf->asTexture());
H A DGrSurfaceProxyPriv.h21 return fProxy->fTarget ? fProxy->fTarget->asTexture() : nullptr;
H A DGrSurface.cpp173 const GrTexture* thisTex = this->asTexture();
185 const GrTexture* thisTex = this->asTexture();
197 const GrTexture* thisTex = this->asTexture();
H A DGrSurfaceProxy.cpp55 fTarget->asTexture()->texturePriv().setMipColorMode(fMipColorMode);
124 if (surf->asTexture()) {
H A DGrRenderTargetContext.h381 sk_sp<GrTexture> asTexture() { function in class:GrRenderTargetContext
389 return sk_ref_sp(this->accessRenderTarget()->asTexture());
H A DGrResourceProvider.cpp172 return surface->asTexture();
217 GrTexture* texture = static_cast<GrSurface*>(resource)->asTexture();
H A DGrGpu.cpp313 if (!srcSurface->asTexture() ||
481 GrTexture* texture = surface->asTexture();
H A DGrContext.cpp479 fp = this->createPMToUPMEffect(src->asTexture(), textureMatrix);
490 fp = GrSimpleTextureEffect::Make(src->asTexture(), nullptr, textureMatrix);
501 surfaceToRead.reset(tempRTC->asTexture().release());
H A DGrRenderTargetContext.cpp1762 if (GrTexture* rtTex = rt->asTexture()) {
/external/skia/include/gpu/
H A DGrTexture.h22 GrTexture* asTexture() override { return this; }
23 const GrTexture* asTexture() const override { return this; }
H A DGrSurface.h60 virtual GrTexture* asTexture() { return NULL; } function in class:GrSurface
61 virtual const GrTexture* asTexture() const { return NULL; } function in class:GrSurface
H A DGrGpuResourceRef.h123 return surface->asTexture();
/external/skia/src/core/
H A DSkSpecialSurface.cpp139 if (!fRenderTargetContext->asTexture()) {
/external/skia/src/image/
H A DSkSurface_Gpu.cpp56 GrTexture* texture = rt->asTexture();
154 if (rt->asTexture()->getTextureHandle() == image->getTextureHandle(false)) {
H A DSkImage_Gpu.cpp149 if (surface && surface->asTexture()) {
156 return surface->asTexture()->getTextureHandle();
/external/skia/src/gpu/gl/
H A DGrGLGpu.cpp659 if (!dstSurface->asTexture()) {
662 GrGLTexture* texture = static_cast<GrGLTexture*>(dstSurface->asTexture());
742 GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture());
769 GrGLTexture* glTex = static_cast<GrGLTexture*>(surface->asTexture());
3327 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture());
3328 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(dst->asTexture());
3399 const GrGLTexture* dstTex = static_cast<const GrGLTexture*>(dst->asTexture());
3406 const GrGLTexture* srcTex = static_cast<const GrGLTexture*>(src->asTexture());
3426 SkASSERT(surface->asTexture());
3427 GrGLuint texID = static_cast<GrGLTexture*>(surface->asTexture())
[all...]
H A DGrGLCaps.cpp2074 if (src->asTexture() && this->isConfigRenderable(src->config(), false)) {
2081 const GrGLTexture* srcTexture = static_cast<const GrGLTexture*>(src->asTexture());
/external/skia/src/gpu/vk/
H A DGrVkGpu.cpp321 GrVkTexture* vkTex = static_cast<GrVkTexture*>(surface->asTexture());
1574 SkASSERT(dst->asTexture());
1575 dstImage = static_cast<GrVkTexture*>(dst->asTexture());
1582 SkASSERT(src->asTexture());
1583 srcImage = static_cast<GrVkTexture*>(src->asTexture());
1668 image = static_cast<GrVkTexture*>(surface->asTexture());
H A DGrVkCaps.cpp62 if (src->numColorSamples() > 1 || (src->asTexture() && this->supportsCopiesAsDraws())) {
H A DGrVkCopyManager.cpp155 GrVkTexture* srcTex = static_cast<GrVkTexture*>(src->asTexture());
/external/skia/src/gpu/effects/
H A DGrConfigConversionEffect.cpp223 if (!readRTC->asTexture()) {

Completed in 2530 milliseconds