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