aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/core/SkPicture.cpp
diff options
context:
space:
mode:
authorGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 20:13:04 +0000
committerGravatar bsalomon@google.com <bsalomon@google.com@2bbb7eff-a529-9590-31e7-b0007b416f81>2012-06-21 20:13:04 +0000
commit7aa876bfbf0cf6f2a9d19bd4669ae50658f20821 (patch)
treeb7bda372bf16fb0d4d2b0d0cce53091728a77cdd /src/core/SkPicture.cpp
parenta320194e4242ef0e5e758aea896bfd52bcb3dac7 (diff)
Record pixel ref's gen ID in picture
Review URL: http://codereview.appspot.com/6325046/ git-svn-id: http://skia.googlecode.com/svn/trunk@4289 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/core/SkPicture.cpp')
-rw-r--r--src/core/SkPicture.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/core/SkPicture.cpp b/src/core/SkPicture.cpp
index 812ea65eae..44307e09cd 100644
--- a/src/core/SkPicture.cpp
+++ b/src/core/SkPicture.cpp
@@ -197,7 +197,8 @@ void SkPicture::draw(SkCanvas* surface) {
#include "SkStream.h"
-#define PICTURE_VERSION 1
+#define PICTURE_VERSION 2
+// Version 2 adds SkPixelRef's generation ID.
SkPicture::SkPicture(SkStream* stream) : SkRefCnt() {
if (stream->readU32() != PICTURE_VERSION) {