Index: src/image/SkDataPixelRef.cpp |
diff --git a/src/image/SkDataPixelRef.cpp b/src/image/SkDataPixelRef.cpp |
index 980b4f145176b4ed5977406ba4c3f5095c02815f..66543de2b1e473ddb22921eb10d56b98478d505d 100644 |
--- a/src/image/SkDataPixelRef.cpp |
+++ b/src/image/SkDataPixelRef.cpp |
@@ -34,6 +34,6 @@ void SkDataPixelRef::flatten(SkFlattenableWriteBuffer& buffer) const { |
SkDataPixelRef::SkDataPixelRef(SkFlattenableReadBuffer& buffer) |
: INHERITED(buffer, NULL) { |
- fData = (SkData*)buffer.readFlattenable(); |
+ fData = buffer.readData(); |
this->setPreLocked(const_cast<void*>(fData->data()), NULL); |
} |