diff options
author | cdalton <cdalton@nvidia.com> | 2016-05-12 15:09:48 -0700 |
---|---|---|
committer | Commit bot <commit-bot@chromium.org> | 2016-05-12 15:09:48 -0700 |
commit | 862cff30eaa16206d76d7de7594c9167375ca87e (patch) | |
tree | b8f177f4d401b8c0361141ce834eaa9898d7beb4 /src/gpu/batches/GrTessellatingPathRenderer.cpp | |
parent | 193d9cf8f2280cd4f8e509c6f3af6b47cea04935 (diff) |
Remove clip from GrPipelineBuilder
This eliminates a copy and will allow us to make the GrClip class
virutal.
BUG=skia:
GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1966903004
Review-Url: https://codereview.chromium.org/1966903004
Diffstat (limited to 'src/gpu/batches/GrTessellatingPathRenderer.cpp')
-rw-r--r-- | src/gpu/batches/GrTessellatingPathRenderer.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/gpu/batches/GrTessellatingPathRenderer.cpp b/src/gpu/batches/GrTessellatingPathRenderer.cpp index 728ec74059..e697f78d72 100644 --- a/src/gpu/batches/GrTessellatingPathRenderer.cpp +++ b/src/gpu/batches/GrTessellatingPathRenderer.cpp @@ -287,7 +287,7 @@ bool GrTessellatingPathRenderer::onDrawPath(const DrawPathArgs& args) { } SkIRect clipBoundsI; - args.fPipelineBuilder->clip().getConservativeBounds(rt->width(), rt->height(), &clipBoundsI); + args.fClip->getConservativeBounds(rt->width(), rt->height(), &clipBoundsI); SkRect clipBounds = SkRect::Make(clipBoundsI); SkMatrix vmi; if (!args.fViewMatrix->invert(&vmi)) { @@ -297,7 +297,7 @@ bool GrTessellatingPathRenderer::onDrawPath(const DrawPathArgs& args) { SkAutoTUnref<GrDrawBatch> batch(TessellatingPathBatch::Create(args.fColor, *args.fPath, *args.fStyle, *args.fViewMatrix, clipBounds)); - args.fTarget->drawBatch(*args.fPipelineBuilder, batch); + args.fTarget->drawBatch(*args.fPipelineBuilder, *args.fClip, batch); return true; } |