From b83bec5e0427be6fbe2a8f9802a5a031de91e11a Mon Sep 17 00:00:00 2001 From: robertphillips Date: Fri, 23 Oct 2015 09:38:03 -0700 Subject: Narrow the distribution of GrDrawTarget a bit BUG=skia:4094 TBR=bsalomon@google.com Review URL: https://codereview.chromium.org/1420043002 --- src/gpu/GrSoftwarePathRenderer.cpp | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'src/gpu/GrSoftwarePathRenderer.cpp') diff --git a/src/gpu/GrSoftwarePathRenderer.cpp b/src/gpu/GrSoftwarePathRenderer.cpp index f54d3b09e6..de833a6e26 100644 --- a/src/gpu/GrSoftwarePathRenderer.cpp +++ b/src/gpu/GrSoftwarePathRenderer.cpp @@ -28,8 +28,7 @@ namespace { // gets device coord bounds of path (not considering the fill) and clip. The // path bounds will be a subset of the clip bounds. returns false if // path bounds would be empty. -bool get_path_and_clip_bounds(const GrDrawTarget* target, - const GrPipelineBuilder* pipelineBuilder, +bool get_path_and_clip_bounds(const GrPipelineBuilder* pipelineBuilder, const SkPath& path, const SkMatrix& matrix, SkIRect* devPathBounds, @@ -110,7 +109,7 @@ bool GrSoftwarePathRenderer::onDrawPath(const DrawPathArgs& args) { } SkIRect devPathBounds, devClipBounds; - if (!get_path_and_clip_bounds(args.fTarget, args.fPipelineBuilder, *args.fPath, + if (!get_path_and_clip_bounds(args.fPipelineBuilder, *args.fPath, *args.fViewMatrix, &devPathBounds, &devClipBounds)) { if (args.fPath->isInverseFillType()) { draw_around_inv_path(args.fTarget, args.fPipelineBuilder, args.fColor, -- cgit v1.2.3