Home
last modified time | relevance | path

Searched refs:renderTargetContext (Results 1 – 25 of 91) sorted by relevance

1234

/external/skqp/src/gpu/
DGrOnFlushResourceProvider.cpp35 sk_sp<GrRenderTargetContext> renderTargetContext( in makeRenderTargetContext() local
40 if (!renderTargetContext) { in makeRenderTargetContext()
47 if (!renderTargetContext->asSurfaceProxy()->instantiate(resourceProvider)) { in makeRenderTargetContext()
51 renderTargetContext->discard(); in makeRenderTargetContext()
53 return renderTargetContext; in makeRenderTargetContext()
62 sk_sp<GrRenderTargetContext> renderTargetContext( in makeRenderTargetContext() local
67 if (!renderTargetContext) { in makeRenderTargetContext()
76 if (!renderTargetContext->asSurfaceProxy()->instantiate(resourceProvider)) { in makeRenderTargetContext()
80 renderTargetContext->discard(); in makeRenderTargetContext()
82 return renderTargetContext; in makeRenderTargetContext()
DGrClipStackClip.cpp91 const GrRenderTargetContext* renderTargetContext, in PathNeedsSWRenderer() argument
125 renderTargetContext->fsaaType(), in PathNeedsSWRenderer()
147 const GrRenderTargetContext* renderTargetContext, in UseSWOnlyPath() argument
171 renderTargetContext, translate, element, nullptr, needsStencil)) { in UseSWOnlyPath()
181 bool GrClipStackClip::apply(GrContext* context, GrRenderTargetContext* renderTargetContext, in apply() argument
184 SkRect devBounds = SkRect::MakeIWH(renderTargetContext->width(), renderTargetContext->height()); in apply()
195 int maxWindowRectangles = renderTargetContext->priv().maxWindowRectangles(); in apply()
197 if (GrFSAAType::kNone != renderTargetContext->fsaaType()) { in apply()
201 if (renderTargetContext->numColorSamples() > 0 || useHWAA || hasUserStencilSettings) { in apply()
224 if (!this->applyClipMask(context, renderTargetContext, reducedClip, hasUserStencilSettings, in apply()
[all …]
DGrBlurUtils.cpp31 static bool draw_mask(GrRenderTargetContext* renderTargetContext, in draw_mask() argument
47 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in draw_mask()
53 GrRenderTargetContext* renderTargetContext, in sw_draw_with_mask_filter() argument
100 return draw_mask(renderTargetContext, clipData, viewMatrix, in sw_draw_with_mask_filter()
142 GrRenderTargetContext* renderTargetContext, in draw_path_with_mask_filter() argument
154 clip.getConservativeBounds(renderTargetContext->width(), in draw_path_with_mask_filter()
155 renderTargetContext->height(), in draw_path_with_mask_filter()
208 renderTargetContext, in draw_path_with_mask_filter()
224 renderTargetContext->numColorSamples())); in draw_path_with_mask_filter()
231 if (draw_mask(renderTargetContext, clip, viewMatrix, in draw_path_with_mask_filter()
[all …]
DGrSoftwarePathRenderer.cpp90 void GrSoftwarePathRenderer::DrawNonAARect(GrRenderTargetContext* renderTargetContext, in DrawNonAARect() argument
97 renderTargetContext->addDrawOp(clip, in DrawNonAARect()
103 void GrSoftwarePathRenderer::DrawAroundInvPath(GrRenderTargetContext* renderTargetContext, in DrawAroundInvPath() argument
119 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
125 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
131 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
137 DrawNonAARect(renderTargetContext, std::move(paint), userStencilSettings, clip, in DrawAroundInvPath()
144 GrRenderTargetContext* renderTargetContext, in DrawToTargetWithShapeMask() argument
166 DrawNonAARect(renderTargetContext, std::move(paint), userStencilSettings, clip, SkMatrix::I(), in DrawToTargetWithShapeMask()
DGrSoftwarePathRenderer.h27 static void DrawNonAARect(GrRenderTargetContext* renderTargetContext,
34 static void DrawAroundInvPath(GrRenderTargetContext* renderTargetContext,
46 GrRenderTargetContext* renderTargetContext,
/external/skia/src/gpu/
DGrClipStackClip.cpp91 const GrRenderTargetContext* renderTargetContext, in PathNeedsSWRenderer() argument
125 renderTargetContext->fsaaType(), in PathNeedsSWRenderer()
147 const GrRenderTargetContext* renderTargetContext, in UseSWOnlyPath() argument
171 renderTargetContext, translate, element, nullptr, needsStencil)) { in UseSWOnlyPath()
181 bool GrClipStackClip::apply(GrContext* context, GrRenderTargetContext* renderTargetContext, in apply() argument
184 SkRect devBounds = SkRect::MakeIWH(renderTargetContext->width(), renderTargetContext->height()); in apply()
195 int maxWindowRectangles = renderTargetContext->priv().maxWindowRectangles(); in apply()
197 if (GrFSAAType::kNone != renderTargetContext->fsaaType()) { in apply()
201 if (renderTargetContext->numColorSamples() > 1 || useHWAA || hasUserStencilSettings) { in apply()
224 if (!this->applyClipMask(context, renderTargetContext, reducedClip, hasUserStencilSettings, in apply()
[all …]
DGrOnFlushResourceProvider.cpp35 sk_sp<GrRenderTargetContext> renderTargetContext( in makeRenderTargetContext() local
40 if (!renderTargetContext) { in makeRenderTargetContext()
47 if (!renderTargetContext->asSurfaceProxy()->instantiate(resourceProvider)) { in makeRenderTargetContext()
51 renderTargetContext->discard(); in makeRenderTargetContext()
53 return renderTargetContext; in makeRenderTargetContext()
60 sk_sp<GrRenderTargetContext> renderTargetContext( in makeRenderTargetContext() local
65 if (!renderTargetContext) { in makeRenderTargetContext()
74 if (!renderTargetContext->asSurfaceProxy()->instantiate(resourceProvider)) { in makeRenderTargetContext()
78 renderTargetContext->discard(); in makeRenderTargetContext()
80 return renderTargetContext; in makeRenderTargetContext()
DGrBlurUtils.cpp31 static bool draw_mask(GrRenderTargetContext* renderTargetContext, in draw_mask() argument
47 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in draw_mask()
53 GrRenderTargetContext* renderTargetContext, in sw_draw_with_mask_filter() argument
100 return draw_mask(renderTargetContext, clipData, viewMatrix, in sw_draw_with_mask_filter()
142 GrRenderTargetContext* renderTargetContext, in draw_path_with_mask_filter() argument
154 clip.getConservativeBounds(renderTargetContext->width(), in draw_path_with_mask_filter()
155 renderTargetContext->height(), in draw_path_with_mask_filter()
208 renderTargetContext, in draw_path_with_mask_filter()
224 renderTargetContext->numColorSamples())); in draw_path_with_mask_filter()
231 if (draw_mask(renderTargetContext, clip, viewMatrix, in draw_path_with_mask_filter()
[all …]
DGrSoftwarePathRenderer.cpp90 void GrSoftwarePathRenderer::DrawNonAARect(GrRenderTargetContext* renderTargetContext, in DrawNonAARect() argument
97 renderTargetContext->addDrawOp(clip, in DrawNonAARect()
103 void GrSoftwarePathRenderer::DrawAroundInvPath(GrRenderTargetContext* renderTargetContext, in DrawAroundInvPath() argument
119 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
125 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
131 DrawNonAARect(renderTargetContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath()
137 DrawNonAARect(renderTargetContext, std::move(paint), userStencilSettings, clip, in DrawAroundInvPath()
144 GrRenderTargetContext* renderTargetContext, in DrawToTargetWithShapeMask() argument
166 DrawNonAARect(renderTargetContext, std::move(paint), userStencilSettings, clip, SkMatrix::I(), in DrawToTargetWithShapeMask()
DGrSoftwarePathRenderer.h27 static void DrawNonAARect(GrRenderTargetContext* renderTargetContext,
34 static void DrawAroundInvPath(GrRenderTargetContext* renderTargetContext,
46 GrRenderTargetContext* renderTargetContext,
/external/skqp/tests/
DGLProgramsTest.cpp157 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in random_render_target_context() local
166 return renderTargetContext; in random_render_target_context()
302 sk_sp<GrRenderTargetContext> renderTargetContext(random_render_target_context( in ProgramUnitTest() local
304 if (!renderTargetContext) { in ProgramUnitTest()
310 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies); in ProgramUnitTest()
314 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint)); in ProgramUnitTest()
320 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in ProgramUnitTest() local
326 if (!renderTargetContext) { in ProgramUnitTest()
335 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies); in ProgramUnitTest()
342 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint)); in ProgramUnitTest()
DPrimitiveProcessorTest.cpp118 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
122 if (!renderTargetContext) { in DEF_GPUTEST_FOR_ALL_CONTEXTS()
138 renderTargetContext->discard(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
142 renderTargetContext->priv().testingOnly_addDrawOp(Op::Make(attribCnt)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
149 renderTargetContext->priv().testingOnly_addDrawOp(Op::Make(attribCnt + 1)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
/external/skia/tests/
DGLProgramsTest.cpp158 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in random_render_target_context() local
167 return renderTargetContext; in random_render_target_context()
303 sk_sp<GrRenderTargetContext> renderTargetContext(random_render_target_context( in ProgramUnitTest() local
305 if (!renderTargetContext) { in ProgramUnitTest()
311 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies); in ProgramUnitTest()
315 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint)); in ProgramUnitTest()
321 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in ProgramUnitTest() local
327 if (!renderTargetContext) { in ProgramUnitTest()
336 GrProcessorTestData ptd(&random, context, renderTargetContext.get(), proxies); in ProgramUnitTest()
343 GrDrawRandomOp(&random, renderTargetContext.get(), std::move(paint)); in ProgramUnitTest()
DPrimitiveProcessorTest.cpp118 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in DEF_GPUTEST_FOR_ALL_CONTEXTS() local
122 if (!renderTargetContext) { in DEF_GPUTEST_FOR_ALL_CONTEXTS()
138 renderTargetContext->discard(); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
142 renderTargetContext->priv().testingOnly_addDrawOp(Op::Make(attribCnt)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
149 renderTargetContext->priv().testingOnly_addDrawOp(Op::Make(attribCnt + 1)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
DPathRendererCacheTests.cpp32 GrRenderTargetContext* renderTargetContext, in draw_path() argument
41 SkIRect clipConservativeBounds = SkIRect::MakeWH(renderTargetContext->width(), in draw_path()
42 renderTargetContext->height()); in draw_path()
51 renderTargetContext, in draw_path()
/external/skia/src/core/
DSkGpuBlurUtils.cpp71 static void convolve_gaussian_1d(GrRenderTargetContext* renderTargetContext, in convolve_gaussian_1d() argument
82 paint.setGammaCorrect(renderTargetContext->colorSpaceInfo().isGammaCorrect()); in convolve_gaussian_1d()
90 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in convolve_gaussian_1d()
94 static void convolve_gaussian_2d(GrRenderTargetContext* renderTargetContext, in convolve_gaussian_2d() argument
110 paint.setGammaCorrect(renderTargetContext->colorSpaceInfo().isGammaCorrect()); in convolve_gaussian_2d()
116 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in convolve_gaussian_2d()
120 static void convolve_gaussian(GrRenderTargetContext* renderTargetContext, in convolve_gaussian() argument
133 convolve_gaussian_1d(renderTargetContext, clip, dstRect, srcOffset, in convolve_gaussian()
165 renderTargetContext->clear(&topRect, 0, GrRenderTargetContext::CanClearFullscreen::kNo); in convolve_gaussian()
169 renderTargetContext->clear(&bottomRect, 0, GrRenderTargetContext::CanClearFullscreen::kNo); in convolve_gaussian()
[all …]
DSkSpecialSurface.cpp125 SkSpecialSurface_Gpu(GrContext* context, sk_sp<GrRenderTargetContext> renderTargetContext, in SkSpecialSurface_Gpu() argument
127 : INHERITED(subset, &renderTargetContext->surfaceProps()) in SkSpecialSurface_Gpu()
128 , fRenderTargetContext(std::move(renderTargetContext)) { in SkSpecialSurface_Gpu()
174 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in MakeRenderTarget() local
176 if (!renderTargetContext) { in MakeRenderTarget()
182 return sk_make_sp<SkSpecialSurface_Gpu>(context, std::move(renderTargetContext), in MakeRenderTarget()
/external/skqp/src/core/
DSkGpuBlurUtils.cpp71 static void convolve_gaussian_1d(GrRenderTargetContext* renderTargetContext, in convolve_gaussian_1d() argument
82 paint.setGammaCorrect(renderTargetContext->colorSpaceInfo().isGammaCorrect()); in convolve_gaussian_1d()
90 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in convolve_gaussian_1d()
94 static void convolve_gaussian_2d(GrRenderTargetContext* renderTargetContext, in convolve_gaussian_2d() argument
110 paint.setGammaCorrect(renderTargetContext->colorSpaceInfo().isGammaCorrect()); in convolve_gaussian_2d()
116 renderTargetContext->fillRectWithLocalMatrix(clip, std::move(paint), GrAA::kNo, SkMatrix::I(), in convolve_gaussian_2d()
120 static void convolve_gaussian(GrRenderTargetContext* renderTargetContext, in convolve_gaussian() argument
133 convolve_gaussian_1d(renderTargetContext, clip, dstRect, srcOffset, in convolve_gaussian()
165 renderTargetContext->clear(&topRect, 0, GrRenderTargetContext::CanClearFullscreen::kNo); in convolve_gaussian()
169 renderTargetContext->clear(&bottomRect, 0, GrRenderTargetContext::CanClearFullscreen::kNo); in convolve_gaussian()
[all …]
DSkSpecialSurface.cpp125 SkSpecialSurface_Gpu(GrContext* context, sk_sp<GrRenderTargetContext> renderTargetContext, in SkSpecialSurface_Gpu() argument
127 : INHERITED(subset, &renderTargetContext->surfaceProps()) in SkSpecialSurface_Gpu()
128 , fRenderTargetContext(std::move(renderTargetContext)) { in SkSpecialSurface_Gpu()
174 sk_sp<GrRenderTargetContext> renderTargetContext(context->makeDeferredRenderTargetContext( in MakeRenderTarget() local
176 if (!renderTargetContext) { in MakeRenderTarget()
182 return sk_make_sp<SkSpecialSurface_Gpu>(context, std::move(renderTargetContext), in MakeRenderTarget()
/external/skqp/gm/
Dbeziereffects.cpp126 GrRenderTargetContext* renderTargetContext = in onDraw() local
128 if (!renderTargetContext) { in onDraw()
149 SkScalar w = SkIntToScalar(renderTargetContext->width()) / numCols; in onDraw()
150 SkScalar h = SkIntToScalar(renderTargetContext->height()) / numRows; in onDraw()
224 renderTargetContext->priv().testingOnly_addDrawOp(std::move(op)); in onDraw()
310 GrRenderTargetContext* renderTargetContext = in onDraw() local
312 if (!renderTargetContext) { in onDraw()
333 SkScalar w = SkIntToScalar(renderTargetContext->width()) / numCols; in onDraw()
334 SkScalar h = SkIntToScalar(renderTargetContext->height()) / numRows; in onDraw()
400 renderTargetContext->priv().testingOnly_addDrawOp(std::move(op)); in onDraw()
[all …]
Dbigrrectaaeffect.cpp52 GrRenderTargetContext* renderTargetContext = in onDraw() local
54 if (!renderTargetContext) { in onDraw()
80 const auto& caps = *renderTargetContext->caps()->shaderCaps(); in onDraw()
92 renderTargetContext->priv().testingOnly_addDrawOp( in onDraw()
Dyuvtorgbeffect.cpp74 GrRenderTargetContext* renderTargetContext = in onDraw() local
76 if (!renderTargetContext) { in onDraw()
137 renderTargetContext->priv().testingOnly_addDrawOp( in onDraw()
203 GrRenderTargetContext* renderTargetContext = in onDraw() local
205 if (!renderTargetContext) { in onDraw()
261 renderTargetContext->priv().testingOnly_addDrawOp(std::move(op)); in onDraw()
Dtexdata.cpp68 GrRenderTargetContext* renderTargetContext = variable
70 if (!renderTargetContext) {
123 renderTargetContext->drawRect(clip, GrPaint::Clone(paint), GrAA::kNo, vm,
138 renderTargetContext->drawRect(clip, std::move(paint), GrAA::kNo, vm,
/external/skia/gm/
Dbeziereffects.cpp126 GrRenderTargetContext* renderTargetContext = in onDraw() local
128 if (!renderTargetContext) { in onDraw()
149 SkScalar w = SkIntToScalar(renderTargetContext->width()) / numCols; in onDraw()
150 SkScalar h = SkIntToScalar(renderTargetContext->height()) / numRows; in onDraw()
224 renderTargetContext->priv().testingOnly_addDrawOp(std::move(op)); in onDraw()
310 GrRenderTargetContext* renderTargetContext = in onDraw() local
312 if (!renderTargetContext) { in onDraw()
333 SkScalar w = SkIntToScalar(renderTargetContext->width()) / numCols; in onDraw()
334 SkScalar h = SkIntToScalar(renderTargetContext->height()) / numRows; in onDraw()
400 renderTargetContext->priv().testingOnly_addDrawOp(std::move(op)); in onDraw()
[all …]
Dbigrrectaaeffect.cpp52 GrRenderTargetContext* renderTargetContext = in onDraw() local
54 if (!renderTargetContext) { in onDraw()
80 const auto& caps = *renderTargetContext->caps()->shaderCaps(); in onDraw()
92 renderTargetContext->priv().testingOnly_addDrawOp( in onDraw()

1234