diff options
author | Mike Klein <mtklein@google.com> | 2018-04-24 12:18:37 +0000 |
---|---|---|
committer | Skia Commit-Bot <skia-commit-bot@chromium.org> | 2018-04-24 12:18:47 +0000 |
commit | af88ec37124846a0168a4ab061bf10cc6030c2d6 (patch) | |
tree | 18894757d642df458ee40ba69cd703b60933ed61 /src/gpu/GrRenderTargetContext.cpp | |
parent | 01bc273bc50cb8524d568223e47f5eb9492654cd (diff) |
Revert "Add arcs as a specialized geometry to GrShape."
This reverts commit 255bcf57ffd9db368cd66ca9697549efd799153e.
Reason for revert: layout and scuba image diffs
Original change's description:
> Add arcs as a specialized geometry to GrShape.
>
> BUG: skia:7794
>
> Change-Id: I484693711f48e55631732a0f4ee97e2848dec89d
> Reviewed-on: https://skia-review.googlesource.com/122900
> Commit-Queue: Brian Salomon <bsalomon@google.com>
> Reviewed-by: Robert Phillips <robertphillips@google.com>
TBR=bsalomon@google.com,robertphillips@google.com
Change-Id: I9293b8fbb535d940bca5fc30a95908416b9eb7a7
No-Presubmit: true
No-Tree-Checks: true
No-Try: true
Reviewed-on: https://skia-review.googlesource.com/123362
Reviewed-by: Mike Klein <mtklein@google.com>
Commit-Queue: Mike Klein <mtklein@google.com>
Diffstat (limited to 'src/gpu/GrRenderTargetContext.cpp')
-rw-r--r-- | src/gpu/GrRenderTargetContext.cpp | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/src/gpu/GrRenderTargetContext.cpp b/src/gpu/GrRenderTargetContext.cpp index 8ee341eb7f..e26ec9018b 100644 --- a/src/gpu/GrRenderTargetContext.cpp +++ b/src/gpu/GrRenderTargetContext.cpp @@ -1353,9 +1353,10 @@ void GrRenderTargetContext::drawArc(const GrClip& clip, return; } } - this->drawShapeUsingPathRenderer( - clip, std::move(paint), aa, viewMatrix, - GrShape::MakeArc(oval, startAngle, sweepAngle, useCenter, style)); + SkPath path; + SkPathPriv::CreateDrawArcPath(&path, oval, startAngle, sweepAngle, useCenter, + style.isSimpleFill()); + this->drawShapeUsingPathRenderer(clip, std::move(paint), aa, viewMatrix, GrShape(path, style)); } void GrRenderTargetContext::drawImageLattice(const GrClip& clip, |