Index: src/core/SkPixelRef.cpp |
diff --git a/src/core/SkPixelRef.cpp b/src/core/SkPixelRef.cpp |
index da88ca5c71ae6ff6bf1a3dc9ab0a1e67b641779e..6cc67d89af9220562464d603f79f864de5fac8e8 100644 |
--- a/src/core/SkPixelRef.cpp |
+++ b/src/core/SkPixelRef.cpp |
@@ -122,6 +122,7 @@ SkPixelRef::SkPixelRef(SkBaseMutex* mutex) { |
SkPixelRef::SkPixelRef(SkFlattenableReadBuffer& buffer, SkBaseMutex* mutex) |
: INHERITED(buffer) { |
this->setMutex(mutex); |
+ fInfo.unflatten(buffer); |
fPixels = NULL; |
fColorTable = NULL; // we do not track ownership of this |
fLockCount = 0; |
@@ -160,6 +161,7 @@ void SkPixelRef::setPreLocked(void* pixels, SkColorTable* ctable) { |
void SkPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { |
this->INHERITED::flatten(buffer); |
+ fInfo.flatten(buffer); |
buffer.writeBool(fIsImmutable); |
// We write the gen ID into the picture for within-process recording. This |
// is safe since the same genID will never refer to two different sets of |