aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/gpu/GrRenderTargetContext.cpp
diff options
context:
space:
mode:
authorGravatar Brian Salomon <bsalomon@google.com>2018-04-23 16:32:52 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-23 23:27:53 +0000
commit255bcf57ffd9db368cd66ca9697549efd799153e (patch)
tree025592c31e850e208a955b859a0962740abfedf4 /src/gpu/GrRenderTargetContext.cpp
parent3b8feb331a11989fdd82c2d8d18e576df98e8895 (diff)
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>
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 e26ec9018b..8ee341eb7f 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,