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

Unified Diff: tools/imgslice.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/imgblur.cpp ('k') | tools/skhello.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: tools/imgslice.cpp
diff --git a/tools/imgslice.cpp b/tools/imgslice.cpp
index 8128f77dd43d1e8072c19fa64c4d2d3002f2eae5..3585c06352ec8cd3636c6541c2187757d9f3fbc1 100644
--- a/tools/imgslice.cpp
+++ b/tools/imgslice.cpp
@@ -59,7 +59,7 @@ int tool_main(int argc, char** argv) {
return kError;
}
- SkAutoTUnref<SkData> data(SkData::NewFromFileName(FLAGS_image[0]));
+ sk_sp<SkData> data(SkData::MakeFromFileName(FLAGS_image[0]));
if (nullptr == data) {
if (!FLAGS_quiet) {
SkDebugf("Couldn't open file: %s\n", FLAGS_image[0]);
@@ -67,7 +67,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_image[0]);
« no previous file with comments | « tools/imgblur.cpp ('k') | tools/skhello.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698