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

Unified Diff: gm/multipicturedraw.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/mipmap.cpp ('k') | gm/ninepatchstretch.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/multipicturedraw.cpp
diff --git a/gm/multipicturedraw.cpp b/gm/multipicturedraw.cpp
index 88d6cd798f931ab0bdb0fbc9f5656f182bc9d37c..c3f6b892bf71d3a24b5b75eeebadb0a291c77df9 100644
--- a/gm/multipicturedraw.cpp
+++ b/gm/multipicturedraw.cpp
@@ -511,9 +511,8 @@ namespace skiagm {
for (int i = 0; i < composeSteps.count(); ++i) {
const ComposeStep& step = composeSteps[i];
- SkAutoTUnref<SkImage> image(step.fSurf->newImageSnapshot());
-
- canvas->drawImage(image, step.fX, step.fY, step.fPaint);
+ canvas->drawImage(step.fSurf->makeImageSnapshot().get(),
+ step.fX, step.fY, step.fPaint);
}
}
« no previous file with comments | « gm/mipmap.cpp ('k') | gm/ninepatchstretch.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698