|
|
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
Total comments: 11
|
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
|
Total messages: 27 (20 generated)
|