diff options
author | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 16:19:28 +0000 |
---|---|---|
committer | commit-bot@chromium.org <commit-bot@chromium.org@2bbb7eff-a529-9590-31e7-b0007b416f81> | 2014-03-21 16:19:28 +0000 |
commit | b659333bf605fd79e8a6dcbaba95b1d1833ab1f4 (patch) | |
tree | 242552e67614f728b922856feb07697386a7803d /src/effects | |
parent | 816b80592c94eab38141c445b90f105477cafc5d (diff) |
Fixed double offset in resize filter
The fix is trivial, simply remove the extra offset
I added another case to the resizeimagefilter gm and made it so that it looks exactly like the one next to it, so that failure is easy to detect visually.
BUG=skia:
R=senorblanco@google.com, senorblanco@chromium.org
Author: sugoi@chromium.org
Review URL: https://codereview.chromium.org/208303002
git-svn-id: http://skia.googlecode.com/svn/trunk@13892 2bbb7eff-a529-9590-31e7-b0007b416f81
Diffstat (limited to 'src/effects')
-rw-r--r-- | src/effects/SkResizeImageFilter.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/effects/SkResizeImageFilter.cpp b/src/effects/SkResizeImageFilter.cpp index 87c30c6e80..7a52c223b4 100644 --- a/src/effects/SkResizeImageFilter.cpp +++ b/src/effects/SkResizeImageFilter.cpp @@ -76,7 +76,7 @@ bool SkResizeImageFilter::onFilterImage(Proxy* proxy, paint.setXfermodeMode(SkXfermode::kSrc_Mode); paint.setFilterLevel(fFilterLevel); - canvas.drawBitmap(src, srcRect.left(), srcRect.top(), &paint); + canvas.drawBitmap(src, 0, 0, &paint); *result = device.get()->accessBitmap(false); offset->fX = dstBounds.fLeft; |