Index: src/image/SkDataPixelRef.cpp |
diff --git a/src/image/SkDataPixelRef.cpp b/src/image/SkDataPixelRef.cpp |
index 7897bf93158437efa69abe1e8ea8a5baf5516ced..c8bfe8083d1d513d85580e6732fc8ea6e33e2cde 100644 |
--- a/src/image/SkDataPixelRef.cpp |
+++ b/src/image/SkDataPixelRef.cpp |
@@ -9,7 +9,10 @@ |
#include "SkData.h" |
#include "SkFlattenableBuffers.h" |
-SkDataPixelRef::SkDataPixelRef(SkData* data) : fData(data) { |
+SkDataPixelRef::SkDataPixelRef(const SkImageInfo& info, SkData* data) |
+ : INHERITED(info) |
+ , fData(data) |
+{ |
fData->ref(); |
this->setPreLocked(const_cast<void*>(fData->data()), NULL); |
} |