From a5517e2b190a8083b38964972b031c13e99f1012 Mon Sep 17 00:00:00 2001 From: reed Date: Tue, 14 Jul 2015 10:54:12 -0700 Subject: 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 --- gm/bigtileimagefilter.cpp | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'gm/bigtileimagefilter.cpp') 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(); } } -- cgit v1.2.3