Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index 4674ff44abaab59d1bd8193182bc02816c9bc6cf..beb1de211c242684fd949bb0064ce20b764138a1 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -88,8 +88,8 @@ bool SkXfermodeImageFilter::onFilterImage(Proxy* proxy, |
paint.setColor(SK_ColorTRANSPARENT); |
canvas.drawPaint(paint); |
*dst = device->accessBitmap(false); |
- offset->fX += bounds.left(); |
- offset->fY += bounds.top(); |
+ offset->fX = bounds.left(); |
+ offset->fY = bounds.top(); |
return true; |
} |
@@ -157,8 +157,8 @@ bool SkXfermodeImageFilter::filterImageGPU(Proxy* proxy, |
foregroundPaint.addColorTextureEffect(foregroundTex, foregroundMatrix); |
context->drawRect(foregroundPaint, srcRect); |
} |
- offset->fX += backgroundOffset.fX; |
- offset->fY += backgroundOffset.fY; |
+ offset->fX = backgroundOffset.fX; |
+ offset->fY = backgroundOffset.fY; |
return SkImageFilterUtils::WrapTexture(dst, src.width(), src.height(), result); |
} |