aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/dftext.cpp
diff options
context:
space:
mode:
authorGravatar piotaixr <piotaixr@chromium.org>2014-09-23 14:10:50 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2014-09-23 14:10:50 -0700
commit432789972c1e1f8a66165c75a250dba1853efa08 (patch)
tree587fd2e2ae72baa63af8fcad67d2471980894dbe /gm/dftext.cpp
parent271a030f5d0d3c59715fbeffb31c761279f3f8ca (diff)
SkCanvas::drawImage is the new way for drawing a SkImage to a Canvas
BUG=skia:2947 R=junov@chromium.org, reed@google.com, bsalomon@google.com Author: piotaixr@chromium.org Review URL: https://codereview.chromium.org/583453002
Diffstat (limited to 'gm/dftext.cpp')
-rwxr-xr-xgm/dftext.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/dftext.cpp b/gm/dftext.cpp
index 59106f7344..5f58cb91ff 100755
--- a/gm/dftext.cpp
+++ b/gm/dftext.cpp
@@ -176,7 +176,7 @@ protected:
// render offscreen buffer
if (surface) {
SkImage* image = surface->newImageSnapshot();
- image->draw(inputCanvas, 0, 0, NULL);
+ inputCanvas->drawImage(image, 0, 0, NULL);
image->unref();
}
#endif