diff options
author | Robert Phillips <robertphillips@google.com> | 2017-03-01 14:32:46 -0500 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2017-03-02 12:29:16 +0000 |
commit | 256c37bc9ea2a0420b8ac1084f6d645aaeb919f0 (patch) | |
tree | 27c6ec1766362477c7d50292c6cbc1f54757bdb9 /src/gpu/GrReducedClip.cpp | |
parent | 9c10df3b60f4a7d50c1070a5d8c4aaadb79ba9b7 (diff) |
Remove atlas creation from GrResourceProvider
This is pulled out of: https://skia-review.googlesource.com/c/6680/ (Make SkImage_Gpu be deferred) and is only tangentially related to the goal of that CL.
Change-Id: I6b6db4869597070f85ab3b9fea178fc88c104f87
Reviewed-on: https://skia-review.googlesource.com/9106
Reviewed-by: Brian Salomon <bsalomon@google.com>
Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/gpu/GrReducedClip.cpp')
-rw-r--r-- | src/gpu/GrReducedClip.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrReducedClip.cpp b/src/gpu/GrReducedClip.cpp index 4dd81c26ce..8105ed46bf 100644 --- a/src/gpu/GrReducedClip.cpp +++ b/src/gpu/GrReducedClip.cpp @@ -781,7 +781,7 @@ bool GrReducedClip::drawStencilClipMask(GrContext* context, GrPaint paint; paint.setXPFactory(GrDisableColorXPFactory::Get()); - GrPathRenderer::DrawPathArgs args{context->resourceProvider(), + GrPathRenderer::DrawPathArgs args{context, std::move(paint), &kDrawToStencil, renderTargetContext, @@ -793,7 +793,7 @@ bool GrReducedClip::drawStencilClipMask(GrContext* context, pr->drawPath(args); } else { GrPathRenderer::StencilPathArgs args; - args.fResourceProvider = context->resourceProvider(); + args.fContext = context; args.fRenderTargetContext = renderTargetContext; args.fClip = &stencilClip.fixedClip(); args.fViewMatrix = &viewMatrix; @@ -816,7 +816,7 @@ bool GrReducedClip::drawStencilClipMask(GrContext* context, GrShape shape(clipPath, GrStyle::SimpleFill()); GrPaint paint; paint.setXPFactory(GrDisableColorXPFactory::Get()); - GrPathRenderer::DrawPathArgs args{context->resourceProvider(), + GrPathRenderer::DrawPathArgs args{context, std::move(paint), *pass, renderTargetContext, |