Index: src/utils/SkDeferredCanvas.cpp |
diff --git a/src/utils/SkDeferredCanvas.cpp b/src/utils/SkDeferredCanvas.cpp |
index 14220209cc952717a493662b1a4e7f14a64f2870..d2f95d9317cf5ef43dbafae1c99d47347d332d98 100644 |
--- a/src/utils/SkDeferredCanvas.cpp |
+++ b/src/utils/SkDeferredCanvas.cpp |
@@ -324,6 +324,13 @@ void SkDeferredCanvas::onDrawOval(const SkRect& rect, const SkPaint& paint) { |
fCanvas->drawOval(modRect, paint); |
} |
+void SkDeferredCanvas::onDrawArc(const SkRect& rect, SkScalar startAngle, SkScalar sweepAngle, |
+ bool useCenter, const SkPaint& paint) { |
+ SkRect modRect = rect; |
+ this->flush_check(&modRect, &paint, kNoClip_Flag); |
+ fCanvas->drawArc(modRect, startAngle, sweepAngle, useCenter, paint); |
+} |
+ |
static SkRRect make_offset(const SkRRect& src, SkScalar dx, SkScalar dy) { |
SkRRect dst = src; |
dst.offset(dx, dy); |