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

Issue 2612093002: Build mapping from element id to transform/effect nodes. (Closed)

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

Description

Build mapping from element id to transform/effect nodes. Update cc PropertyTreeBuilder to build additional maps from element id (used for animation purposes) to the involved transform and effect nodes. This map is currently unused but will be used in subsequent patches so as to eventually allow us to remove the existing maps from layer id to these same nodes. This is also a required step for SPv2 composited animation support wherein, again in a subsequent patch, we will populate these maps in PaintArtifactCompositor. BUG=674258 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2612093002 Cr-Commit-Position: refs/heads/master@{#442711} Committed: https://chromium.googlesource.com/chromium/src/+/e14c8ed4a52032ed6569a95febe1d2c73af782dc

Patch Set 1 #

Patch Set 2 : Add new maps to operator=, ==, and clear. #

Patch Set 3 : Basic test. #

Patch Set 4 : Check size of transform/effect trees as well. #

Patch Set 5 : Check tree size in test. #

Total comments: 11

Patch Set 6 : Use sync tree rather than active tree in unit test. #

Patch Set 7 : Update test per feedback. #

Patch Set 8 : Sync to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+122 lines, -1 line) Patch
M cc/trees/layer_tree_host_unittest.cc View 1 2 3 4 5 6 2 chunks +87 lines, -1 line 0 comments Download
M cc/trees/property_tree.h View 1 2 1 chunk +13 lines, -0 lines 0 comments Download
M cc/trees/property_tree.cc View 1 2 3 chunks +8 lines, -0 lines 0 comments Download
M cc/trees/property_tree_builder.cc View 1 2 3 4 5 6 7 2 chunks +14 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 21 (11 generated)
wkorman
Still aiming for small incremental patches. Two questions on this one: 1. Where is the ...
3 years, 11 months ago (2017-01-04 21:06:16 UTC) #3
ajuma
On 2017/01/04 21:06:16, wkorman wrote: > Still aiming for small incremental patches. Two questions on ...
3 years, 11 months ago (2017-01-04 22:44:21 UTC) #5
wkorman
https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode964 cc/trees/layer_tree_host_unittest.cc:964: EXPECT_EQ(3U, child_impl_->layer_tree_impl() We don't currently set the element id ...
3 years, 11 months ago (2017-01-09 21:41:55 UTC) #6
ajuma
Just a few nits about the test: https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode946 cc/trees/layer_tree_host_unittest.cc:946: auto root_element_id_to_transform_node_index ...
3 years, 11 months ago (2017-01-10 00:02:36 UTC) #9
wkorman
https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc File cc/trees/layer_tree_host_unittest.cc (right): https://codereview.chromium.org/2612093002/diff/80001/cc/trees/layer_tree_host_unittest.cc#newcode946 cc/trees/layer_tree_host_unittest.cc:946: auto root_element_id_to_transform_node_index = On 2017/01/10 at 00:02:36, ajuma wrote: ...
3 years, 11 months ago (2017-01-10 00:13:09 UTC) #10
ajuma
Thanks, lgtm
3 years, 11 months ago (2017-01-10 00:20:51 UTC) #11
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/2612093002/120001
3 years, 11 months ago (2017-01-10 00:25:09 UTC) #13
commit-bot: I haz the power
Failed to apply patch for cc/trees/property_tree_builder.cc: While running git apply --index -p1; error: patch failed: ...
3 years, 11 months ago (2017-01-10 03:33:56 UTC) #15
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/2612093002/140001
3 years, 11 months ago (2017-01-10 21:11:13 UTC) #18
commit-bot: I haz the power
3 years, 11 months ago (2017-01-10 22:29:45 UTC) #21
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/e14c8ed4a52032ed6569a95febe1...

Powered by Google App Engine
This is Rietveld 408576698