Index: src/core/SkBitmapDevice.cpp |
diff --git a/src/core/SkBitmapDevice.cpp b/src/core/SkBitmapDevice.cpp |
index 892f199452c02e99b0fe22fa992fbf459ab08f30..119a434cc9cde8a5077a18702ba2394e67a183f8 100644 |
--- a/src/core/SkBitmapDevice.cpp |
+++ b/src/core/SkBitmapDevice.cpp |
@@ -302,9 +302,8 @@ |
matrix.preTranslate(dx, dy); |
} |
- SkRect extractedBitmapBounds = SkRect::MakeXYWH(dx, dy, |
- SkIntToScalar(bitmapPtr->width()), |
- SkIntToScalar(bitmapPtr->height())); |
+ SkRect extractedBitmapBounds; |
+ extractedBitmapBounds.isetWH(bitmapPtr->width(), bitmapPtr->height()); |
if (extractedBitmapBounds == tmpSrc) { |
// no fractional part in src, we can just call drawBitmap |
goto USE_DRAWBITMAP; |