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

Issue 2816063003: Replace layer id with Element id for tracking scrollbar animation controllers (Closed)

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

Description

Replace layer id with Element id for tracking scrollbar animation controllers This patch tracks scrollbar animation controllers with ElementIds instead of layer ids. This requires tracking the scrolling element id in scrollbar layers in addition to the scrolling layer id. A future patch will remove scrolling_layer_id from ScrollbarLayerInterface. This patch get us closer to removing scroll_node's owning_layer_id by removing 3 callers of owning_layer_id (in LayerTreeHostImpl) and 2 callers of LayerIdByElementId (in LayerTreeImpl). BUG=693740 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/2816063003 Cr-Commit-Position: refs/heads/master@{#465480} Committed: https://chromium.googlesource.com/chromium/src/+/faf2ee225610f256279fe77bf1413bb512dec3c2

Patch Set 1 #

Patch Set 2 : Remove debugging stmts #

Patch Set 3 : Fix flaky LayerTreeHostImplTestScrollbarOpacity.Android #

Total comments: 8

Patch Set 4 : Address reviewer comments & fix ScrollbarVisibilityChangeCausesRedrawAndCommit #

Total comments: 5

Patch Set 5 : Update element_id comment, some cleanups per reviewer comments #

Total comments: 1

Patch Set 6 : Address reviewer comments, pull element_id.h change to another patch #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+296 lines, -199 lines) Patch
M cc/blink/web_scrollbar_layer_impl.cc View 1 2 4 chunks +10 lines, -5 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 2 chunks +6 lines, -3 lines 0 comments Download
M cc/input/single_scrollbar_animation_controller_thinning_unittest.cc View 1 2 1 chunk +2 lines, -1 line 0 comments Download
M cc/layers/layer.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 4 5 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 2 chunks +4 lines, -1 line 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.h View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M cc/layers/painted_overlay_scrollbar_layer.cc View 1 2 3 4 3 chunks +14 lines, -9 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.h View 1 2 3 4 3 chunks +8 lines, -4 lines 0 comments Download
M cc/layers/painted_scrollbar_layer.cc View 1 2 3 4 3 chunks +13 lines, -9 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 1 2 3 2 chunks +3 lines, -1 line 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 3 1 chunk +7 lines, -3 lines 1 comment Download
M cc/layers/scrollbar_layer_interface.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 17 chunks +35 lines, -22 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.h View 1 2 3 4 4 chunks +10 lines, -5 lines 0 comments Download
M cc/layers/solid_color_scrollbar_layer.cc View 1 2 3 4 5 chunks +20 lines, -11 lines 0 comments Download
M cc/test/fake_painted_scrollbar_layer.h View 1 2 3 2 chunks +6 lines, -3 lines 0 comments Download
M cc/test/fake_painted_scrollbar_layer.cc View 1 2 2 chunks +11 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 1 chunk +4 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 2 3 4 5 3 chunks +11 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 10 chunks +39 lines, -35 lines 0 comments Download
M cc/trees/layer_tree_host_impl_unittest.cc View 1 2 3 4 5 17 chunks +50 lines, -38 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 2 chunks +3 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_context.cc View 1 2 3 2 chunks +4 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_damage.cc View 1 2 3 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 5 chunks +15 lines, -13 lines 0 comments Download

Messages

