Index: samplecode/DecodeFile.h |
diff --git a/samplecode/DecodeFile.h b/samplecode/DecodeFile.h |
index 26d5d2dc2631407b524ced92c462c189e6a4c4ae..3995238bd04208324fb1539e1190a136ded05465 100644 |
--- a/samplecode/DecodeFile.h |
+++ b/samplecode/DecodeFile.h |
@@ -12,8 +12,8 @@ |
inline bool decode_file(const char* filename, SkBitmap* bitmap, |
SkColorType colorType = kN32_SkColorType, bool requireUnpremul = false) { |
SkASSERT(kIndex_8_SkColorType != colorType); |
- SkAutoTUnref<SkData> data(SkData::NewFromFileName(filename)); |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data)); |
+ sk_sp<SkData> data(SkData::MakeFromFileName(filename)); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); |
if (!codec) { |
return false; |
} |