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

Issue 1823573003: Change signatures of filter bounds methods to return a rect. (Closed)

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

Description

Change signatures of filter bounds methods to return a rect. Change filterBounds(), onFilterBounds() and onFilterNodeBounds() and computeFastBounds() to return the destination rectangle. There was no code path that could return false, and returning rects by value is ok now. BUG=skia:5094 GOLD_TRYBOT_URL= https://gold.skia.org/search2?unt=true&query=source_type%3Dgm&master=false&issue=1823573003 Committed: https://skia.googlesource.com/skia/+/e5e79840ef38ab1d3f03abcf1b2df66fb9940018

Patch Set 1 #

Patch Set 2 : Update to ToT #

Patch Set 3 : Tweak #

Patch Set 4 : Fix typo #

Patch Set 5 : Fix computeFastBounds() to return by value as well. #

Patch Set 6 : Remove invalid assert #

Patch Set 7 : Hide legacy API behind #ifdef; switch callers to new API #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -215 lines) Patch
M include/core/SkImageFilter.h View 1 2 3 4 5 6 4 chunks +15 lines, -11 lines 2 comments Download
M include/effects/SkBlurImageFilter.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M include/effects/SkComposeImageFilter.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M include/effects/SkDisplacementMapEffect.h View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M include/effects/SkDropShadowImageFilter.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M include/effects/SkImageSource.h View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkMatrixConvolutionImageFilter.h View 1 chunk +1 line, -1 line 0 comments Download
M include/effects/SkMorphologyImageFilter.h View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M include/effects/SkOffsetImageFilter.h View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M include/effects/SkTileImageFilter.h View 1 2 3 4 1 chunk +3 lines, -4 lines 0 comments Download
M src/core/SkCanvas.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M src/core/SkImageFilter.cpp View 1 2 3 4 5 6 6 chunks +33 lines, -49 lines 0 comments Download
M src/core/SkLocalMatrixImageFilter.h View 1 chunk +1 line, -2 lines 0 comments Download
M src/core/SkLocalMatrixImageFilter.cpp View 1 chunk +3 lines, -3 lines 0 comments Download
M src/core/SkMatrixImageFilter.h View 1 2 3 4 2 chunks +2 lines, -3 lines 0 comments Download
M src/core/SkMatrixImageFilter.cpp View 1 2 3 4 1 chunk +10 lines, -14 lines 0 comments Download
M src/core/SkPaint.cpp View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
M src/effects/SkBlurImageFilter.cpp View 1 2 3 4 1 chunk +9 lines, -14 lines 0 comments Download
M src/effects/SkComposeImageFilter.cpp View 1 2 3 4 5 6 3 chunks +6 lines, -12 lines 0 comments Download
M src/effects/SkDisplacementMapEffect.cpp View 1 2 3 4 1 chunk +12 lines, -17 lines 0 comments Download
M src/effects/SkDropShadowImageFilter.cpp View 1 2 3 4 1 chunk +13 lines, -17 lines 0 comments Download
M src/effects/SkImageSource.cpp View 1 2 3 4 1 chunk +2 lines, -2 lines 0 comments Download
M src/effects/SkMatrixConvolutionImageFilter.cpp View 1 2 1 chunk +8 lines, -7 lines 0 comments Download
M src/effects/SkMorphologyImageFilter.cpp View 1 2 3 4 1 chunk +7 lines, -11 lines 0 comments Download
M src/effects/SkOffsetImageFilter.cpp View 1 2 3 4 1 chunk +7 lines, -11 lines 0 comments Download
M src/effects/SkTileImageFilter.cpp View 1 2 3 4 1 chunk +7 lines, -9 lines 0 comments Download
M src/gpu/GrLayerHoister.cpp View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M tests/ImageFilterTest.cpp View 1 2 3 4 5 6 6 chunks +6 lines, -7 lines 0 comments Download

Messages

Total messages: 27 (14 generated)
Stephen White
reed@: PTAL. Thanks!
4 years, 9 months ago (2016-03-21 17:50:25 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/1823573003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823573003/80001
4 years, 9 months ago (2016-03-21 17:50:46 UTC) #8
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot on client.skia (JOB_FAILED, http://build.chromium.org/p/client.skia/builders/Test-Ubuntu-GCC-GCE-CPU-AVX2-x86_64-Debug-Trybot/builds/7220)
4 years, 9 months ago (2016-03-21 17:51:57 UTC) #10
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823573003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823573003/100001
4 years, 9 months ago (2016-03-21 17:55:36 UTC) #12
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 18:06:44 UTC) #14
reed1
I think the only way we've found to actually enforce/fix deprecated callers is to introduce ...
4 years, 9 months ago (2016-03-21 20:20:56 UTC) #16
Stephen White
On 2016/03/21 20:20:56, reed1 wrote: > I think the only way we've found to actually ...
4 years, 9 months ago (2016-03-21 20:31:29 UTC) #17
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823573003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823573003/120001
4 years, 9 months ago (2016-03-21 20:32:40 UTC) #19
reed1
lgtm https://codereview.chromium.org/1823573003/diff/120001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1823573003/diff/120001/include/core/SkImageFilter.h#newcode255 include/core/SkImageFilter.h:255: virtual SkRect computeFastBounds(const SkRect&) const; hope nobody in ...
4 years, 9 months ago (2016-03-21 20:44:32 UTC) #20
Stephen White
https://codereview.chromium.org/1823573003/diff/120001/include/core/SkImageFilter.h File include/core/SkImageFilter.h (right): https://codereview.chromium.org/1823573003/diff/120001/include/core/SkImageFilter.h#newcode255 include/core/SkImageFilter.h:255: virtual SkRect computeFastBounds(const SkRect&) const; On 2016/03/21 20:44:32, reed1 ...
4 years, 9 months ago (2016-03-21 20:47:03 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 9 months ago (2016-03-21 20:47:51 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1823573003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1823573003/120001
4 years, 9 months ago (2016-03-21 21:50:52 UTC) #25
commit-bot: I haz the power
4 years, 9 months ago (2016-03-21 21:52:15 UTC) #27
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://skia.googlesource.com/skia/+/e5e79840ef38ab1d3f03abcf1b2df66fb9940018

Powered by Google App Engine
This is Rietveld 408576698