Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(684)

Unified Diff: src/image/SkDataPixelRef.cpp

Issue 23548034: Follow up to serialization validation code (Closed) Base URL: https://skia.googlecode.com/svn/trunk
Patch Set: Created 7 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/image/SkDataPixelRef.cpp
diff --git a/src/image/SkDataPixelRef.cpp b/src/image/SkDataPixelRef.cpp
index 980b4f145176b4ed5977406ba4c3f5095c02815f..1e919b940467d6051b315779173f9a79cb53d067 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.readFlattenableT<SkData>();
this->setPreLocked(const_cast<void*>(fData->data()), NULL);
}

Powered by Google App Engine
This is Rietveld 408576698