Total messages: 47 (31 generated)
pdr.
3 years, 8 months ago (2017-04-14 02:16:48 UTC) #20
pdr.
3 years, 8 months ago (2017-04-14 02:16:52 UTC) #21
wkorman
lgtm https://codereview.chromium.org/2816063003/diff/40001/cc/input/scrollbar_animation_controller_unittest.cc File cc/input/scrollbar_animation_controller_unittest.cc (right): https://codereview.chromium.org/2816063003/diff/40001/cc/input/scrollbar_animation_controller_unittest.cc#newcode108 cc/input/scrollbar_animation_controller_unittest.cc:108: v_scrollbar_layer_->SetScrollInfo(scroll_layer_ptr->id(), Wondered whether we would be best off ...
3 years, 8 months ago (2017-04-14 18:17:30 UTC) #24
pdr.
https://codereview.chromium.org/2816063003/diff/40001/cc/layers/painted_scrollbar_layer.h File cc/layers/painted_scrollbar_layer.h (right): https://codereview.chromium.org/2816063003/diff/40001/cc/layers/painted_scrollbar_layer.h#newcode26 cc/layers/painted_scrollbar_layer.h:26: ElementId element_id); On 2017/04/14 at 18:17:30, wkorman wrote: > ...
3 years, 8 months ago (2017-04-15 06:02:00 UTC) #29
wkorman
https://codereview.chromium.org/2816063003/diff/40001/cc/layers/scrollbar_layer_interface.h File cc/layers/scrollbar_layer_interface.h (right): https://codereview.chromium.org/2816063003/diff/40001/cc/layers/scrollbar_layer_interface.h#newcode17 cc/layers/scrollbar_layer_interface.h:17: virtual ElementId ScrollElementId() const = 0; On 2017/04/15 06:02:00, ...
3 years, 8 months ago (2017-04-17 17:53:36 UTC) #30
pdr.
+enne for review. Here's a sneak peak at two followups that are based on this ...
3 years, 8 months ago (2017-04-17 19:05:05 UTC) #32
enne (OOO)
This seems pretty straightforward, even if it's a ton of plumbing. https://codereview.chromium.org/2816063003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): ...
3 years, 8 months ago (2017-04-18 00:47:57 UTC) #33
pdr.
https://codereview.chromium.org/2816063003/diff/60001/cc/layers/layer.cc File cc/layers/layer.cc (right): https://codereview.chromium.org/2816063003/diff/60001/cc/layers/layer.cc#newcode1132 cc/layers/layer.cc:1132: layer->SetElementId(inputs_.element_id); On 2017/04/18 at 00:47:57, enne wrote: > On ...
3 years, 8 months ago (2017-04-18 04:34:11 UTC) #34
enne (OOO)
On 2017/04/18 at 04:34:11, pdr wrote: > I looked around and I don't think element ...
3 years, 8 months ago (2017-04-18 17:42:11 UTC) #35
pdr.
https://codereview.chromium.org/2816063003/diff/80001/cc/trees/element_id.h File cc/trees/element_id.h (right): https://codereview.chromium.org/2816063003/diff/80001/cc/trees/element_id.h#newcode26 cc/trees/element_id.h:26: I've split out the update to this comment in ...
3 years, 8 months ago (2017-04-18 18:26:49 UTC) #36
pdr.
I've added a small comment to the SetElementId functions pointing to the new class comment ...
3 years, 8 months ago (2017-04-18 22:28:42 UTC) #37
pdr.
3 years, 8 months ago (2017-04-18 22:29:09 UTC) #39
enne (OOO)
lgtm
3 years, 8 months ago (2017-04-18 22:29:46 UTC) #40
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/2816063003/100001
3 years, 8 months ago (2017-04-19 01:36:58 UTC) #43
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/faf2ee225610f256279fe77bf1413bb512dec3c2
3 years, 8 months ago (2017-04-19 03:11:20 UTC) #46
pdr.
3 years, 8 months ago (2017-04-20 02:53:42 UTC) #47
Message was sent while issue was closed.
https://codereview.chromium.org/2816063003/diff/100001/cc/layers/scrollbar_la...
File cc/layers/scrollbar_layer_impl_base.cc (right):

https://codereview.chromium.org/2816063003/diff/100001/cc/layers/scrollbar_la...
cc/layers/scrollbar_layer_impl_base.cc:50: scroll_element_id ==
scroll_element_id)
Oops, "scroll_element_id == scroll_element_id" instead of "scroll_element_id_ ==
scroll_element_id". Fixing in followup:
https://codereview.chromium.org/2827163005

Powered by Google App Engine
This is Rietveld 408576698