/external/skqp/src/gpu/ |
D | GrOnFlushResourceProvider.cpp | 35 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()
|
D | GrClipStackClip.cpp | 91 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 …]
|
D | GrBlurUtils.cpp | 31 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 …]
|
D | GrSoftwarePathRenderer.cpp | 90 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()
|
D | GrSoftwarePathRenderer.h | 27 static void DrawNonAARect(GrRenderTargetContext* renderTargetContext, 34 static void DrawAroundInvPath(GrRenderTargetContext* renderTargetContext, 46 GrRenderTargetContext* renderTargetContext,
|
/external/skia/src/gpu/ |
D | GrClipStackClip.cpp | 91 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 …]
|
D | GrOnFlushResourceProvider.cpp | 35 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()
|
D | GrBlurUtils.cpp | 31 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 …]
|
D | GrSoftwarePathRenderer.cpp | 90 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()
|
D | GrSoftwarePathRenderer.h | 27 static void DrawNonAARect(GrRenderTargetContext* renderTargetContext, 34 static void DrawAroundInvPath(GrRenderTargetContext* renderTargetContext, 46 GrRenderTargetContext* renderTargetContext,
|
/external/skqp/tests/ |
D | GLProgramsTest.cpp | 157 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()
|
D | PrimitiveProcessorTest.cpp | 118 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/ |
D | GLProgramsTest.cpp | 158 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()
|
D | PrimitiveProcessorTest.cpp | 118 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()
|
D | PathRendererCacheTests.cpp | 32 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/ |
D | SkGpuBlurUtils.cpp | 71 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 …]
|
D | SkSpecialSurface.cpp | 125 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/ |
D | SkGpuBlurUtils.cpp | 71 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 …]
|
D | SkSpecialSurface.cpp | 125 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/ |
D | beziereffects.cpp | 126 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 …]
|
D | bigrrectaaeffect.cpp | 52 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()
|
D | yuvtorgbeffect.cpp | 74 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()
|
D | texdata.cpp | 68 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/ |
D | beziereffects.cpp | 126 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 …]
|
D | bigrrectaaeffect.cpp | 52 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()
|