Index: src/effects/SkColorFilterImageFilter.cpp |
diff --git a/src/effects/SkColorFilterImageFilter.cpp b/src/effects/SkColorFilterImageFilter.cpp |
index acdb6ab7a720db08e9f3ed37f22ee43cb55f2ef8..8d394aa17b42b882ee79f7d92218342d84769692 100644 |
--- a/src/effects/SkColorFilterImageFilter.cpp |
+++ b/src/effects/SkColorFilterImageFilter.cpp |
@@ -79,7 +79,8 @@ bool SkColorFilterImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& sourc |
paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
paint.setColorFilter(fColorFilter); |
- canvas.drawSprite(src, srcOffset.fX - bounds.fLeft, srcOffset.fY - bounds.fTop, &paint); |
+ canvas.drawBitmap(src, SkIntToScalar(srcOffset.fX - bounds.fLeft), |
+ SkIntToScalar(srcOffset.fY - bounds.fTop), &paint); |
*result = device.get()->accessBitmap(false); |
offset->fX = bounds.fLeft; |