Index: src/effects/SkTestImageFilters.cpp |
diff --git a/src/effects/SkTestImageFilters.cpp b/src/effects/SkTestImageFilters.cpp |
index cd277ec225e9127c1cb23a9ed1612f8f2686850e..43b43a58fc04362115ea3e6e20237fd99018c82d 100755 |
--- a/src/effects/SkTestImageFilters.cpp |
+++ b/src/effects/SkTestImageFilters.cpp |
@@ -69,9 +69,7 @@ bool SkDownSampleImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& src, |
} |
OwnDeviceCanvas canvas(dev); |
- SkRect r = SkRect::MakeWH(SkIntToScalar(src.width()), |
- SkIntToScalar(src.height())); |
- canvas.drawBitmapRect(tmp, r); |
+ canvas.drawBitmapRect(tmp, SkRect::MakeIWH(src.width(), src.height()), nullptr); |
*result = dev->accessBitmap(false); |
} |
return true; |