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

Issue 2877033002: Fix cc scrollbar layer issues with initialization, and use element ids throughout. (Closed)

Created:
3 years, 7 months ago by chrishtr
Modified:
3 years, 7 months ago
CC:
cc-bugs_chromium.org, chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Fix cc scrollbar layer issues with initialization, and use element ids throughout. 1. Previously, there was an issue with initialization paths for cc scrollbar layers, which may be created when property trees are in an inconsistent state. Now we never try to update property tree opacity during construction, and also pass correct initial opacities from the pending tree rather than assuming 0.0f. 2. Deleted workaround code to bail out during the condition #1 described above. 3. Removed always_use_active_tree_opacity_effect_ids and corresponding methods on layers, in favor of re-using the existing list of scrollbar animation controllers on LayerTreeHostImpl. It turned out that there was an exact match between the layers put in always_use_active_tree_opacity_effect_ids and scrollbars. This also removes another instance of looking up effect id by node. 4. Start always setting ElementId on scrollbar layers, to support #3 above. To do this, added a new namespace for CompsitorElementId, and also performed some related cleanup along the way. BUG=718564, 702832 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel;master.tryserver.chromium.linux:linux_layout_tests_slimming_paint_v2 Review-Url: https://codereview.chromium.org/2877033002 Cr-Commit-Position: refs/heads/master@{#471564} Committed: https://chromium.googlesource.com/chromium/src/+/f556cef44f474c02e486e7c3e4eec685dc50794c

Patch Set 1 #

Patch Set 2 : none #

Patch Set 3 : none #

Patch Set 4 : none #

Patch Set 5 : none #

Patch Set 6 : none #

Patch Set 7 : none #

Total comments: 11

Patch Set 8 : none #

Unified diffs Side-by-side diffs Delta from patch set Stats (+258 lines, -213 lines) Patch
M cc/blink/web_scrollbar_layer_impl.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M cc/blink/web_scrollbar_layer_impl.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M cc/input/scrollbar_animation_controller.h View 1 2 3 4 chunks +10 lines, -5 lines 0 comments Download
M cc/input/scrollbar_animation_controller.cc View 1 5 chunks +14 lines, -13 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 4 chunks +6 lines, -2 lines 0 comments Download
M cc/layers/layer.h View 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layers/layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 3 4 5 6 1 chunk +0 lines, -12 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 chunks +4 lines, -7 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.h View 1 chunk +0 lines, -1 line 0 comments Download
M cc/layers/solid_color_scrollbar_layer.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 3 chunks +34 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 4 chunks +34 lines, -21 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 2 chunks +2 lines, -5 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 5 chunks +7 lines, -11 lines 0 comments Download
M cc/trees/property_tree.h View 2 chunks +0 lines, -2 lines 0 comments Download
M cc/trees/property_tree.cc View 4 chunks +0 lines, -21 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 2 chunks +0 lines, -13 lines 0 comments Download
M third_party/WebKit/Source/core/animation/Animation.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/core/animation/AnimationTest.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/animation/CompositorAnimations.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/frame/VisualViewport.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/CompositedLayerMapping.cpp View 1 2 3 4 5 6 7 2 chunks +9 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/layout/compositing/PaintLayerCompositor.cpp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollState.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -6 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.h View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/page/scrolling/ScrollingCoordinator.cpp View 1 2 3 4 5 6 7 4 chunks +12 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/core/paint/PaintPropertyTreeBuilder.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorElementId.h View 1 2 3 4 5 6 7 2 chunks +16 lines, -7 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorElementId.cpp View 1 2 3 4 5 6 7 1 chunk +30 lines, -15 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorElementIdTest.cpp View 1 2 3 4 5 6 7 1 chunk +17 lines, -16 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateProvider.cpp View 1 2 3 4 5 6 7 1 chunk +6 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableStateTest.cpp View 1 2 3 4 5 6 7 1 chunk +4 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/web/LinkHighlightImpl.cpp View 1 2 3 4 5 6 7 1 chunk +3 lines, -2 lines 0 comments Download
M third_party/WebKit/Source/web/tests/VisualViewportTest.cpp View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M third_party/WebKit/public/platform/WebScrollbarLayer.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download

Messages

Total messages: 27 (20 generated)
chrishtr
3 years, 7 months ago (2017-05-12 18:49:27 UTC) #12
wkorman
lgtm https://codereview.chromium.org/2877033002/diff/120001/cc/blink/web_scrollbar_layer_impl.h File cc/blink/web_scrollbar_layer_impl.h (right): https://codereview.chromium.org/2877033002/diff/120001/cc/blink/web_scrollbar_layer_impl.h#newcode42 cc/blink/web_scrollbar_layer_impl.h:42: void SetElementId(const cc::ElementId&) override; Is it worth using ...
3 years, 7 months ago (2017-05-12 22:29:39 UTC) #16
chrishtr
https://codereview.chromium.org/2877033002/diff/120001/cc/trees/layer_tree_host_impl.h File cc/trees/layer_tree_host_impl.h (right): https://codereview.chromium.org/2877033002/diff/120001/cc/trees/layer_tree_host_impl.h#newcode329 cc/trees/layer_tree_host_impl.h:329: void RegisterScrollbarAnimationController(ElementId scroll_element_id, On 2017/05/12 at 22:29:38, wkorman wrote: ...
3 years, 7 months ago (2017-05-12 23:44:16 UTC) #19
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/2877033002/140001
3 years, 7 months ago (2017-05-12 23:44:41 UTC) #20
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/293097)
3 years, 7 months ago (2017-05-13 01:29:38 UTC) #22
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/2877033002/140001
3 years, 7 months ago (2017-05-13 03:30:27 UTC) #24
commit-bot: I haz the power
3 years, 7 months ago (2017-05-13 05:31:21 UTC) #27
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/f556cef44f474c02e486e7c3e4ee...

Powered by Google App Engine
This is Rietveld 408576698