Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(349)

Issue 1637443003: Image filters: fix srcOffset handling in asFragmentProcessor() path. (Closed)

Created:
4 years, 11 months ago by Stephen White
Modified:
4 years, 11 months ago
Reviewers:
robertphillips
CC:
reviews_skia.org
Base URL:
https://skia.googlesource.com/skia.git@master
Target Ref:
refs/heads/master
Project:
skia
Visibility:
Public.

Description

Image filters: fix srcOffset handling in asFragmentProcessor() path. Filters such as SkMatrixConvolutionImageFilter which use the asFragmentProcessor() path were not correctly handling srcOffset. It is correctly applied to the bounds, but the srcRect and dstRect were computed from the pre-offset bounds. The fix is to move them to just above where they're used in drawing. Note: this change adds a new test case to the imagefiltersgraph GM, so it will have to be rebaselined post-landing. BUG=skia:4855 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1637443003 Committed: https://skia.googlesource.com/skia/+/eae84c2e0e2126374cd488a1c8a3e18169145635

Patch Set 1 #

Patch Set 2 : Windows fix #

Patch Set 3 : Update to ToT #

Unified diffs Side-by-side diffs Delta from patch set Stats (+39 lines, -6 lines) Patch
M gm/imagefiltersgraph.cpp View 1 3 chunks +36 lines, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 3 chunks +3 lines, -5 lines 0 comments Download

Messages

Total messages: 21 (11 generated)
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637443003/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637443003/1
4 years, 11 months ago (2016-01-25 23:04:44 UTC) #3
Stephen White
Rob: PTAL. Thanks!
4 years, 11 months ago (2016-01-25 23:06:13 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Build-Win-MSVC-x86-Debug-Trybot on client.skia.compile (JOB_FAILED, http://build.chromium.org/p/client.skia.compile/builders/Build-Win-MSVC-x86-Debug-Trybot/builds/5618)
4 years, 11 months ago (2016-01-25 23:07:38 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637443003/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637443003/20001
4 years, 11 months ago (2016-01-25 23:10:10 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-25 23:27:23 UTC) #12
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637443003/40001
4 years, 11 months ago (2016-01-26 14:57:44 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-26 15:09:29 UTC) #16
robertphillips
lgtm
4 years, 11 months ago (2016-01-26 16:37:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1637443003/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1637443003/40001
4 years, 11 months ago (2016-01-26 16:40:17 UTC) #19
commit-bot: I haz the power
4 years, 11 months ago (2016-01-26 16:41:05 UTC) #21
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/eae84c2e0e2126374cd488a1c8a3e18169145635

Powered by Google App Engine
This is Rietveld 408576698