aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrDrawContext.cpp
diff options
context:
space:
mode:
authorGravatar joshualitt <joshualitt@chromium.org>2015-07-10 11:31:01 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-10 11:31:01 -0700
commitf9c5db26b401dcff83d39275ba78c36360cd6dc1 (patch)
tree8eb258bf5394aed8b950d0e348011c0c6f8564ca /src/gpu/GrDrawContext.cpp
parent33d35263bfb0571af2d7716e3873dc8aec3a0afb (diff)
Trivial cleanup
TBR=robertphillips@google.com BUG=skia: Review URL: https://codereview.chromium.org/1229913007
Diffstat (limited to 'src/gpu/GrDrawContext.cpp')
-rw-r--r--src/gpu/GrDrawContext.cpp8
1 files changed, 2 insertions, 6 deletions
diff --git a/src/gpu/GrDrawContext.cpp b/src/gpu/GrDrawContext.cpp
index 5e950dc152..0c00b32128 100644
--- a/src/gpu/GrDrawContext.cpp
+++ b/src/gpu/GrDrawContext.cpp
@@ -990,10 +990,7 @@ void GrDrawContext::drawOval(GrRenderTarget* rt,
}
// Can 'path' be drawn as a pair of filled nested rectangles?
-static bool is_nested_rects(GrDrawTarget* target,
- GrPipelineBuilder* pipelineBuilder,
- GrColor color,
- const SkMatrix& viewMatrix,
+static bool is_nested_rects(const SkMatrix& viewMatrix,
const SkPath& path,
const SkStrokeRec& stroke,
SkRect rects[2]) {
@@ -1077,8 +1074,7 @@ void GrDrawContext::drawPath(GrRenderTarget* rt,
// Concave AA paths are expensive - try to avoid them for special cases
SkRect rects[2];
- if (is_nested_rects(fDrawTarget, &pipelineBuilder, color, viewMatrix, path, strokeInfo,
- rects)) {
+ if (is_nested_rects(viewMatrix, path, strokeInfo, rects)) {
GrAARectRenderer::FillAANestedRects(fDrawTarget, &pipelineBuilder, color,
viewMatrix, rects);
return;