Index: src/core/SkPicturePlayback.cpp |
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp |
index 3df64227a6de169c19ebc6700a02d2a92fb47662..4520b6d325107ff262f9d961337532e142b6660b 100644 |
--- a/src/core/SkPicturePlayback.cpp |
+++ b/src/core/SkPicturePlayback.cpp |
@@ -316,6 +316,9 @@ void SkPicturePlayback::handleOp(SkReadBuffer* reader, |
lattice.fXDivs = (const int*) reader->skip(lattice.fXCount * sizeof(int32_t)); |
lattice.fYCount = reader->readInt(); |
lattice.fYDivs = (const int*) reader->skip(lattice.fYCount * sizeof(int32_t)); |
+ int flagCount = reader->readInt(); |
+ lattice.fFlags = (0 == flagCount) ? nullptr : (const SkCanvas::Lattice::Flags*) |
+ reader->skip(SkAlign4(flagCount * sizeof(SkCanvas::Lattice::Flags))); |
SkRect dst; |
reader->readRect(&dst); |
canvas->drawImageLattice(image, lattice, dst, paint); |