Index: src/core/SkMallocPixelRef.cpp |
diff --git a/src/core/SkMallocPixelRef.cpp b/src/core/SkMallocPixelRef.cpp |
index d70098396161065e75c79b6dc9a58055d080ffe6..341ac9eb88ed951897a570802bdb889859c284e6 100644 |
--- a/src/core/SkMallocPixelRef.cpp |
+++ b/src/core/SkMallocPixelRef.cpp |
@@ -46,7 +46,7 @@ void SkMallocPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { |
buffer.writeByteArray(fStorage, fSize); |
buffer.writeBool(fCTable != NULL); |
if (fCTable) { |
- buffer.writeFlattenable(fCTable); |
+ fCTable->writeToBuffer(buffer); |
} |
} |
@@ -56,7 +56,7 @@ SkMallocPixelRef::SkMallocPixelRef(SkFlattenableReadBuffer& buffer) |
fStorage = sk_malloc_throw(fSize); |
buffer.readByteArray(fStorage); |
if (buffer.readBool()) { |
- fCTable = buffer.readFlattenableT<SkColorTable>(); |
+ fCTable = SkNEW_ARGS(SkColorTable, (buffer)); |
} else { |
fCTable = NULL; |
} |