Index: include/codec/SkCodec.h |
diff --git a/include/codec/SkCodec.h b/include/codec/SkCodec.h |
index ced0c630e0816a1088bf1ec7f934a8c7e8548030..bee4f3c9107ec7c749c6a6033766351a51171960 100644 |
--- a/include/codec/SkCodec.h |
+++ b/include/codec/SkCodec.h |
@@ -95,10 +95,11 @@ public: |
* failure to decode the image. |
* If the PNG does not contain unknown chunks, the SkPngChunkReader |
* will not be used or modified. |
- * |
- * Will take a ref if it returns a codec, else will not affect the data. |
*/ |
- static SkCodec* NewFromData(SkData*, SkPngChunkReader* = NULL); |
+ static SkCodec* NewFromData(sk_sp<SkData>, SkPngChunkReader* = NULL); |
+ static SkCodec* NewFromData(SkData* data, SkPngChunkReader* reader) { |
+ return NewFromData(sk_ref_sp(data), reader); |
+ } |
virtual ~SkCodec(); |