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

Issue 2335253002: Push CompositorFilterOperations creation out of GraphicsLayer (Closed)

Created:
4 years, 3 months ago by fs
Modified:
4 years, 3 months ago
Reviewers:
chrishtr, Stephen White
CC:
ajuma+watch_chromium.org, darktears, blink-layers+watch_chromium.org, blink-reviews, blink-reviews-animation_chromium.org, blink-reviews-layout_chromium.org, blink-reviews-paint_chromium.org, blink-reviews-platform-graphics_chromium.org, Rik, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, eae+blinkwatch, Eric Willigers, f(malita), jbroman, jchaffraix+rendering, Justin Novosad, leviw+renderwatch, pdr+renderingwatchlist_chromium.org, pdr+graphicswatchlist_chromium.org, rjwright, rwlbuis, Stephen Chennney, shans, slimming-paint-reviews_chromium.org, szager+layoutwatch_chromium.org, zoltan1
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Push CompositorFilterOperations creation out of GraphicsLayer Push knowledge of FilterOperations out of GraphicsLayer and into PaintLayer. This eliminates one dependency from platform/ code to the FilterOperations structure. The motivation is to try and make FilterOperation(s) a core (style) type, to make interaction with the style system and other parts of core easier. It will also aid in enabling a more layered structure on the various filter-related data structures. Also change the various generator functions to return a CompositorFilterOperations by-value rather than through a out-variable. BUG=439970 CQ_INCLUDE_TRYBOTS=master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Committed: https://crrev.com/770c5f8e60b3a60fef60a2b815b0ac761574c46c Cr-Commit-Position: refs/heads/master@{#419029}

Patch Set 1 #

Patch Set 2 : Fix unit-test compilation #

Patch Set 3 : Fix updateFilterEffectBuilder #

Patch Set 4 : The right FilterOperations #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+55 lines, -56 lines) Patch
M third_party/WebKit/Source/core/animation/CompositorAnimations.cpp View 1 2 3 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 2 chunks +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/paint/FilterPainter.cpp View 1 chunk +1 line, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.h View 4 chunks +4 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintLayer.cpp View 1 2 3 3 chunks +12 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/AnimationTranslationUtil.h View 1 chunk +1 line, -1 line 0 comments Download
M third_party/WebKit/Source/platform/animation/AnimationTranslationUtil.cpp View 2 chunks +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/animation/AnimationTranslationUtilTest.cpp View 1 1 chunk +2 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.h View 3 chunks +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/GraphicsLayer.cpp View 2 chunks +4 lines, -9 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h View 1 chunk +1 line, -4 lines 2 comments Download
M third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.cpp View 6 chunks +16 lines, -14 lines 0 comments Download

Messages

Total messages: 30 (21 generated)
fs
4 years, 3 months ago (2016-09-14 13:38:20 UTC) #19
fs
On 2016/09/14 at 13:38:20, fs wrote: > Ping.
4 years, 3 months ago (2016-09-15 20:20:12 UTC) #21
chrishtr
looking, sorry for the delay.
4 years, 3 months ago (2016-09-15 20:20:36 UTC) #22
chrishtr
lgtm
4 years, 3 months ago (2016-09-15 20:30:00 UTC) #24
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/2335253002/60001
4 years, 3 months ago (2016-09-15 20:30:24 UTC) #25
commit-bot: I haz the power
Committed patchset #4 (id:60001)
4 years, 3 months ago (2016-09-15 23:09:02 UTC) #26
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/770c5f8e60b3a60fef60a2b815b0ac761574c46c Cr-Commit-Position: refs/heads/master@{#419029}
4 years, 3 months ago (2016-09-15 23:11:41 UTC) #28
Stephen White
Post-landing LGTM. https://codereview.chromium.org/2335253002/diff/60001/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h File third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h (right): https://codereview.chromium.org/2335253002/diff/60001/third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h#newcode46 third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h:46: PLATFORM_EXPORT CompositorFilterOperations buildFilterOperations(const FilterOperations&); Does this mean ...
4 years, 3 months ago (2016-09-16 14:05:59 UTC) #29
fs
4 years, 3 months ago (2016-09-16 14:54:38 UTC) #30
Message was sent while issue was closed.
https://codereview.chromium.org/2335253002/diff/60001/third_party/WebKit/Sour...
File
third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h
(right):

https://codereview.chromium.org/2335253002/diff/60001/third_party/WebKit/Sour...
third_party/WebKit/Source/platform/graphics/filters/SkiaImageFilterBuilder.h:46:
PLATFORM_EXPORT CompositorFilterOperations buildFilterOperations(const
FilterOperations&);
On 2016/09/16 at 14:05:59, Stephen White wrote:
> Does this mean we'll be incurring the copy constructor of
CompositorFilterOperations, and transitively, cc::FilterOperations and
std::vector<FilterOperation>? The only move constructor for cc::FilterOperations
I could find takes a std::vector<FilterOperation>&&, not a
cc::FilterOperations&&, but maybe I'm reading things incorrectly.

I could be wrong, but I think this would RVO. Empirical testing (==reading the
generated code) suggests there's no undue copying going on (that didn't go on
before this CL.)

Powered by Google App Engine
This is Rietveld 408576698