Index: src/effects/SkOffsetImageFilter.cpp |
diff --git a/src/effects/SkOffsetImageFilter.cpp b/src/effects/SkOffsetImageFilter.cpp |
index b36ef8a3ed68b703770be01c7593613824571208..6322a5a9b3c80f8e221f2208ea78a230d1be7e87 100644 |
--- a/src/effects/SkOffsetImageFilter.cpp |
+++ b/src/effects/SkOffsetImageFilter.cpp |
@@ -58,7 +58,9 @@ bool SkOffsetImageFilter::onFilterImage(Proxy* proxy, const SkBitmap& source, |
paint.setXfermodeMode(SkXfermode::kSrc_Mode); |
canvas.translate(SkIntToScalar(srcOffset.fX - bounds.fLeft), |
SkIntToScalar(srcOffset.fY - bounds.fTop)); |
- canvas.drawBitmap(src, fOffset.x(), fOffset.y(), &paint); |
+ SkVector vec; |
+ matrix.mapVectors(&vec, &fOffset, 1); |
+ canvas.drawBitmap(src, vec.x(), vec.y(), &paint); |
*result = device->accessBitmap(false); |
offset->fX = bounds.fLeft; |
offset->fY = bounds.fTop; |