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

Issue 1855303002: Replace filter outsets with bounds mapping in Blink. (Closed)

Created:
4 years, 8 months ago by jbroman
Modified:
4 years, 8 months ago
Reviewers:
Stephen White
CC:
blink-reviews, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, blink-reviews-style_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, f(malita), Justin Novosad, kinuko+watch, pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, slimming-paint-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Replace filter outsets with bounds mapping in Blink. This mirrors SkImageFilter::filterBounds, and is more flexible. Also included are some additional unit tests, and changes to layout test baselines: * css3/filters/effect-reference-repaint-offset.html Progression: now only repaints the offset area. * fast/repaint/* Minor: rounding for inexact values is more conservative (blur radius). BUG=600821 Committed: https://crrev.com/42b8b79d8538d508b2d660e3dab12e8d0839bfaf Cr-Commit-Position: refs/heads/master@{#386527}

Patch Set 1 #

Patch Set 2 : #

Patch Set 3 : remove assert #

Patch Set 4 : rebaseline layout tests #

Patch Set 5 : revert ComputedStyle change; add a helper function for mapping LayoutRect to LayoutRect #

Patch Set 6 : fix up unit test #

Patch Set 7 : fix updated baselines #

Patch Set 8 : additional unit tests for FilterOperations::mapRect #

Total comments: 4

Patch Set 9 : senorblanco review comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+180 lines, -131 lines) Patch
M third_party/WebKit/LayoutTests/css3/filters/effect-reference-repaint-offset-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-after-display-expected.txt View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/filter-invalidation-with-composited-container-change-expected.txt View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/filter-repaint-accelerated-child-with-filter-child-expected.txt View 1 2 3 4 5 6 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/LayoutTests/fast/repaint/filter-repaint-accelerated-on-accelerated-filter-expected.txt View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/FrameView.cpp View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/layout/LayoutBox.cpp View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 1 2 3 4 5 6 7 8 2 chunks +11 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 4 5 6 7 8 5 chunks +28 lines, -23 lines 0 comments Download
M third_party/WebKit/Source/platform/geometry/IntRect.h View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperation.h View 1 2 3 4 5 6 7 8 5 chunks +9 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperation.cpp View 1 2 3 4 5 6 7 8 5 chunks +59 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperations.h View 1 2 3 4 5 6 7 8 2 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperations.cpp View 1 2 3 4 5 6 7 8 2 chunks +7 lines, -74 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/FilterOperationsTest.cpp View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -14 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/GeometryPrinters.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M third_party/WebKit/Source/platform/testing/GeometryPrinters.cpp View 1 2 3 4 5 6 7 1 chunk +9 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 17 (7 generated)
jbroman
4 years, 8 months ago (2016-04-06 17:56:56 UTC) #6
Stephen White
Thanks for taking this on! https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h File third_party/WebKit/Source/core/paint/PaintLayer.h (right): https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h#newcode477 third_party/WebKit/Source/core/paint/PaintLayer.h:477: FloatRect mapRectForFilter(const FloatRect&, bool ...
4 years, 8 months ago (2016-04-06 20:44:11 UTC) #7
jbroman
https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h File third_party/WebKit/Source/core/paint/PaintLayer.h (right): https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h#newcode477 third_party/WebKit/Source/core/paint/PaintLayer.h:477: FloatRect mapRectForFilter(const FloatRect&, bool forward = true) const; On ...
4 years, 8 months ago (2016-04-06 21:51:41 UTC) #8
jbroman
On 2016/04/06 at 21:51:41, jbroman wrote: > https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h > File third_party/WebKit/Source/core/paint/PaintLayer.h (right): > > https://codereview.chromium.org/1855303002/diff/160001/third_party/WebKit/Source/core/paint/PaintLayer.h#newcode477 ...
4 years, 8 months ago (2016-04-08 18:22:06 UTC) #9
Stephen White
On 2016/04/08 18:22:06, jbroman wrote: > On 2016/04/06 at 21:51:41, jbroman wrote: > > > ...
4 years, 8 months ago (2016-04-08 22:15:57 UTC) #10
jbroman
On 2016/04/08 at 22:15:57, senorblanco wrote: > On 2016/04/08 18:22:06, jbroman wrote: > > On ...
4 years, 8 months ago (2016-04-11 17:34:36 UTC) #11
Stephen White
On 2016/04/11 17:34:36, jbroman wrote: > On 2016/04/08 at 22:15:57, senorblanco wrote: > > On ...
4 years, 8 months ago (2016-04-11 18:13:16 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1855303002/180001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1855303002/180001
4 years, 8 months ago (2016-04-11 20:23:03 UTC) #14
commit-bot: I haz the power
Committed patchset #9 (id:180001)
4 years, 8 months ago (2016-04-12 00:11:34 UTC) #15
commit-bot: I haz the power
4 years, 8 months ago (2016-04-12 00:12:38 UTC) #17
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/42b8b79d8538d508b2d660e3dab12e8d0839bfaf
Cr-Commit-Position: refs/heads/master@{#386527}

Powered by Google App Engine
This is Rietveld 408576698