aboutsummaryrefslogtreecommitdiffhomepage
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/core/SkPicturePlayback.cpp4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/core/SkPicturePlayback.cpp b/src/core/SkPicturePlayback.cpp
index cb4a83828d..e3181d0cb9 100644
--- a/src/core/SkPicturePlayback.cpp
+++ b/src/core/SkPicturePlayback.cpp
@@ -69,8 +69,10 @@ SkPicturePlayback::SkPicturePlayback(const SkPictureRecord& record, bool deepCop
record.validate();
const SkWriter32& writer = record.writeStream();
init();
- if (writer.size() == 0)
+ if (writer.size() == 0) {
+ fOpData = SkData::NewEmpty();
return;
+ }
fBoundingHierarchy = record.fBoundingHierarchy;
fStateTree = record.fStateTree;