Index: include/codec/SkAndroidCodec.h |
diff --git a/include/codec/SkAndroidCodec.h b/include/codec/SkAndroidCodec.h |
index 7fee5be255f5b6406b76ac8b9f22d0b267cbe389..c7587b62e98aecbbc5a1dd30917e6601e4629c8e 100644 |
--- a/include/codec/SkAndroidCodec.h |
+++ b/include/codec/SkAndroidCodec.h |
@@ -37,10 +37,11 @@ public: |
* |
* The SkPngChunkReader handles unknown chunks in PNGs. |
* See SkCodec.h for more details. |
- * |
- * Will take a ref if it returns a codec, else will not affect the data. |
*/ |
- static SkAndroidCodec* NewFromData(SkData*, SkPngChunkReader* = NULL); |
+ static SkAndroidCodec* NewFromData(sk_sp<SkData>, SkPngChunkReader* = NULL); |
+ static SkAndroidCodec* NewFromData(SkData* data, SkPngChunkReader* reader) { |
+ return NewFromData(sk_ref_sp(data), reader); |
+ } |
virtual ~SkAndroidCodec() {} |