Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 148237a5a8ffee471e96158f2f5356f518b0e3cd..35e66bb7eb360c38ac6ea7baf4a1107d043a141d 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -1307,7 +1307,12 @@ void SkPicturePlayback::draw(SkCanvas& canvas, SkDrawPictureCallback* callback) |
canvas.rotate(reader.readScalar()); |
break; |
case SAVE: |
- canvas.save((SkCanvas::SaveFlags) reader.readInt()); |
+ // SKPs with version < 29 also store a SaveFlags param. |
+ if (size > 4) { |
+ SkASSERT(8 == size); |
+ reader.readInt(); |
+ } |
+ canvas.save(); |
break; |
case SAVE_LAYER: { |
const SkRect* boundsPtr = this->getRectPtr(reader); |