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

Issue 1813373002: Make SkComposeImageFilter::onFilterImage filter the bounds given to the inner filter. (Closed)

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

Description

Make SkComposeImageFilter::onFilterImage filter the bounds given to the inner filter. Previously, the bounds requested by the caller would be passed to both the inner and outer filter, but since the outer filter may move pixels, this is not necessarily sufficient to supply the pixels required by the outer filter to fill the bounds. Unit test included. GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1813373002 Committed: https://skia.googlesource.com/skia/+/17a652017a0243c57c954662e08a7976b9990fee

Patch Set 1 #

Total comments: 4

Patch Set 2 : reed review comments #

Total comments: 4

Patch Set 3 : skip innerClipBounds initialization per senorblanco #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M src/effects/SkComposeImageFilter.cpp View 1 2 1 chunk +7 lines, -1 line 0 comments Download
M tests/ImageFilterTest.cpp View 1 1 chunk +45 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (7 generated)
jbroman
Ran into this while working on Blink.
4 years, 9 months ago (2016-03-19 05:03:09 UTC) #4
reed1
https://codereview.chromium.org/1813373002/diff/1/tests/ImageFilterTest.cpp File tests/ImageFilterTest.cpp (right): https://codereview.chromium.org/1813373002/diff/1/tests/ImageFilterTest.cpp#newcode1375 tests/ImageFilterTest.cpp:1375: // The bounds passed to the inner filter must ...
4 years, 9 months ago (2016-03-19 14:28:49 UTC) #6
jbroman
https://codereview.chromium.org/1813373002/diff/1/tests/ImageFilterTest.cpp File tests/ImageFilterTest.cpp (right): https://codereview.chromium.org/1813373002/diff/1/tests/ImageFilterTest.cpp#newcode1375 tests/ImageFilterTest.cpp:1375: // The bounds passed to the inner filter must ...
4 years, 9 months ago (2016-03-20 01:12:12 UTC) #7
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813373002/20001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813373002/20001
4 years, 9 months ago (2016-03-21 14:37:05 UTC) #9
commit-bot: I haz the power
Note for Reviewers: The CQ is waiting for an approval. If you believe that the ...
4 years, 9 months ago (2016-03-21 14:37:06 UTC) #10
Stephen White
Good catch! https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp File src/effects/SkComposeImageFilter.cpp (right): https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp#newcode29 src/effects/SkComposeImageFilter.cpp:29: SkIRect innerClipBounds = ctx.clipBounds(); I wouldn't bother ...
4 years, 9 months ago (2016-03-21 15:09:18 UTC) #11
jbroman
https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp File src/effects/SkComposeImageFilter.cpp (right): https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp#newcode29 src/effects/SkComposeImageFilter.cpp:29: SkIRect innerClipBounds = ctx.clipBounds(); On 2016/03/21 at 15:09:18, Stephen ...
4 years, 9 months ago (2016-03-21 15:13:11 UTC) #12
Stephen White
https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp File src/effects/SkComposeImageFilter.cpp (right): https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp#newcode29 src/effects/SkComposeImageFilter.cpp:29: SkIRect innerClipBounds = ctx.clipBounds(); On 2016/03/21 15:13:11, jbroman wrote: ...
4 years, 9 months ago (2016-03-21 15:18:58 UTC) #13
jbroman
https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp File src/effects/SkComposeImageFilter.cpp (right): https://codereview.chromium.org/1813373002/diff/20001/src/effects/SkComposeImageFilter.cpp#newcode29 src/effects/SkComposeImageFilter.cpp:29: SkIRect innerClipBounds = ctx.clipBounds(); On 2016/03/21 at 15:18:58, Stephen ...
4 years, 9 months ago (2016-03-21 15:22:29 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1813373002/40001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1813373002/40001
4 years, 9 months ago (2016-03-21 15:22:34 UTC) #16
Stephen White
LGTM
4 years, 9 months ago (2016-03-21 15:23:30 UTC) #17
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 15:39:01 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://skia.googlesource.com/skia/+/17a652017a0243c57c954662e08a7976b9990fee

Powered by Google App Engine
This is Rietveld 408576698