Index: src/effects/SkXfermodeImageFilter.cpp |
diff --git a/src/effects/SkXfermodeImageFilter.cpp b/src/effects/SkXfermodeImageFilter.cpp |
index c939a4a5e96fb279e86a339812df78b41796f5be..8721dd756eee0ffbf0bbacc28bc66970db6f1d61 100644 |
--- a/src/effects/SkXfermodeImageFilter.cpp |
+++ b/src/effects/SkXfermodeImageFilter.cpp |
@@ -185,8 +185,8 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::filterImageGPU(SkSpecialImage* sour |
if (backgroundTex) { |
SkMatrix backgroundMatrix; |
backgroundMatrix.setIDiv(backgroundTex->width(), backgroundTex->height()); |
- backgroundMatrix.preTranslate(SkIntToScalar(-backgroundOffset.fX), |
- SkIntToScalar(-backgroundOffset.fY)); |
+ backgroundMatrix.preTranslate(-SkIntToScalar(backgroundOffset.fX), |
+ -SkIntToScalar(backgroundOffset.fY)); |
bgFP = GrTextureDomainEffect::Make( |
backgroundTex.get(), nullptr, backgroundMatrix, |
GrTextureDomain::MakeTexelDomain(backgroundTex.get(), |
@@ -201,8 +201,8 @@ sk_sp<SkSpecialImage> SkXfermodeImageFilter::filterImageGPU(SkSpecialImage* sour |
if (foregroundTex) { |
SkMatrix foregroundMatrix; |
foregroundMatrix.setIDiv(foregroundTex->width(), foregroundTex->height()); |
- foregroundMatrix.preTranslate(SkIntToScalar(-foregroundOffset.fX), |
- SkIntToScalar(-foregroundOffset.fY)); |
+ foregroundMatrix.preTranslate(-SkIntToScalar(foregroundOffset.fX), |
+ -SkIntToScalar(foregroundOffset.fY)); |
sk_sp<GrFragmentProcessor> foregroundFP; |