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

Issue 1945813002: cc: Make LayerTreeImpl dump layer list to FrameViewer and Devtools (Closed)

Created:
4 years, 7 months ago by sunxd
Modified:
4 years, 6 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc: Make LayerTreeImpl dump layer list to FrameViewer and Devtools As compositor will no longer know tree hierarchy information, it is expected to dump a layer list instead of a layer tree to chrome tracing. The value root_layer is also deleted because it is used to judge whether the dumped layer_tree_impl has a list or not on the FrameViewer side. Chrome://tracing will show a layer_tree_impl without depth, this is expected. This CL is blocked by Issue 1947553002, and potentially influenced by the LayerTreeImpl's JSON issue. Devtools need to deal with the new format information. On the devtools side, we make the first drawsContent layer "contentRoot" and treat all other layers as the contentRoot's child. BUG=605940 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/3971e0b42893122987ca9647055a079eb1e01e3d Cr-Commit-Position: refs/heads/master@{#397744}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Remove const prefix of LayerTreeImpl iterator #

Patch Set 3 : Make devtools work without layer tree hierarchy #

Total comments: 2

Patch Set 4 : Force drawsContent for layout test #

Total comments: 5

Patch Set 5 : Dump every layer in layout test and rebaseline the expectations #

Total comments: 7

Patch Set 6 : Resolve comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -37 lines) Patch
M cc/layers/layer_impl.cc View 1 2 1 chunk +0 lines, -7 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 1 chunk +2 lines, -4 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 1 chunk +2 lines, -10 lines 0 comments Download
M cc/trees/layer_tree_impl.h View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M cc/trees/layer_tree_impl.cc View 1 2 3 4 5 3 chunks +10 lines, -6 lines 0 comments Download
M third_party/WebKit/LayoutTests/inspector/tracing/layer-tree-expected.txt View 1 2 4 1 chunk +13 lines, -4 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js View 1 2 3 4 5 4 chunks +30 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/devtools/front_end/timeline_model/TimelineFrameModel.js View 1 2 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 32 (12 generated)
sunxd
4 years, 7 months ago (2016-05-03 17:48:40 UTC) #4
vmpstr
https://codereview.chromium.org/1945813002/diff/1/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h (right): https://codereview.chromium.org/1945813002/diff/1/cc/trees/layer_tree_impl.h#newcode161 cc/trees/layer_tree_impl.h:161: const LayerListIterator<LayerImpl> begin() const; Making the return type const ...
4 years, 7 months ago (2016-05-05 18:20:59 UTC) #6
sunxd
https://codereview.chromium.org/1945813002/diff/1/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h (right): https://codereview.chromium.org/1945813002/diff/1/cc/trees/layer_tree_impl.h#newcode161 cc/trees/layer_tree_impl.h:161: const LayerListIterator<LayerImpl> begin() const; On 2016/05/05 18:20:59, vmpstr wrote: ...
4 years, 7 months ago (2016-05-05 19:25:25 UTC) #7
sunxd
Devtools also uses the information we dump in cc and needs to deal with the ...
4 years, 6 months ago (2016-05-31 14:52:17 UTC) #10
sunxd
4 years, 6 months ago (2016-05-31 19:16:53 UTC) #11
vmpstr
Mostly I have questions about why the layout tests are changing with this change. https://codereview.chromium.org/1945813002/diff/60001/cc/trees/layer_tree_impl.h ...
4 years, 6 months ago (2016-05-31 22:16:16 UTC) #12
sunxd
https://codereview.chromium.org/1945813002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js File third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js (right): https://codereview.chromium.org/1945813002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js#newcode35 third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js:35: if (root.drawsContent()) On 2016/05/31 22:16:16, vmpstr wrote: > Why ...
4 years, 6 months ago (2016-05-31 22:41:52 UTC) #13
vmpstr
On 2016/05/31 22:41:52, sunxd wrote: > https://codereview.chromium.org/1945813002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js > File third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js (right): > > https://codereview.chromium.org/1945813002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js#newcode35 > ...
4 years, 6 months ago (2016-05-31 22:47:46 UTC) #14
sunxd
On 2016/05/31 22:47:46, vmpstr wrote: > On 2016/05/31 22:41:52, sunxd wrote: > > > https://codereview.chromium.org/1945813002/diff/60001/third_party/WebKit/LayoutTests/http/tests/inspector/layers-test.js ...
4 years, 6 months ago (2016-06-01 14:59:50 UTC) #15
sunxd
4 years, 6 months ago (2016-06-01 15:00:00 UTC) #16
vmpstr
https://codereview.chromium.org/1945813002/diff/80001/cc/trees/layer_tree_impl.h File cc/trees/layer_tree_impl.h (right): https://codereview.chromium.org/1945813002/diff/80001/cc/trees/layer_tree_impl.h#newcode163 cc/trees/layer_tree_impl.h:163: LayerListIterator<LayerImpl> begin() const; Please change this in one of ...
4 years, 6 months ago (2016-06-01 18:47:59 UTC) #17
caseq
lgtm % nits Is the layer hierarchy going to become meaningless altogether, or are you ...
4 years, 6 months ago (2016-06-01 18:55:06 UTC) #18
sunxd
On 2016/06/01 18:55:06, caseq wrote: > lgtm % nits > > Is the layer hierarchy ...
4 years, 6 months ago (2016-06-01 23:50:40 UTC) #19
sunxd
https://codereview.chromium.org/1945813002/diff/80001/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js File third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js (right): https://codereview.chromium.org/1945813002/diff/80001/third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js#newcode330 third_party/WebKit/Source/devtools/front_end/timeline_model/LayerTreeModel.js:330: if (root) { On 2016/06/01 18:55:06, caseq wrote: > ...
4 years, 6 months ago (2016-06-01 23:51:13 UTC) #20
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945813002/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1945813002/100001
4 years, 6 months ago (2016-06-03 14:47:54 UTC) #22
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 6 months ago (2016-06-03 16:39:27 UTC) #24
vmpstr
cc lgtm
4 years, 6 months ago (2016-06-03 17:01:13 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1945813002/100001
4 years, 6 months ago (2016-06-03 17:25:35 UTC) #28
commit-bot: I haz the power
Committed patchset #6 (id:100001)
4 years, 6 months ago (2016-06-03 17:31:24 UTC) #30
commit-bot: I haz the power
4 years, 6 months ago (2016-06-03 17:33:13 UTC) #32
Message was sent while issue was closed.
Patchset 6 (id:??) landed as
https://crrev.com/3971e0b42893122987ca9647055a079eb1e01e3d
Cr-Commit-Position: refs/heads/master@{#397744}

Powered by Google App Engine
This is Rietveld 408576698