Index: gm/convexpolyclip.cpp |
diff --git a/gm/convexpolyclip.cpp b/gm/convexpolyclip.cpp |
index 2eabebac62ba3b2de2b160d820bdc53861636d04..c1df69e3b7c8bd8c062f15d9f51b6b0b420b600a 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; |