Index: src/pipe/SkPipeCanvas.cpp |
diff --git a/src/pipe/SkPipeCanvas.cpp b/src/pipe/SkPipeCanvas.cpp |
index 21b7267d74b72f47a9a719e64f3c33f3a0872311..a01237fbbb5c9ec5fcb232e39a43f2332d473697 100644 |
--- a/src/pipe/SkPipeCanvas.cpp |
+++ b/src/pipe/SkPipeCanvas.cpp |
@@ -582,6 +582,8 @@ void SkPipeCanvas::onDrawImageLattice(const SkImage* image, const Lattice& latti |
SkASSERT(count > 0); |
write_pad(&writer, lattice.fFlags, count); |
} |
+ SkASSERT(lattice.fBounds); |
+ writer.write(&lattice.fBounds, sizeof(*lattice.fBounds)); |
writer.write(&dst, sizeof(dst)); |
if (paint) { |
write_paint(writer, *paint, kImage_PaintUsage); |