Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 0ae4d058be1b6b14a66569a70ce426e3e4778012..611b556cc00655ac97dcdff3418ec3be4a1e1d06 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -188,6 +188,17 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
reader->readString(&key); |
canvas->drawAnnotation(rect, key.c_str(), reader->readByteArrayAsData().get()); |
} break; |
+ case DRAW_ARC: { |
+ const SkPaint* paint = fPictureData->getPaint(reader); |
+ SkRect rect; |
+ reader->readRect(&rect); |
+ SkScalar startAngle = reader->readScalar(); |
+ SkScalar sweepAngle = reader->readScalar(); |
+ int useCenter = reader->readInt(); |
+ if (paint) { |
+ canvas->drawArc(rect, startAngle, sweepAngle, SkToBool(useCenter), *paint); |
+ } |
+ } break; |
case DRAW_ATLAS: { |
const SkPaint* paint = fPictureData->getPaint(reader); |
const SkImage* atlas = fPictureData->getImage(reader); |