Index: tools/visualize_color_gamut.cpp |
diff --git a/tools/visualize_color_gamut.cpp b/tools/visualize_color_gamut.cpp |
index 4d340f8d98908d380fe79e178ae2e4c860a62e1e..424106f9c4c903eb0513426f7e3b5f5b8eab734b 100644 |
--- a/tools/visualize_color_gamut.cpp |
+++ b/tools/visualize_color_gamut.cpp |
@@ -119,12 +119,12 @@ int main(int argc, char** argv) { |
return -1; |
} |
- SkAutoTUnref<SkData> data(SkData::NewFromFileName(input)); |
+ sk_sp<SkData> data(SkData::MakeFromFileName(input)); |
if (!data) { |
SkDebugf("Cannot find input image.\n"); |
return -1; |
} |
- SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data)); |
+ SkAutoTDelete<SkCodec> codec(SkCodec::NewFromData(data.get())); |
if (!codec) { |
SkDebugf("Invalid input image.\n"); |
return -1; |