Index: tools/imgblur.cpp |
diff --git a/tools/imgblur.cpp b/tools/imgblur.cpp |
index 4f106dc712c09c0efa7835ded58d45f9bf84c9b7..c47bb02b75d99ba897e5711e310ee2fae297d236 100644 |
--- a/tools/imgblur.cpp |
+++ b/tools/imgblur.cpp |
@@ -40,7 +40,7 @@ int tool_main(int argc, char** argv) { |
return kError; |
} |
- SkAutoTUnref<SkData> data(SkData::NewFromFileName(FLAGS_in[0])); |
+ sk_sp<SkData> data(SkData::MakeFromFileName(FLAGS_in[0])); |
if (nullptr == data) { |
if (!FLAGS_quiet) { |
SkDebugf("Couldn't open file: %s\n", FLAGS_in[0]); |
@@ -48,7 +48,7 @@ int tool_main(int argc, char** argv) { |
return kError; |
} |
- SkAutoTDelete<SkImage> image(SkImage::NewFromEncoded(data)); |
+ sk_sp<SkImage> image(SkImage::MakeFromEncoded(data)); |
if (!image) { |
if (!FLAGS_quiet) { |
SkDebugf("Couldn't create image for: %s.\n", FLAGS_in[0]); |