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

Issue 1842033005: Image filters: fix crop rect application in SkXfermodeImageFilter. (Closed)

Created:
4 years, 8 months ago by Stephen White
Modified:
4 years, 8 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 crop rect application in SkXfermodeImageFilter. The crop rect was being incorrectly applied in SkXfermodeImageFilter: the background and foreground bounds were having the crop rect applied individually to them, and then unioned. The correct approach is to take the union of their bounds, and apply the crop rect to that. (A similar bug in SkMergeImageFilter was fixed a while back.) This is important when applying a compositing mode which affects pixels outside the foreground bounds (e.g., SrcIn, SrcOut). NOTE: this will change the results of the xfermodeimagefilter GM (new test case). GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1842033005 Committed: https://skia.googlesource.com/skia/+/9db0427423db995618e3bbf6da5dc6d69442436a

Patch Set 1 #

Total comments: 2

Patch Set 2 : Fix formatting. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+19 lines, -15 lines) Patch
M gm/xfermodeimagefilter.cpp View 1 chunk +12 lines, -0 lines 0 comments Download
M src/effects/SkXfermodeImageFilter.cpp View 1 1 chunk +7 lines, -15 lines 0 comments Download

Messages

Total messages: 21 (12 generated)
Stephen White
Rob: PTAL. Thanks!
4 years, 8 months ago (2016-03-31 14:40:27 UTC) #6
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842033005/1 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842033005/1
4 years, 8 months ago (2016-03-31 14:42:03 UTC) #8
robertphillips
lgtm + nit https://codereview.chromium.org/1842033005/diff/1/src/effects/SkXfermodeImageFilter.cpp File src/effects/SkXfermodeImageFilter.cpp (right): https://codereview.chromium.org/1842033005/diff/1/src/effects/SkXfermodeImageFilter.cpp#newcode66 src/effects/SkXfermodeImageFilter.cpp:66: overlength line
4 years, 8 months ago (2016-03-31 14:44:39 UTC) #9
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 14:58:19 UTC) #11
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842033005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842033005/20001
4 years, 8 months ago (2016-03-31 15:06:15 UTC) #13
Stephen White
https://codereview.chromium.org/1842033005/diff/1/src/effects/SkXfermodeImageFilter.cpp File src/effects/SkXfermodeImageFilter.cpp (right): https://codereview.chromium.org/1842033005/diff/1/src/effects/SkXfermodeImageFilter.cpp#newcode66 src/effects/SkXfermodeImageFilter.cpp:66: On 2016/03/31 14:44:39, robertphillips wrote: > overlength line Fixed.
4 years, 8 months ago (2016-03-31 15:18:17 UTC) #14
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 8 months ago (2016-03-31 15:19:27 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1842033005/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1842033005/20001
4 years, 8 months ago (2016-03-31 15:23:41 UTC) #19
commit-bot: I haz the power
4 years, 8 months ago (2016-03-31 15:24:33 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:20001) as
https://skia.googlesource.com/skia/+/9db0427423db995618e3bbf6da5dc6d69442436a

Powered by Google App Engine
This is Rietveld 408576698