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

Issue 2751783002: cc: Replace LayerIterator with iterator that walks layer list and effect tree (Closed)

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

Description

cc: Replace LayerIterator with iterator that walks layer list and effect tree LayerIterator was used to traverse the render surface layer list in front-to-back order. This assumed that every render surface had a corresponding layer that could be used to represent it. In the future we want to be able to create render surfaces for effect nodes that don't have any owning layer. This CL replaces LayerIterator with EffectTreeLayerListIterator, an iterator that visits layer and render surfaces in the same order as LayerIterator, but using only the layer list and effect tree, not the render surface layer list. BUG=611883 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_trusty_blink_rel Review-Url: https://codereview.chromium.org/2751783002 Cr-Commit-Position: refs/heads/master@{#461804} Committed: https://chromium.googlesource.com/chromium/src/+/95621958b771f10bac0a7690cdbc6f610573e8a1

Patch Set 1 #

Patch Set 2 #

Patch Set 3 : Clean up and rebase #

Patch Set 4 : Fix compile #

Patch Set 5 : WIP #

Patch Set 6 : Occlusion tests pass #

Patch Set 7 : More call sites #

Patch Set 8 : LayerIterator deleted #

Patch Set 9 : Fix compile #

Patch Set 10 : add missing file #

Patch Set 11 : Clean up and add comments #

Patch Set 12 : Clean up #includes #

Total comments: 10

Patch Set 13 : Address review comments #

Total comments: 2

Patch Set 14 : Rebase #

Patch Set 15 : Address review comment #

Patch Set 16 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -846 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +3 lines, -2 lines 0 comments Download
A cc/layers/effect_tree_layer_list_iterator.h View 1 2 3 4 5 6 7 8 9 10 11 1 chunk +124 lines, -0 lines 0 comments Download
A cc/layers/effect_tree_layer_list_iterator.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +139 lines, -0 lines 0 comments Download
A + cc/layers/effect_tree_layer_list_iterator_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 8 chunks +71 lines, -69 lines 0 comments Download
M cc/layers/layer_impl.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -2 lines 0 comments Download
M cc/layers/layer_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -5 lines 0 comments Download
M cc/layers/layer_iterator.h View 1 2 3 4 5 6 7 1 chunk +0 lines, -291 lines 0 comments Download
D cc/layers/layer_iterator_unittest.cc View 1 2 3 4 5 6 7 1 chunk +0 lines, -254 lines 0 comments Download
M cc/layers/layer_list_iterator.h View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -7 lines 0 comments Download
M cc/layers/render_surface_impl.h View 1 2 3 4 5 6 7 8 4 chunks +3 lines, -10 lines 0 comments Download
M cc/layers/render_surface_impl.cc View 1 2 3 4 5 6 7 8 4 chunks +9 lines, -11 lines 0 comments Download
M cc/trees/damage_tracker.cc View 1 2 3 4 5 6 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/debug_rect_history.h View 1 2 3 4 5 6 7 8 1 chunk +1 line, -2 lines 0 comments Download
M cc/trees/debug_rect_history.cc View 1 2 3 4 5 6 7 8 3 chunks +4 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +0 lines, -1 line 0 comments Download
M cc/trees/layer_tree_host_common_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 14 chunks +37 lines, -35 lines 0 comments Download
M cc/trees/layer_tree_host_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 3 chunks +45 lines, -44 lines 0 comments Download
M cc/trees/layer_tree_host_unittest_copyrequest.cc View 1 2 3 4 2 chunks +6 lines, -8 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 5 chunks +17 lines, -22 lines 0 comments Download
M cc/trees/occlusion_tracker.h View 1 2 3 4 5 6 3 chunks +21 lines, -21 lines 0 comments Download
M cc/trees/occlusion_tracker.cc View 1 2 3 4 6 chunks +35 lines, -27 lines 0 comments Download
M cc/trees/occlusion_tracker_unittest.cc View 1 2 3 4 5 6 5 chunks +33 lines, -24 lines 0 comments Download

Messages

Total messages: 52 (44 generated)
ajuma
3 years, 9 months ago (2017-03-22 18:23:14 UTC) #31
jaydasika
https://codereview.chromium.org/2751783002/diff/220001/cc/layers/effect_tree_layer_list_iterator.cc File cc/layers/effect_tree_layer_list_iterator.cc (right): https://codereview.chromium.org/2751783002/diff/220001/cc/layers/effect_tree_layer_list_iterator.cc#newcode29 cc/layers/effect_tree_layer_list_iterator.cc:29: if (effect_tree_->size() > EffectTree::kContentsRootNodeId && Root render surface should ...
3 years, 9 months ago (2017-03-22 20:49:42 UTC) #34
ajuma
https://codereview.chromium.org/2751783002/diff/220001/cc/layers/effect_tree_layer_list_iterator.cc File cc/layers/effect_tree_layer_list_iterator.cc (right): https://codereview.chromium.org/2751783002/diff/220001/cc/layers/effect_tree_layer_list_iterator.cc#newcode29 cc/layers/effect_tree_layer_list_iterator.cc:29: if (effect_tree_->size() > EffectTree::kContentsRootNodeId && On 2017/03/22 20:49:42, jaydasika ...
3 years, 9 months ago (2017-03-24 17:25:07 UTC) #37
jaydasika
https://codereview.chromium.org/2751783002/diff/240001/cc/layers/effect_tree_layer_list_iterator.cc File cc/layers/effect_tree_layer_list_iterator.cc (right): https://codereview.chromium.org/2751783002/diff/240001/cc/layers/effect_tree_layer_list_iterator.cc#newcode30 cc/layers/effect_tree_layer_list_iterator.cc:30: if (effect_tree_->GetRenderSurface(EffectTree::kContentsRootNodeId)) { Isn't this always true after DCHECKing ...
3 years, 9 months ago (2017-03-24 18:53:53 UTC) #40
ajuma
https://codereview.chromium.org/2751783002/diff/240001/cc/layers/effect_tree_layer_list_iterator.cc File cc/layers/effect_tree_layer_list_iterator.cc (right): https://codereview.chromium.org/2751783002/diff/240001/cc/layers/effect_tree_layer_list_iterator.cc#newcode30 cc/layers/effect_tree_layer_list_iterator.cc:30: if (effect_tree_->GetRenderSurface(EffectTree::kContentsRootNodeId)) { On 2017/03/24 18:53:53, jaydasika wrote: > ...
3 years, 9 months ago (2017-03-24 22:26:44 UTC) #42
jaydasika
lgtm Thanks for all the comments, made it easy to follow.
3 years, 9 months ago (2017-03-24 22:32:31 UTC) #44
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/2751783002/300001
3 years, 8 months ago (2017-04-04 17:09:51 UTC) #49
commit-bot: I haz the power
3 years, 8 months ago (2017-04-04 19:59:17 UTC) #52
Message was sent while issue was closed.
Committed patchset #16 (id:300001) as
https://chromium.googlesource.com/chromium/src/+/95621958b771f10bac0a7690cdbc...

Powered by Google App Engine
This is Rietveld 408576698