Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 2f7fcf4d4b5b5110ebf490cc33d14cc0cac15086..bb6d1baad2984c6b1f12f1f892d08686da2e731f 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1260,7 +1260,7 @@ void SkCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
SkIPoint offset = SkIPoint::Make(0, 0); |
SkMatrix matrix = *iter.fMatrix; |
matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); |
- SkIRect clipBounds = SkIRect::MakeWH(bitmap.width(), bitmap.height()); |
+ const SkIRect clipBounds = bitmap.bounds(); |
SkAutoTUnref<SkImageFilter::Cache> cache(iter.fDevice->getImageFilterCache()); |
SkImageFilter::Context ctx(matrix, clipBounds, cache.get()); |
if (filter->filterImage(&proxy, bitmap, ctx, &dst, &offset)) { |