Index: src/core/SkDevice.cpp |
diff --git a/src/core/SkDevice.cpp b/src/core/SkDevice.cpp |
index 74e86dc9f07057222ca5432918998f9a6f7f5d80..f44066bf0aa5f48860c07233f9df54f94cb7a576 100644 |
--- a/src/core/SkDevice.cpp |
+++ b/src/core/SkDevice.cpp |
@@ -73,6 +73,20 @@ SkPixelGeometry SkBaseDevice::CreateInfo::AdjustGeometry(const SkImageInfo& info |
return geo; |
} |
+void SkBaseDevice::drawArc(const SkDraw& draw, const SkRect& oval, SkScalar startAngle, |
+ SkScalar sweepAngle, bool useCenter, const SkPaint& paint) { |
+ SkPath path; |
reed1
2016/08/19 15:55:30
can/should we assert that at this level, sweepAngl
bsalomon
2016/08/19 16:14:34
Will add docs to SkDevice.h and asserts here. Full
|
+ if (useCenter) { |
+ path.moveTo(oval.centerX(), oval.centerY()); |
+ } |
+ path.arcTo(oval, startAngle, sweepAngle, !useCenter); |
+ if (useCenter) { |
+ path.close(); |
+ } |
+ this->drawPath(draw, path, paint); |
+} |
+ |
+ |
void SkBaseDevice::drawDRRect(const SkDraw& draw, const SkRRect& outer, |
const SkRRect& inner, const SkPaint& paint) { |
SkPath path; |