diff options
author | 2015-10-23 09:38:03 -0700 | |
---|---|---|
committer | 2015-10-23 09:38:03 -0700 | |
commit | b83bec5e0427be6fbe2a8f9802a5a031de91e11a (patch) | |
tree | 884b39b11582bccccc69aee2bd161cf03a829356 /src/gpu/GrSoftwarePathRenderer.cpp | |
parent | ef27d89b076ce7ab81703c9c08ce1f5c44106ee6 (diff) |
Narrow the distribution of GrDrawTarget a bit
BUG=skia:4094
TBR=bsalomon@google.com
Review URL: https://codereview.chromium.org/1420043002
Diffstat (limited to 'src/gpu/GrSoftwarePathRenderer.cpp')
-rw-r--r-- | src/gpu/GrSoftwarePathRenderer.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
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, |