aboutsummaryrefslogtreecommitdiffhomepage
path: root/gm
diff options
context:
space:
mode:
authorGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-21 15:59:26 +0000
committerGravatar commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81>2013-10-21 15:59:26 +0000
commitf642f8cf90c8fd4111094026a1a9e9fdc92be9c3 (patch)
tree26e554619ac9f0ca82769e0bc193584777f23878 /gm
parent718f5e2b7c79bb0676119623ebc6d69bb10bba39 (diff)
Magnifier gpu path fix
The y axis was inverted for the offset, which should have been computed on the other side of the magnifying rectangle. BUG= R=bsalomon@google.com, senorblanco@google.com, senorblanco@chromium.org Author: sugoi@chromium.org Review URL: https://codereview.chromium.org/28273005 git-svn-id: http://skia.googlecode.com/svn/trunk@11883 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'gm')
-rw-r--r--gm/imagemagnifier.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/gm/imagemagnifier.cpp b/gm/imagemagnifier.cpp
index f073e3305a..ae639d3b53 100644
--- a/gm/imagemagnifier.cpp
+++ b/gm/imagemagnifier.cpp
@@ -38,7 +38,7 @@ protected:
SkPaint paint;
paint.setImageFilter(
new SkMagnifierImageFilter(
- SkRect::MakeXYWH(SkIntToScalar(125), SkIntToScalar(125),
+ SkRect::MakeXYWH(SkIntToScalar(100), SkIntToScalar(100),
SkIntToScalar(WIDTH / 2),
SkIntToScalar(HEIGHT / 2)),
100))->unref();