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

Unified Diff: gm/dftext.cpp

Issue 583453002: SkCanvas::drawImage is the new way for drawing an SkImage to a Canvas (Closed) Base URL: https://skia.googlesource.com/skia.git@refactor_skImage
Patch Set: Again Created 6 years, 3 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 | « no previous file | gm/image.cpp » ('j') | src/core/SkCanvas.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gm/dftext.cpp
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index dccc62adb46a1e3b08ebe76ac7d971a45b17337b..b8948743b6a61d798ae6c01f4c5f33940a6ca6e6 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -149,7 +149,7 @@ protected:
#if SK_SUPPORT_GPU
// render offscreen buffer
SkImage* image = surface->newImageSnapshot();
- image->draw(inputCanvas, 0, 0, NULL);
+ inputCanvas->drawImage(image, 0, 0, NULL);
image->unref();
#endif
}
« no previous file with comments | « no previous file | gm/image.cpp » ('j') | src/core/SkCanvas.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698