Trivial cleanup

TBR=robertphillips@google.com
BUG=skia:

Review URL: https://codereview.chromium.org/1229913007
This commit is contained in:
joshualitt 2015-07-10 11:31:01 -07:00 committed by Commit bot
parent 33d35263bf
commit f9c5db26b4

View File

@ -990,10 +990,7 @@ void GrDrawContext::drawOval(GrRenderTarget* rt,
} }
// Can 'path' be drawn as a pair of filled nested rectangles? // Can 'path' be drawn as a pair of filled nested rectangles?
static bool is_nested_rects(GrDrawTarget* target, static bool is_nested_rects(const SkMatrix& viewMatrix,
GrPipelineBuilder* pipelineBuilder,
GrColor color,
const SkMatrix& viewMatrix,
const SkPath& path, const SkPath& path,
const SkStrokeRec& stroke, const SkStrokeRec& stroke,
SkRect rects[2]) { SkRect rects[2]) {
@ -1077,8 +1074,7 @@ void GrDrawContext::drawPath(GrRenderTarget* rt,
// Concave AA paths are expensive - try to avoid them for special cases // Concave AA paths are expensive - try to avoid them for special cases
SkRect rects[2]; SkRect rects[2];
if (is_nested_rects(fDrawTarget, &pipelineBuilder, color, viewMatrix, path, strokeInfo, if (is_nested_rects(viewMatrix, path, strokeInfo, rects)) {
rects)) {
GrAARectRenderer::FillAANestedRects(fDrawTarget, &pipelineBuilder, color, GrAARectRenderer::FillAANestedRects(fDrawTarget, &pipelineBuilder, color,
viewMatrix, rects); viewMatrix, rects);
return; return;