aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/bigtileimagefilter.cpp
diff options
context:
space:
mode:
authorGravatar reed <reed@google.com>2015-07-14 10:54:12 -0700
committerGravatar Commit bot <commit-bot@chromium.org>2015-07-14 10:54:12 -0700
commita5517e2b190a8083b38964972b031c13e99f1012 (patch)
tree16fc3439de41b3af1e85c360904e96c44a2b8078 /gm/bigtileimagefilter.cpp
parent4abc186d029c3c57a53cec3f483de2fff6d4a954 (diff)
add src-rect-constraint to drawImageRect
Follow-on work - unify around SrcRectConstraint (i.e. drawBitmapRect) - remove silly drawBitmapRectToRect alias - clean-up (possibly remove) alias problems around drawBitmapRect + IRect parameter BUG=skia: Review URL: https://codereview.chromium.org/1228083004
Diffstat (limited to 'gm/bigtileimagefilter.cpp')
-rw-r--r--gm/bigtileimagefilter.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/gm/bigtileimagefilter.cpp b/gm/bigtileimagefilter.cpp
index f465fe4d38..e4855ba9aa 100644
--- a/gm/bigtileimagefilter.cpp
+++ b/gm/bigtileimagefilter.cpp
@@ -84,7 +84,8 @@ protected:
SkRect bound3 = SkRect::MakeXYWH(320, 320,
SkIntToScalar(kBitmapSize),
SkIntToScalar(kBitmapSize));
- canvas->drawBitmapRectToRect(fGreenBitmap, &bound2, bound3);
+ canvas->drawBitmapRect(fGreenBitmap, &bound2, bound3, NULL,
+ SkCanvas::kStrict_SrcRectConstraint);
canvas->restore();
}
}