Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 3cbcdbbd2f3f55cf1da6dd23a187d1df36ab9071..3521a48b646f9b55a9af5eef403a742d2eda339a 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -129,8 +129,8 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
reader->skip(size - 4); |
} break; |
case CLIP_PATH: { |
- const SkPath& path = fPictureData->getPath(reader); |
- uint32_t packed = reader->readInt(); |
+ const SkPath& path = fPictureData->getPath(reader); |
+ uint32_t packed = reader->readInt(); |
SkRegion::Op regionOp = ClipParams_unpackRegionOp(packed); |
bool doAA = ClipParams_unpackDoAA(packed); |
size_t offsetToRestore = reader->readInt(); |
@@ -603,6 +603,10 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
SkScalar dy = reader->readScalar(); |
canvas->translate(dx, dy); |
} break; |
+ case TRANSLATE_Z: { |
+ SkScalar dz = reader->readScalar(); |
+ canvas->translateZ(dz); |
+ } |
default: |
SkASSERTF(false, "Unknown draw type: %d", op); |
} |