Index: src/core/SkCanvas.cpp |
diff --git a/src/core/SkCanvas.cpp b/src/core/SkCanvas.cpp |
index 1ca9312ce166784a3b2f645785058f07da8bb922..c16ac9a09f0f9437841aadf95652074b93fa709f 100644 |
--- a/src/core/SkCanvas.cpp |
+++ b/src/core/SkCanvas.cpp |
@@ -1256,7 +1256,7 @@ void SkCanvas::internalDrawDevice(SkBaseDevice* srcDev, int x, int y, |
SkIPoint offset = SkIPoint::Make(0, 0); |
const SkBitmap& src = srcDev->accessBitmap(false); |
SkMatrix matrix = *iter.fMatrix; |
- matrix.postTranslate(SkIntToScalar(-x), SkIntToScalar(-y)); |
+ matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); |
SkIRect clipBounds = SkIRect::MakeWH(srcDev->width(), srcDev->height()); |
SkImageFilter::Context ctx(matrix, clipBounds); |
if (filter->filterImage(&proxy, src, ctx, &dst, &offset)) { |
@@ -1296,7 +1296,7 @@ void SkCanvas::drawSprite(const SkBitmap& bitmap, int x, int y, |
SkBitmap dst; |
SkIPoint offset = SkIPoint::Make(0, 0); |
SkMatrix matrix = *iter.fMatrix; |
- matrix.postTranslate(SkIntToScalar(-x), SkIntToScalar(-y)); |
+ matrix.postTranslate(SkIntToScalar(-pos.x()), SkIntToScalar(-pos.y())); |
SkIRect clipBounds = SkIRect::MakeWH(bitmap.width(), bitmap.height()); |
SkImageFilter::Context ctx(matrix, clipBounds); |
if (filter->filterImage(&proxy, bitmap, ctx, &dst, &offset)) { |