Index: src/core/SkPictureRecord.cpp |
diff --git a/src/core/SkPictureRecord.cpp b/src/core/SkPictureRecord.cpp |
index 520451cb6127e6f525e6b48c6064bbfc9e2ac473..2140795b3d660592d32ee89b13accfd89a812e6c 100644 |
--- a/src/core/SkPictureRecord.cpp |
+++ b/src/core/SkPictureRecord.cpp |
@@ -428,6 +428,20 @@ void SkPictureRecord::onDrawOval(const SkRect& oval, const SkPaint& paint) { |
this->validate(initialOffset, size); |
} |
+void SkPictureRecord::onDrawArc(const SkRect& oval, SkScalar startAngle, SkScalar sweepAngle, |
+ bool useCenter, const SkPaint& paint) { |
+ // op + paint index + rect + start + sweep + bool (as int) |
+ size_t size = 2 * kUInt32Size + sizeof(oval) + sizeof(startAngle) + sizeof(sweepAngle) + |
+ sizeof(int); |
+ size_t initialOffset = this->addDraw(DRAW_ARC, &size); |
+ this->addPaint(paint); |
+ this->addRect(oval); |
+ this->addScalar(startAngle); |
+ this->addScalar(sweepAngle); |
+ this->addInt(useCenter); |
+ this->validate(initialOffset, size); |
+} |
+ |
void SkPictureRecord::onDrawRect(const SkRect& rect, const SkPaint& paint) { |
// op + paint index + rect |
size_t size = 2 * kUInt32Size + sizeof(rect); |