Index: src/core/SkReadBuffer.cpp |
diff --git a/src/core/SkReadBuffer.cpp b/src/core/SkReadBuffer.cpp |
index 6a590ed6942aeff37f46eb1b9eeea68afe1c35bb..b60dee3ba6b860c88f1393d0cb4ecd168b697c12 100644 |
--- a/src/core/SkReadBuffer.cpp |
+++ b/src/core/SkReadBuffer.cpp |
@@ -25,6 +25,7 @@ static uint32_t default_flags() { |
SkReadBuffer::SkReadBuffer() { |
fFlags = default_flags(); |
+ fPictureVersion = 0; |
fMemoryPtr = NULL; |
fBitmapStorage = NULL; |
@@ -42,6 +43,7 @@ SkReadBuffer::SkReadBuffer() { |
SkReadBuffer::SkReadBuffer(const void* data, size_t size) { |
fFlags = default_flags(); |
+ fPictureVersion = 0; |
fReader.setMemory(data, size); |
fMemoryPtr = NULL; |
@@ -60,6 +62,7 @@ SkReadBuffer::SkReadBuffer(const void* data, size_t size) { |
SkReadBuffer::SkReadBuffer(SkStream* stream) { |
fFlags = default_flags(); |
+ fPictureVersion = 0; |
const size_t length = stream->getLength(); |
fMemoryPtr = sk_malloc_throw(length); |
stream->read(fMemoryPtr, length); |