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

Issue 2343173002: Let clients of FilterEffectBuilder compute/provide the reference-box (Closed)

Created:
4 years, 3 months ago by fs
Modified:
4 years, 3 months ago
Reviewers:
chrishtr, Stephen White
CC:
ajuma+watch-canvas_chromium.org, blink-reviews, blink-reviews-paint_chromium.org, Rik, chromium-reviews, dshwang, haraken, Justin Novosad, slimming-paint-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Let clients of FilterEffectBuilder compute/provide the reference-box Rather than having code to compute the reference box for the various clients that use FilterEffectBuilder in the class itself, let clients compute the desired reference box themselves and pass it along. This separates concerns, and makes code for computing the reference box less defensive. It also eliminates the need to add even more cases in the future (like for SVG shorthand support.) Also push calls to resolveReferenceFilters() in PaintLayer closer to the filter-building calls, and rename computeFilterOperations to addReflectionToFilterOperations. This allows us to eliminate a redundant call to resolveReferenceFilters() in the mapRectForFilter() code-path. BUG=439970 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/0dc62d2553f96900e50d4f43154435b601c281b6 Cr-Commit-Position: refs/heads/master@{#419290}

Patch Set 1 #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+48 lines, -41 lines) Patch
M third_party/WebKit/Source/core/paint/FilterEffectBuilder.h View 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FilterEffectBuilder.cpp View 6 chunks +5 lines, -18 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 2 chunks +2 lines, -1 line 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 4 chunks +37 lines, -18 lines 3 comments Download
M third_party/WebKit/Source/modules/canvas2d/CanvasRenderingContext2DState.cpp View 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 15 (8 generated)
fs
4 years, 3 months ago (2016-09-16 18:35:11 UTC) #5
Stephen White
I like this direction. Just one question. https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2823 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2823: FilterOperations filterOperations ...
4 years, 3 months ago (2016-09-16 19:14:23 UTC) #6
Stephen White
LGTM https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2823 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2823: FilterOperations filterOperations = addReflectionToFilterOperations(layoutObject()->styleRef()); On 2016/09/16 19:14:23, Stephen ...
4 years, 3 months ago (2016-09-16 19:16:54 UTC) #7
fs
https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp File third_party/WebKit/Source/core/paint/PaintLayer.cpp (right): https://codereview.chromium.org/2343173002/diff/1/third_party/WebKit/Source/core/paint/PaintLayer.cpp#newcode2823 third_party/WebKit/Source/core/paint/PaintLayer.cpp:2823: FilterOperations filterOperations = addReflectionToFilterOperations(layoutObject()->styleRef()); On 2016/09/16 at 19:14:23, Stephen ...
4 years, 3 months ago (2016-09-16 19:20:37 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2343173002/1
4 years, 3 months ago (2016-09-16 21:56:26 UTC) #12
commit-bot: I haz the power
Committed patchset #1 (id:1)
4 years, 3 months ago (2016-09-16 22:04:07 UTC) #13
commit-bot: I haz the power
4 years, 3 months ago (2016-09-16 22:06:32 UTC) #15
Message was sent while issue was closed.
Patchset 1 (id:??) landed as
https://crrev.com/0dc62d2553f96900e50d4f43154435b601c281b6
Cr-Commit-Position: refs/heads/master@{#419290}

Powered by Google App Engine
This is Rietveld 408576698