aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm/convexpolyclip.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/convexpolyclip.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/convexpolyclip.cpp')
-rw-r--r--gm/convexpolyclip.cpp4
1 files changed, 1 insertions, 3 deletions
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp
index 2eabebac62..c1df69e3b7 100644
--- a/gm/convexpolyclip.cpp
+++ b/gm/convexpolyclip.cpp
@@ -144,9 +144,7 @@ protected:
SkPaint bgPaint;
bgPaint.setAlpha(0x15);
SkISize size = canvas->getDeviceSize();
- SkRect dstRect = SkRect::MakeWH(SkIntToScalar(size.fWidth),
- SkIntToScalar(size.fHeight));
- canvas->drawBitmapRectToRect(fBmp, NULL, dstRect, &bgPaint);
+ canvas->drawBitmapRect(fBmp, SkRect::MakeIWH(size.fWidth, size.fHeight), &bgPaint);
static const char kTxt[] = "Clip Me!";
SkPaint txtPaint;