Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(57)

Unified Diff: tools/imgblur.cpp

Issue 1810813003: update callsites for Make image factories (Closed) Base URL: https://skia.googlesource.com/skia.git@master
Patch Set: start to take advantage of sk_sp drawImage Created 4 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/imgslice.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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]);
« no previous file with comments | « tools/debugger/SkDrawCommand.cpp ('k') | tools/imgslice.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698