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

Issue 2758343002: cc: Use Element Id to Record Animation Changes (Closed)

Created:
3 years, 9 months ago by weiliangc
Modified:
3 years, 9 months ago
Reviewers:
ajuma, wkorman
CC:
cc-bugs_chromium.org, chromium-reviews, jaydasika
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Use Element Id to Record Animation Changes In LayerTreeHost and LayerTreeImpl, change key to the map that is used to record animation changes from layer id to element id. Also add set elements id for testings before building property trees for testing so that the element id to node maps are always populated in property trees. BUG=702774 R=ajuma CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2758343002 Cr-Commit-Position: refs/heads/master@{#459530} Committed: https://chromium.googlesource.com/chromium/src/+/1f4b78a69bd2994e484c7e5e7dc5743bead8a721

Patch Set 1 #

Total comments: 17

Patch Set 2 : address review comments #

Patch Set 3 : rename animations map #

Patch Set 4 : rename animations map #

Patch Set 5 : and rebase #

Patch Set 6 : tighten dcheck to not trigger when removing animation #

Total comments: 1

Patch Set 7 : fix for test #

Unified diffs Side-by-side diffs Delta from patch set Stats (+236 lines, -230 lines) Patch
M cc/layers/layer.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
M cc/layers/layer.cc View 1 2 3 1 chunk +0 lines, -73 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 2 chunks +0 lines, -3 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 2 chunks +10 lines, -82 lines 0 comments Download
M cc/test/layer_tree_test.cc View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 1 chunk +73 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 2 chunks +0 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 chunks +68 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 5 chunks +14 lines, -15 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 1 chunk +6 lines, -3 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 5 chunks +44 lines, -41 lines 0 comments Download
M cc/trees/property_tree.h View 1 2 3 3 chunks +4 lines, -1 line 0 comments Download
M cc/trees/property_tree.cc View 2 chunks +16 lines, -0 lines 0 comments Download

Messages

Total messages: 36 (21 generated)
weiliangc
3 years, 9 months ago (2017-03-20 18:16:46 UTC) #2
ajuma
https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_impl.cc#newcode627 cc/trees/layer_tree_impl.cc:627: if (LayerImpl* layer = LayerById(id)) This logic is a ...
3 years, 9 months ago (2017-03-20 21:40:38 UTC) #3
wkorman
https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host.cc#newcode1350 cc/trees/layer_tree_host.cc:1350: state.potentially_animating[property]; Double checking, this case does not have the ...
3 years, 9 months ago (2017-03-20 21:59:57 UTC) #5
wkorman
Forgot to add -- am not formal code reviewer here, comments were just while reading ...
3 years, 9 months ago (2017-03-20 22:01:03 UTC) #6
weiliangc
https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode4127 cc/trees/layer_tree_host_impl.cc:4127: for (int property = TargetProperty::FIRST_TARGET_PROPERTY; On 2017/03/20 at 21:59:57, ...
3 years, 9 months ago (2017-03-21 15:18:52 UTC) #7
wkorman
https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode4127 cc/trees/layer_tree_host_impl.cc:4127: for (int property = TargetProperty::FIRST_TARGET_PROPERTY; On 2017/03/21 15:18:52, weiliangc ...
3 years, 9 months ago (2017-03-21 19:44:23 UTC) #8
ajuma
https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc File cc/trees/layer_tree_host_impl.cc (right): https://codereview.chromium.org/2758343002/diff/1/cc/trees/layer_tree_host_impl.cc#newcode4127 cc/trees/layer_tree_host_impl.cc:4127: for (int property = TargetProperty::FIRST_TARGET_PROPERTY; On 2017/03/21 19:44:23, wkorman ...
3 years, 9 months ago (2017-03-21 19:53:28 UTC) #9
weiliangc
The test failure seems to be trying to disable animation using element id, which the ...
3 years, 9 months ago (2017-03-21 22:12:18 UTC) #18
ajuma
On 2017/03/21 22:12:18, weiliangc wrote: > The test failure seems to be trying to disable ...
3 years, 9 months ago (2017-03-21 22:59:35 UTC) #19
weiliangc
PTAL
3 years, 9 months ago (2017-03-22 19:08:33 UTC) #24
ajuma
Looks good aside from one test failure to sort out: https://codereview.chromium.org/2758343002/diff/100001/cc/trees/layer_tree_impl.cc File cc/trees/layer_tree_impl.cc (right): https://codereview.chromium.org/2758343002/diff/100001/cc/trees/layer_tree_impl.cc#newcode1190 ...
3 years, 9 months ago (2017-03-22 19:28:22 UTC) #25
weiliangc
Passing tests now :D PTAL
3 years, 9 months ago (2017-03-24 18:35:22 UTC) #30
ajuma
On 2017/03/24 18:35:22, weiliangc wrote: > Passing tests now :D > PTAL Thanks! lgtm
3 years, 9 months ago (2017-03-24 20:03:16 UTC) #31
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/2758343002/120001
3 years, 9 months ago (2017-03-24 20:11:01 UTC) #33
commit-bot: I haz the power
3 years, 9 months ago (2017-03-24 20:17:39 UTC) #36
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/1f4b78a69bd2994e484c7e5e7dc5...

Powered by Google App Engine
This is Rietveld 408576698