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

Issue 2762123004: cc: LayerTreeHostImpl uses element id to tick animations (Closed)

Created:
3 years, 9 months ago by weiliangc
Modified:
3 years, 8 months ago
Reviewers:
pdr, ajuma, pdr., wkorman
CC:
ajuma+watch_chromium.org, blink-reviews, blink-reviews-platform-graphics_chromium.org, Rik, cc-bugs_chromium.org, chaopeng, chromium-reviews, danakj+watch_chromium.org, dshwang, drott+blinkwatch_chromium.org, krit, fmalita+watch_chromium.org, jbroman, Justin Novosad, kinuko+watch, pdr., pdr+graphicswatchlist_chromium.org, rwlbuis, Stephen Chennney, wkorman
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: LayerTreeHostImpl uses element id to tick animations Remove converting to layer id when animation is ticked with element id on LayerTreeHostImpl. Also avoids passing in LayerTreeImpl pointer to property trees. Opacity animation on scrollbar still uses layer id, this is due to scrollbars aren't guaranteed with element id. Work is needed in crbug.com/702832 to address this. BUG=702774 R=ajuma CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2762123004 Cr-Commit-Position: refs/heads/master@{#460423} Committed: https://chromium.googlesource.com/chromium/src/+/ea09f3374e3fc4f7669390b1203b1354c3a9cd0e

Patch Set 1 #

Patch Set 2 : remove accidental debug print #

Total comments: 4

Patch Set 3 : fix unittest failures #

Patch Set 4 : rename and scrollbarlayerimplbase fixed #

Patch Set 5 : rebase #

Total comments: 7

Patch Set 6 : review comments #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -282 lines) Patch
M cc/input/scrollbar_animation_controller.cc View 1 2 3 4 1 chunk +1 line, -16 lines 0 comments Download
M cc/input/scrollbar_animation_controller_unittest.cc View 1 2 3 4 3 chunks +4 lines, -20 lines 0 comments Download
M cc/layers/layer_impl_unittest.cc View 1 2 3 4 4 chunks +22 lines, -40 lines 0 comments Download
M cc/layers/render_surface_unittest.cc View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.h View 1 chunk +4 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_impl_base.cc View 1 2 3 2 chunks +32 lines, -0 lines 0 comments Download
M cc/layers/scrollbar_layer_unittest.cc View 1 2 3 4 1 chunk +4 lines, -4 lines 0 comments Download
M cc/tiles/tile_manager_unittest.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M cc/trees/damage_tracker_unittest.cc View 1 2 3 4 12 chunks +15 lines, -22 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 7 chunks +17 lines, -22 lines 0 comments Download
M cc/trees/layer_tree_host_impl.h View 1 chunk +0 lines, -9 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 4 chunks +15 lines, -58 lines 1 comment Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 10 chunks +17 lines, -24 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_picture.cc View 1 2 3 2 chunks +4 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 1 chunk +7 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 1 chunk +28 lines, -8 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 4 2 chunks +4 lines, -7 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 4 2 chunks +18 lines, -24 lines 0 comments Download
M third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp View 1 2 3 2 chunks +4 lines, -9 lines 0 comments Download

Messages

Total messages: 35 (22 generated)
weiliangc
3 years, 9 months ago (2017-03-21 21:20:01 UTC) #4
ajuma
https://codereview.chromium.org/2762123004/diff/20001/cc/layers/scrollbar_layer_impl_base.cc File cc/layers/scrollbar_layer_impl_base.cc (right): https://codereview.chromium.org/2762123004/diff/20001/cc/layers/scrollbar_layer_impl_base.cc#newcode223 cc/layers/scrollbar_layer_impl_base.cc:223: property_trees->effect_tree.Node(effect_tree_index())) { Since we're already checking for an invalid ...
3 years, 9 months ago (2017-03-21 22:00:30 UTC) #5
weiliangc
https://codereview.chromium.org/2762123004/diff/20001/cc/layers/scrollbar_layer_impl_base.cc File cc/layers/scrollbar_layer_impl_base.cc (right): https://codereview.chromium.org/2762123004/diff/20001/cc/layers/scrollbar_layer_impl_base.cc#newcode223 cc/layers/scrollbar_layer_impl_base.cc:223: property_trees->effect_tree.Node(effect_tree_index())) { On 2017/03/21 at 22:00:30, ajuma wrote: > ...
3 years, 9 months ago (2017-03-22 18:44:15 UTC) #7
weiliangc
Err need to rebase. Ignore all the red try bots it's fine.
3 years, 9 months ago (2017-03-22 18:52:25 UTC) #11
ajuma
Thanks, lgtm
3 years, 9 months ago (2017-03-22 19:00:18 UTC) #12
weiliangc
+pdr for Blink review. There are also ScrollOffset functions that looks could be refactored similarly. ...
3 years, 9 months ago (2017-03-27 15:38:08 UTC) #16
pdr.
LGTM here, nice cleanup. I've added wkorman too, who is working all over this space. ...
3 years, 9 months ago (2017-03-27 21:21:28 UTC) #20
wkorman
lgtm https://codereview.chromium.org/2762123004/diff/80001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (left): https://codereview.chromium.org/2762123004/diff/80001/cc/trees/layer_tree_impl.cc#oldcode642 cc/trees/layer_tree_impl.cc:642: element_id_to_opacity_animations_[layer->element_id()] = opacity; Presuming opacity can't be addressed ...
3 years, 8 months ago (2017-03-27 22:21:52 UTC) #21
weiliangc
Address review comments. https://codereview.chromium.org/2762123004/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2762123004/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode1329 cc/trees/layer_tree_host_unittest.cc:1329: transform_tree.FindNodeFromOwningLayerId(root_layer->id()); On 2017/03/27 21:21:27, pdr. wrote: ...
3 years, 8 months ago (2017-03-28 20:21:28 UTC) #23
wkorman
lgtm https://codereview.chromium.org/2762123004/diff/80001/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp File third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp (right): https://codereview.chromium.org/2762123004/diff/80001/third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp#newcode26 third_party/WebKit/Source/platform/graphics/CompositorMutableState.cpp:26: m_mainLayer->layer_tree_impl()->SetOpacityMutated(m_mainLayer->element_id(), On 2017/03/28 20:21:28, weiliangc wrote: > On ...
3 years, 8 months ago (2017-03-28 23:32:47 UTC) #28
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/2762123004/100001
3 years, 8 months ago (2017-03-29 14:49:53 UTC) #31
commit-bot: I haz the power
Committed patchset #6 (id:100001) as https://chromium.googlesource.com/chromium/src/+/ea09f3374e3fc4f7669390b1203b1354c3a9cd0e
3 years, 8 months ago (2017-03-29 16:44:16 UTC) #34
weiliangc
3 years, 8 months ago (2017-03-31 21:04:23 UTC) #35
Message was sent while issue was closed.
https://codereview.chromium.org/2762123004/diff/100001/cc/trees/layer_tree_ho...
File cc/trees/layer_tree_host_impl.cc (left):

https://codereview.chromium.org/2762123004/diff/100001/cc/trees/layer_tree_ho...
cc/trees/layer_tree_host_impl.cc:4047:
property_trees->element_id_to_effect_node_index[element_id];
I think this line from before this CL is how crbug.com/706766 was hidden before.
>___>

Powered by Google App Engine
This is Rietveld 408576698