aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContext.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-04-25 11:21:39 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-25 18:54:07 +0000
commit8a98bc96748d1bdaf9c2d8cfa0b672e3a035973d (patch)
treef3d3147435661928de22456a7762d3dc20a2c71e /src/gpu/GrRenderTargetContext.cpp
parentcfd650e43ff1da223129aac36f222daaf1cf61e5 (diff)
Revert "Revert "Add arcs as a specialized geometry to GrShape.""
This reverts commit af88ec37124846a0168a4ab061bf10cc6030c2d6. Bug: skia:7794 Change-Id: I2d0e1d7b4e025481241d823b09f5de5d0f1a13eb Reviewed-on: https://skia-review.googlesource.com/123627 Reviewed-by: Robert Phillips <robertphillips@google.com> Commit-Queue: Brian Salomon <bsalomon@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r--src/gpu/GrRenderTargetContext.cpp7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp
index bb541229d7..ef34a99385 100644
--- a/src/gpu/GrRenderTargetContext.cpp
+++ b/src/gpu/GrRenderTargetContext.cpp
@@ -1353,10 +1353,9 @@ void GrRenderTargetContext::drawArc(const GrClip& clip,
return;
}
}
- SkPath path;
- SkPathPriv::CreateDrawArcPath(&path, oval, startAngle, sweepAngle, useCenter,
- style.isSimpleFill());
- this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, GrShape(path, style));
+ this->drawShapeUsingPathRenderer(
+ clip, std::move(paint), aa, viewMatrix,
+ GrShape::MakeArc(oval, startAngle, sweepAngle, useCenter, style));
}
void GrRenderTargetContext::drawImageLattice(const GrClip& clip,