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

Unified Diff: gm/complexclip_blur_tiled.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 | « gm/colorwheel.cpp ('k') | gm/dftext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/complexclip_blur_tiled.cpp
diff --git a/gm/complexclip_blur_tiled.cpp b/gm/complexclip_blur_tiled.cpp
index aac04167b7b0a0f28c390e08c727e5550c489cc3..b619e67e14b30e7234971682000718adf988de7c 100644
--- a/gm/complexclip_blur_tiled.cpp
+++ b/gm/complexclip_blur_tiled.cpp
@@ -58,8 +58,7 @@ protected:
tileCanvas->drawRect(rect, paint);
tileCanvas->restore();
tileCanvas->restore();
- SkAutoTUnref<SkImage> tileImage(tileSurface->newImageSnapshot());
- canvas->drawImage(tileImage, x, y);
+ canvas->drawImage(tileSurface->makeImageSnapshot().get(), x, y);
}
}
}
« no previous file with comments | « gm/colorwheel.cpp ('k') | gm/dftext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698