aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/effects
diff options
context:
space:
mode:
authorGravatar Robert Phillips <robertphillips@google.com>2018-04-10 17:50:44 -0400
committerGravatar Skia Commit-Bot <skia-commit-bot@chromium.org>2018-04-11 13:44:56 +0000
commitdcf1fb482be4a80f62fa29526f917a4aec0d8d08 (patch)
treeecb0ddb2c1bd4610f36aebd2e5a3cfd7a06ae3bc /src/effects
parent044b67d6c7acbbcc6686583eb4594b9484448011 (diff)
Fix alpha threshold image filter GPU implementation
BUG=skia:7760 Change-Id: I674d705ce637c405361ecf45ea8604d1606f7af7 Reviewed-on: https://skia-review.googlesource.com/120203 Reviewed-by: Greg Daniel <egdaniel@google.com> Commit-Queue: Robert Phillips <robertphillips@google.com>
Diffstat (limited to 'src/effects')
-rw-r--r--src/effects/SkAlphaThresholdFilter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkAlphaThresholdFilter.cpp b/src/effects/SkAlphaThresholdFilter.cpp
index 488429b37a..f09ec50b67 100644
--- a/src/effects/SkAlphaThresholdFilter.cpp
+++ b/src/effects/SkAlphaThresholdFilter.cpp
@@ -167,7 +167,7 @@ sk_sp<SkSpecialImage> SkAlphaThresholdFilterImpl::onFilterImage(SkSpecialImage*
bounds.offset(-inputOffset);
SkMatrix matrix(ctx.ctm());
- matrix.postTranslate(SkIntToScalar(-bounds.left()), SkIntToScalar(-bounds.top()));
+ matrix.postTranslate(SkIntToScalar(-offset->fX), SkIntToScalar(-offset->fY));
sk_sp<GrTextureProxy> maskProxy(this->createMaskTexture(context, matrix, bounds));
if (!maskProxy) {