/external/skia/src/gpu/ |
D | GrClipStackClip.cpp | 93 const GrSurfaceDrawContext* surfaceDrawContext, in PathNeedsSWRenderer() argument 113 SkASSERT(surfaceDrawContext->numSamples() <= 1); in PathNeedsSWRenderer() 123 canDrawArgs.fProxy = surfaceDrawContext->asRenderTargetProxy(); in PathNeedsSWRenderer() 128 canDrawArgs.fSurfaceProps = &surfaceDrawContext->surfaceProps(); in PathNeedsSWRenderer() 146 const GrSurfaceDrawContext* surfaceDrawContext, in UseSWOnlyPath() argument 157 if (!surfaceDrawContext->asRenderTargetProxy()->canUseStencil(*context->priv().caps())) { in UseSWOnlyPath() 175 surfaceDrawContext, translate, element, needsStencil)) { in UseSWOnlyPath() 186 GrSurfaceDrawContext* surfaceDrawContext, in apply() argument 189 SkASSERT(surfaceDrawContext->width() == fDeviceSize.fWidth && in apply() 190 surfaceDrawContext->height() == fDeviceSize.fHeight); in apply() [all …]
|
D | GrBlurUtils.cpp | 42 static bool draw_mask(GrSurfaceDrawContext* surfaceDrawContext, in draw_mask() argument 61 surfaceDrawContext->fillPixelsWithLocalMatrix(clip, std::move(paint), maskBounds, inverse); in draw_mask() 256 static bool get_shape_and_clip_bounds(GrSurfaceDrawContext* surfaceDrawContext, in get_shape_and_clip_bounds() argument 264 : SkIRect::MakeWH(surfaceDrawContext->width(), in get_shape_and_clip_bounds() 265 surfaceDrawContext->height()); in get_shape_and_clip_bounds() 363 GrSurfaceDrawContext* surfaceDrawContext, in hw_create_filtered_mask() argument 417 surfaceDrawContext->numSamples())); in hw_create_filtered_mask() 458 GrSurfaceDrawContext* surfaceDrawContext, in draw_shape_with_mask_filter() argument 483 if (maskFilter->directFilterMaskGPU(rContext, surfaceDrawContext, std::move(paint), clip, in draw_shape_with_mask_filter() 497 if (!get_shape_and_clip_bounds(surfaceDrawContext, clip, *shape, viewMatrix, in draw_shape_with_mask_filter() [all …]
|
D | GrSoftwarePathRenderer.cpp | 69 bool GrSoftwarePathRenderer::GetShapeAndClipBounds(GrSurfaceDrawContext* surfaceDrawContext, in GetShapeAndClipBounds() argument 78 : SkIRect::MakeWH(surfaceDrawContext->width(), in GetShapeAndClipBounds() 79 surfaceDrawContext->height()); in GetShapeAndClipBounds() 95 void GrSoftwarePathRenderer::DrawNonAARect(GrSurfaceDrawContext* surfaceDrawContext, in DrawNonAARect() argument 102 surfaceDrawContext->stencilRect(clip, &userStencilSettings, std::move(paint), GrAA::kNo, in DrawNonAARect() 106 void GrSoftwarePathRenderer::DrawAroundInvPath(GrSurfaceDrawContext* surfaceDrawContext, in DrawAroundInvPath() argument 122 DrawNonAARect(surfaceDrawContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath() 128 DrawNonAARect(surfaceDrawContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath() 134 DrawNonAARect(surfaceDrawContext, GrPaint::Clone(paint), userStencilSettings, clip, in DrawAroundInvPath() 140 DrawNonAARect(surfaceDrawContext, std::move(paint), userStencilSettings, clip, in DrawAroundInvPath() [all …]
|
D | GrSoftwarePathRenderer.h | 38 static void DrawNonAARect(GrSurfaceDrawContext* surfaceDrawContext, 45 static void DrawAroundInvPath(GrSurfaceDrawContext* surfaceDrawContext, 57 GrSurfaceDrawContext* surfaceDrawContext,
|
D | GrOnFlushResourceProvider.cpp | 35 auto surfaceDrawContext = GrSurfaceDrawContext::Make(context, colorType, std::move(colorSpace), in makeRenderTargetContext() local 38 if (!surfaceDrawContext) { in makeRenderTargetContext() 42 surfaceDrawContext->discard(); in makeRenderTargetContext() 44 return surfaceDrawContext; in makeRenderTargetContext()
|
D | SkGpuDevice.cpp | 75 sk_sp<SkGpuDevice> SkGpuDevice::Make(std::unique_ptr<GrSurfaceDrawContext> surfaceDrawContext, in Make() argument 77 if (!surfaceDrawContext) { in Make() 81 GrRecordingContext* rContext = surfaceDrawContext->recordingContext(); in Make() 86 SkColorType ct = GrColorTypeToSkColorType(surfaceDrawContext->colorInfo().colorType()); in Make() 93 return sk_sp<SkGpuDevice>(new SkGpuDevice(std::move(surfaceDrawContext), flags)); in Make() 106 auto surfaceDrawContext = in Make() local 108 if (!surfaceDrawContext) { in Make() 112 return sk_sp<SkGpuDevice>(new SkGpuDevice(std::move(surfaceDrawContext), flags)); in Make() 129 SkGpuDevice::SkGpuDevice(std::unique_ptr<GrSurfaceDrawContext> surfaceDrawContext, unsigned flags) argument 130 : INHERITED(make_info(surfaceDrawContext.get(), SkToBool(flags & kIsOpaque_Flag)), [all …]
|
/external/skia/src/gpu/ccpr/ |
D | GrCCPerFlushResources.cpp | 91 GrSurfaceDrawContext* surfaceDrawContext, SkRect&& rect) { in draw_stencil_to_coverage() argument 129 auto coverOp = GrFillRectOp::Make(surfaceDrawContext->recordingContext(), std::move(paint), in draw_stencil_to_coverage() 131 surfaceDrawContext->addDrawOp(nullptr, std::move(coverOp)); in draw_stencil_to_coverage() 136 auto surfaceDrawContext = fAtlas->instantiate(onFlushRP); in flushRenderedPaths() local 137 if (!surfaceDrawContext) { in flushRenderedPaths() 152 surfaceDrawContext->stencilPath(nullptr, GrAA::kYes, SkMatrix::I(), uberPath); in flushRenderedPaths() 157 surfaceDrawContext->asRenderTargetProxy()->backingStoreDimensions(), scissor); in flushRenderedPaths() 160 surfaceDrawContext->stencilPath(&fixedClip, GrAA::kYes, SkMatrix::I(), scissoredPath); in flushRenderedPaths() 165 draw_stencil_to_coverage(onFlushRP, surfaceDrawContext.get(), in flushRenderedPaths() 168 if (surfaceDrawContext->asSurfaceProxy()->requiresManualMSAAResolve()) { in flushRenderedPaths() [all …]
|
/external/skia/src/core/ |
D | SkSpecialSurface.cpp | 127 SkSpecialSurface_Gpu(std::unique_ptr<GrSurfaceDrawContext> surfaceDrawContext, SkIRect subset) in SkSpecialSurface_Gpu() argument 128 : INHERITED(subset, surfaceDrawContext->surfaceProps()) in SkSpecialSurface_Gpu() 129 , fReadView(surfaceDrawContext->readSurfaceView()) { in SkSpecialSurface_Gpu() 130 auto device = SkGpuDevice::Make(std::move(surfaceDrawContext), in SkSpecialSurface_Gpu() 172 auto surfaceDrawContext = GrSurfaceDrawContext::Make( in MakeRenderTarget() local 176 if (!surfaceDrawContext) { in MakeRenderTarget() 182 return sk_make_sp<SkSpecialSurface_Gpu>(std::move(surfaceDrawContext), subset); in MakeRenderTarget()
|
D | SkBlurMF.cpp | 60 GrSurfaceDrawContext* surfaceDrawContext, 576 GrSurfaceDrawContext* surfaceDrawContext, in directFilterMaskGPU() argument 581 SkASSERT(surfaceDrawContext); in directFilterMaskGPU() 594 surfaceDrawContext->drawShape(clip, std::move(paint), GrAA::kYes, viewMatrix, in directFilterMaskGPU() 660 surfaceDrawContext->drawRect(clip, std::move(paint), GrAA::kNo, viewMatrix, srcProxyRect); in directFilterMaskGPU() 680 surfaceDrawContext->drawRect(clip, std::move(paint), GrAA::kNo, viewMatrix, srcProxyRect); in directFilterMaskGPU() 692 surfaceDrawContext->fillPixelsWithLocalMatrix(clip, std::move(paint), proxyBounds, inverse); in directFilterMaskGPU() 750 auto surfaceDrawContext = SkGpuBlurUtils::GaussianBlur(context, in filterMaskGPU() local 760 if (!surfaceDrawContext || !surfaceDrawContext->asTextureProxy()) { in filterMaskGPU() 783 surfaceDrawContext->fillPixelsWithLocalMatrix(nullptr, std::move(paint), clipRect, in filterMaskGPU() [all …]
|
/external/skia/tools/gpu/ |
D | GrTest.cpp | 81 void GrDrawRandomOp(SkRandom* random, GrSurfaceDrawContext* surfaceDrawContext, GrPaint&& paint) { in GrDrawRandomOp() argument 82 auto context = surfaceDrawContext->recordingContext(); in GrDrawRandomOp() 114 surfaceDrawContext, in GrDrawRandomOp() 115 surfaceDrawContext->numSamples()); in GrDrawRandomOp() 120 surfaceDrawContext->addDrawOp(std::move(op)); in GrDrawRandomOp()
|
/external/skia/src/image/ |
D | SkSurface_Gpu.cpp | 35 SkASSERT(fDevice->surfaceDrawContext()->asSurfaceProxy()->priv().isExact()); in SkSurface_Gpu() 65 GrSurfaceDrawContext* sdc = surface->getDevice()->surfaceDrawContext(); in prepare_rt_for_external_access() 69 sdc = surface->getDevice()->surfaceDrawContext(); in prepare_rt_for_external_access() 97 int sampleCount = fDevice->surfaceDrawContext()->numSamples(); in onNewSurface() 98 GrSurfaceOrigin origin = fDevice->surfaceDrawContext()->origin(); in onNewSurface() 106 GrSurfaceDrawContext* sdc = fDevice->surfaceDrawContext(); in onNewImageSnapshot() 160 auto* sdc = this->fDevice->surfaceDrawContext(); in onAsyncRescaleAndReadPixels() 178 auto* sdc = this->fDevice->surfaceDrawContext(); in onAsyncRescaleAndReadPixelsYUV420() 199 GrSurfaceDrawContext* sdc = fDevice->surfaceDrawContext(); in onCopyOnWrite() 213 void SkSurface_Gpu::onDiscard() { fDevice->surfaceDrawContext()->discard(); } in onDiscard() [all …]
|
/external/skia/tests/ |
D | PrimitiveProcessorTest.cpp | 177 auto surfaceDrawContext = GrSurfaceDrawContext::Make(context, GrColorType::kRGBA_8888, nullptr, in DEF_GPUTEST_FOR_ALL_CONTEXTS() local 180 if (!surfaceDrawContext) { in DEF_GPUTEST_FOR_ALL_CONTEXTS() 196 surfaceDrawContext->discard(); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 200 surfaceDrawContext->addDrawOp(Op::Make(context, attribCnt)); in DEF_GPUTEST_FOR_ALL_CONTEXTS() 207 surfaceDrawContext->addDrawOp(Op::Make(context, attribCnt + 1)); in DEF_GPUTEST_FOR_ALL_CONTEXTS()
|
D | PathRendererCacheTests.cpp | 34 GrSurfaceDrawContext* surfaceDrawContext, in draw_path() argument 43 SkIRect clipConservativeBounds = SkIRect::MakeWH(surfaceDrawContext->width(), in draw_path() 44 surfaceDrawContext->height()); in draw_path() 54 surfaceDrawContext, in draw_path()
|
D | ProgramsTest.cpp | 286 auto surfaceDrawContext = random_render_target_context(direct, &random, caps); in ProgramUnitTest() local 287 if (!surfaceDrawContext) { in ProgramUnitTest() 296 GrDrawRandomOp(&random, surfaceDrawContext.get(), std::move(paint)); in ProgramUnitTest() 303 auto surfaceDrawContext = GrSurfaceDrawContext::Make( in ProgramUnitTest() local 306 if (!surfaceDrawContext) { in ProgramUnitTest() 323 GrDrawRandomOp(&random, surfaceDrawContext.get(), std::move(paint)); in ProgramUnitTest()
|
/external/skia/src/gpu/vk/ |
D | GrVkSecondaryCBDrawContext.cpp | 68 dContext->priv().flushSurface(fDevice->surfaceDrawContext()->asSurfaceProxy()); in flush() 85 GrSurfaceDrawContext* sdc = fDevice->surfaceDrawContext(); in characterize() 126 GrSurfaceDrawContext* sdc = fDevice->surfaceDrawContext(); in isCompatible() 186 GrSurfaceDrawContext* sdc = fDevice->surfaceDrawContext();
|
/external/skia/src/gpu/tessellate/ |
D | GrTessellationPathRenderer.cpp | 248 GrSurfaceDrawContext* surfaceDrawContext = args.fRenderTargetContext; in onDrawPath() local 279 surfaceDrawContext->numSamples(), sk_ref_sp(fAtlas.textureProxy()), in onDrawPath() 282 surfaceDrawContext->addDrawOp(args.fClip, std::move(op)); in onDrawPath() 286 if (auto op = make_op(args.fContext, surfaceDrawContext, OpFlags::kNone, args.fAAType, in onDrawPath() 288 surfaceDrawContext->addDrawOp(args.fClip, std::move(op)); in onDrawPath() 359 GrSurfaceDrawContext* surfaceDrawContext = args.fRenderTargetContext; in onStencilPath() local 363 if (auto op = make_op(args.fContext, surfaceDrawContext, OpFlags::kStencilOnly, aaType, in onStencilPath() 365 surfaceDrawContext->addDrawOp(args.fClip, std::move(op)); in onStencilPath()
|
/external/skia/gm/ |
D | rrects.cpp | 82 GrSurfaceDrawContext* surfaceDrawContext = in onDraw() local 86 if (kEffect_Type == fType && (!surfaceDrawContext || !context)) { in onDraw() 122 const auto& caps = *surfaceDrawContext->caps()->shaderCaps(); in onDraw() 134 surfaceDrawContext->addDrawOp(GrFillRectOp::MakeNonAARect( in onDraw()
|
D | bigrrectaaeffect.cpp | 68 void onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 91 const auto& caps = *surfaceDrawContext->caps()->shaderCaps(); in onDraw() 105 surfaceDrawContext->addDrawOp(GrFillRectOp::MakeNonAARect( in onDraw()
|
D | aarecteffect.cpp | 50 GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 86 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw()
|
D | convexpolyeffect.cpp | 92 void onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 121 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw()
|
D | texelsubset.cpp | 85 DrawResult onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 165 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw() 183 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw()
|
D | yuvtorgbsubset.cpp | 116 GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 151 surfaceDrawContext->drawRect( in onDraw()
|
D | beziereffects.cpp | 228 void onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 299 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw() 428 void onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 492 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw()
|
D | constcolorprocessor.cpp | 81 void onDraw(GrRecordingContext* context, GrSurfaceDrawContext* surfaceDrawContext, in onDraw() argument 145 surfaceDrawContext->addDrawOp(std::move(op)); in onDraw()
|
/external/skia/src/gpu/ops/ |
D | GrDefaultPathRenderer.cpp | 552 bool GrDefaultPathRenderer::internalDrawPath(GrSurfaceDrawContext* surfaceDrawContext, in internalDrawPath() argument 560 auto context = surfaceDrawContext->recordingContext(); in internalDrawPath() 648 GetPathDevBounds(path, surfaceDrawContext->asRenderTargetProxy()->backingStoreDimensions(), in internalDrawPath() 674 surfaceDrawContext->stencilRect(clip, passes[p], std::move(paint), in internalDrawPath() 691 surfaceDrawContext->addDrawOp(clip, std::move(op)); in internalDrawPath()
|