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/convexpolyclip.cpp | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'gm/convexpolyclip.cpp') 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; -- cgit v1.2.3