diff options
author | 2015-02-23 14:44:57 -0800 | |
---|---|---|
committer | 2015-02-23 14:44:58 -0800 | |
commit | 44701df5ce572ac3cccec785cf52103d3d5d14a5 (patch) | |
tree | b2f3b5465cc8490261163006376c7f7a30b5399e /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | 98c251bc7eec5aa236700d9936c740f2744788db (diff) |
Move clip off of draw target
BUG=skia:
Review URL: https://codereview.chromium.org/947443003
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index 364c214a60..466ad81779 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -50,7 +50,7 @@ bool get_path_and_clip_bounds(const GrDrawTarget* target, return false; } - target->getClip()->getConservativeBounds(rt, devClipBounds); + pipelineBuilder->clip().getConservativeBounds(rt, devClipBounds); if (devClipBounds->isEmpty()) { *devPathBounds = SkIRect::MakeWH(rt->width(), rt->height()); @@ -127,8 +127,8 @@ bool GrSoftwarePathRenderer::onDrawPath(GrDrawTarget* target, } SkIRect devPathBounds, devClipBounds; - if (!get_path_and_clip_bounds(target, pipelineBuilder, path, viewMatrix, - &devPathBounds, &devClipBounds)) { + if (!get_path_and_clip_bounds(target, pipelineBuilder, path, viewMatrix, &devPathBounds, + &devClipBounds)) { if (path.isInverseFillType()) { draw_around_inv_path(target, pipelineBuilder, color, viewMatrix, devClipBounds, devPathBounds); |