Home
last modified time | relevance | path

Searched refs:asRenderTarget (Results 1 – 25 of 45) sorted by relevance

12

/external/skia/tests/
DGrSurfaceTest.cpp31 REPORTER_ASSERT(reporter, texRT1 == texRT1->asRenderTarget()); in DEF_GPUTEST_FOR_NULL_CONTEXT()
33 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_NULL_CONTEXT()
35 REPORTER_ASSERT(reporter, texRT1->asRenderTarget() == in DEF_GPUTEST_FOR_NULL_CONTEXT()
37 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT1->asRenderTarget()) == in DEF_GPUTEST_FOR_NULL_CONTEXT()
42 REPORTER_ASSERT(reporter, nullptr == tex1->asRenderTarget()); in DEF_GPUTEST_FOR_NULL_CONTEXT()
58 REPORTER_ASSERT(reporter, texRT2 == texRT2->asRenderTarget()); in DEF_GPUTEST_FOR_NULL_CONTEXT()
60 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == in DEF_GPUTEST_FOR_NULL_CONTEXT()
62 REPORTER_ASSERT(reporter, texRT2->asRenderTarget() == in DEF_GPUTEST_FOR_NULL_CONTEXT()
64 REPORTER_ASSERT(reporter, static_cast<GrSurface*>(texRT2->asRenderTarget()) == in DEF_GPUTEST_FOR_NULL_CONTEXT()
DVkClearTests.cpp63 SkASSERT(tex->asRenderTarget()); in basic_clear_test()
66 gpu->clear(rect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget()); in basic_clear_test()
76 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in basic_clear_test()
88 gpu->clear(rect, myColor, tex->asRenderTarget()); in basic_clear_test()
118 SkASSERT(tex->asRenderTarget()); in sub_clear_test()
121 gpu->clear(fullRect, GrColor_TRANSPARENT_BLACK, tex->asRenderTarget()); in sub_clear_test()
132 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in sub_clear_test()
134 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in sub_clear_test()
136 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in sub_clear_test()
147 gpu->clear(rect, GrColor_WHITE, tex->asRenderTarget()); in sub_clear_test()
[all …]
DResourceCacheTest.cpp95 if (smallRT0 && smallRT0->asRenderTarget()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
96 resourceProvider->attachStencilAttachment(smallRT0->asRenderTarget()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
100 if (smallRT1 && smallRT1->asRenderTarget()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
101 resourceProvider->attachStencilAttachment(smallRT1->asRenderTarget()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
106 smallRT0->asRenderTarget() && smallRT1->asRenderTarget() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
107 resourceProvider->attachStencilAttachment(smallRT0->asRenderTarget()) == in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
108 resourceProvider->attachStencilAttachment(smallRT1->asRenderTarget())); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
112 if (smallRT2 && smallRT2->asRenderTarget()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
113 resourceProvider->attachStencilAttachment(smallRT2->asRenderTarget()); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
117 smallRT0->asRenderTarget() && smallRT2->asRenderTarget() && in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
[all …]
DReadWriteAlphaTest.cpp89 if (texture->asRenderTarget()) { in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
92 texture->asRenderTarget(), &props, SkGpuDevice::kUninit_InitContents)); in DEF_GPUTEST_FOR_RENDERING_CONTEXTS()
DGrTextureMipMapInvalidationTest.cpp44 SkSurface* surface = SkSurface::NewRenderTargetDirect(texRT2->asRenderTarget()); in DEF_GPUTEST_FOR_NULL_CONTEXT()
DRectangleTextureTest.cpp91 if (rectangleTexture->asRenderTarget()) { in test_clear()
92 SkAutoTUnref<GrDrawContext> dc(context->drawContext(rectangleTexture->asRenderTarget())); in test_clear()
DGLProgramsTest.cpp178 return texture ? texture->asRenderTarget() : nullptr; in random_render_target()
376 context->textureProvider()->createTexture(rtDesc, SkBudgeted::kNo)->asRenderTarget()); in ProgramUnitTest()
/external/skia/src/gpu/
DGrTextureToYUVPlanes.cpp120 SkAutoTUnref<GrDrawContext> dc(context->drawContext(yuvTex->asRenderTarget())); in GrTextureToYUVPlanes()
131 SkAutoTUnref<GrDrawContext> dc(context->drawContext(yTex->asRenderTarget())); in GrTextureToYUVPlanes()
140 dc.reset(context->drawContext(uvTex->asRenderTarget())); in GrTextureToYUVPlanes()
150 dc.reset(context->drawContext(uTex->asRenderTarget())); in GrTextureToYUVPlanes()
158 dc.reset(context->drawContext(vTex->asRenderTarget())); in GrTextureToYUVPlanes()
DGrSurface.cpp173 const GrRenderTarget* thisRT = this->asRenderTarget(); in hasPendingRead()
185 const GrRenderTarget* thisRT = this->asRenderTarget(); in hasPendingWrite()
197 const GrRenderTarget* thisRT = this->asRenderTarget(); in hasPendingIO()
DGrTexture.cpp55 if (this->asRenderTarget()) { in validateDesc()
58 SkASSERT(fDesc.fSampleCnt == this->asRenderTarget()->numColorSamples()); in validateDesc()
DGrContext.cpp315 GrRenderTarget* renderTarget = surface->asRenderTarget(); in writeSurfacePixels()
456 SkAutoTUnref<GrDrawContext> drawContext(this->drawContext(temp->asRenderTarget())); in readSurfacePixels()
508 GrRenderTarget* rt = surface->asRenderTarget(); in prepareSurfaceForExternalIO()
526 if (!dst->asRenderTarget()) { in copySurface()
541 SkAutoTUnref<GrDrawContext> drawContext(this->drawContext(dst->asRenderTarget())); in copySurface()
DGrGpu.cpp179 GrRenderTarget* tgt = tex->asRenderTarget(); in wrapBackendTexture()
304 if (SkToBool(dstSurface->asRenderTarget())) { in getWritePixelsInfo()
319 if (!dstSurface->asRenderTarget() || in getWritePixelsInfo()
DGrDrawTarget.cpp86 if (dependedOn->asRenderTarget() && dependedOn->asRenderTarget()->getLastDrawTarget()) { in addDependency()
90 GrDrawTarget* dt = dependedOn->asRenderTarget()->getLastDrawTarget(); in addDependency()
DGrClipMaskManager.cpp132 texture->asRenderTarget(), in GetPathRenderer()
508 GrRenderTarget* rt = target->asRenderTarget(); in drawElement()
643 texture->asRenderTarget()); in createAlphaClipMask()
672 pipelineBuilder.setRenderTarget(texture->asRenderTarget()); in createAlphaClipMask()
695 backgroundPipelineBuilder.setRenderTarget(texture->asRenderTarget()); in createAlphaClipMask()
DGrLayerHoister.cpp235 atlased[0].fLayer->texture()->asRenderTarget(), &props)); in DrawLayersToAtlas()
335 layer->texture()->asRenderTarget(), &props)); in DrawLayers()
DGrTest.cpp82 SkASSERT(nullptr != texture->asRenderTarget()); in getTestTarget()
83 rt = texture->asRenderTarget(); in getTestTarget()
DGrYUVProvider.cpp121 GrRenderTarget* renderTarget = result->asRenderTarget(); in refAsTexture()
DGrTextureProvider.cpp111 GrRenderTarget* rt = surface->asRenderTarget(); in refScratchTexture()
/external/skia/src/effects/
DSkGpuBlurUtils.cpp256 context->drawContext(dstTexture->asRenderTarget())); in GaussianBlur()
278 context->drawContext(dstTexture->asRenderTarget())); in GaussianBlur()
298 srcDrawContext.reset(context->drawContext(srcTexture->asRenderTarget())); in GaussianBlur()
312 context->drawContext(dstTexture->asRenderTarget())); in GaussianBlur()
331 srcDrawContext.reset(context->drawContext(srcTexture->asRenderTarget())); in GaussianBlur()
345 context->drawContext(dstTexture->asRenderTarget())); in GaussianBlur()
385 context->drawContext(dstTexture->asRenderTarget())); in GaussianBlur()
/external/skia/src/core/
DSkSpecialSurface.cpp127 SkASSERT(fTexture->asRenderTarget()); in SkSpecialSurface_Gpu()
129 SkAutoTUnref<SkGpuDevice> device(SkGpuDevice::Create(fTexture->asRenderTarget(), props, in SkSpecialSurface_Gpu()
155 if (!texture->asRenderTarget()) { in NewFromTexture()
/external/skia/include/gpu/
DGrRenderTarget.h28 GrRenderTarget* asRenderTarget() override { return this; } in asRenderTarget() function
29 const GrRenderTarget* asRenderTarget() const override { return this; } in asRenderTarget() function
DGrSurface.h66 virtual GrRenderTarget* asRenderTarget() { return NULL; } in asRenderTarget() function
67 virtual const GrRenderTarget* asRenderTarget() const { return NULL; } in asRenderTarget() function
DGrGpuResourceRef.h140 return surface->asRenderTarget(); in get()
/external/skia/src/gpu/batches/
DGrCopySurfaceBatch.h36 GrRenderTarget* rt = fDst.get()->asRenderTarget(); in renderTargetUniqueID()
39 GrRenderTarget* renderTarget() const override { return fDst.get()->asRenderTarget(); } in renderTarget()
/external/skia/src/gpu/effects/
DGrConfigConversionEffect.cpp228 context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions()
246 context->drawContext(tempTex->asRenderTarget())); in TestForPreservingPMConversions()
260 readDrawContext.reset(context->drawContext(readTex->asRenderTarget())); in TestForPreservingPMConversions()

12