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

Issue 1519293002: Add support for (de)serializing LayerTreeHost. (Closed)

Created:
5 years ago by nyquist
Modified:
4 years, 11 months ago
Reviewers:
hans, vmpstr, aizatsky
CC:
chromium-reviews, cc-bugs_chromium.org, Nico, krasin1, pcc1
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add support for (de)serializing LayerTreeHost. As part of the cc commit flow, we need to be able to serialize the LayerTreeHost. Not all state is necessary to serialize to be able to do a commit on the client side, so only some members are included in the proto. BUG=561210 CQ_INCLUDE_TRYBOTS=tryserver.blink:linux_blink_rel Committed: https://crrev.com/4f5e8afdadf36c01a01467abb441be357db6d142 Cr-Commit-Position: refs/heads/master@{#369450}

Patch Set 1 #

Patch Set 2 : Added framework for (de)serializing #

Total comments: 14

Patch Set 3 : merged upstream branches #

Patch Set 4 : merged master #

Patch Set 5 : Added full serialization #

Patch Set 6 : moved layerselectionbound fix to other CL #

Patch Set 7 : Added missing .proto entry for GYP #

Patch Set 8 : Ready for review #

Total comments: 28

Patch Set 9 : Addressed comments from vmpstr #

Total comments: 2

Patch Set 10 : Addressed comment from vmpstr #

Patch Set 11 : Moved to become anonymous function #

Patch Set 12 : Remove unreachable code, and use early return #

Unified diffs Side-by-side diffs Delta from patch set Stats (+552 lines, -0 lines) Patch
M cc/BUILD.gn View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc.gyp View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
M cc/cc_tests.gyp View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M cc/proto/BUILD.gn View 1 1 chunk +1 line, -0 lines 0 comments Download
A cc/proto/layer_tree_host.proto View 1 2 3 4 5 6 7 8 1 chunk +56 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.h View 1 2 3 4 5 6 7 10 3 chunks +16 lines, -0 lines 0 comments Download
M cc/trees/layer_tree_host.cc View 1 2 3 4 5 6 7 8 9 10 11 3 chunks +163 lines, -0 lines 0 comments Download
A cc/trees/layer_tree_host_unittest_serialization.cc View 1 2 3 4 5 6 7 8 1 chunk +313 lines, -0 lines 0 comments Download

Depends on Patchset:

Messages

Total messages: 42 (18 generated)
vmpstr
https://codereview.chromium.org/1519293002/diff/20001/cc/proto/layer_tree_host.proto File cc/proto/layer_tree_host.proto (right): https://codereview.chromium.org/1519293002/diff/20001/cc/proto/layer_tree_host.proto#newcode36 cc/proto/layer_tree_host.proto:36: // LayerTreeHostClient* client_; These are created on the client ...
5 years ago (2015-12-18 19:15:14 UTC) #4
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/80001
4 years, 11 months ago (2016-01-09 00:39:51 UTC) #6
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/77400) chromeos_daisy_chromium_compile_only_ng on ...
4 years, 11 months ago (2016-01-09 00:56:40 UTC) #8
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/120001
4 years, 11 months ago (2016-01-09 01:06:44 UTC) #10
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-09 02:37:41 UTC) #12
nyquist
vmpstr: PTAL https://codereview.chromium.org/1519293002/diff/20001/cc/proto/layer_tree_host.proto File cc/proto/layer_tree_host.proto (right): https://codereview.chromium.org/1519293002/diff/20001/cc/proto/layer_tree_host.proto#newcode36 cc/proto/layer_tree_host.proto:36: // LayerTreeHostClient* client_; On 2015/12/18 19:15:13, vmpstr ...
4 years, 11 months ago (2016-01-11 20:05:35 UTC) #14
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/140001
4 years, 11 months ago (2016-01-11 20:09:26 UTC) #15
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-11 21:35:35 UTC) #17
vmpstr
https://codereview.chromium.org/1519293002/diff/140001/cc/proto/layer_tree_host.proto File cc/proto/layer_tree_host.proto (right): https://codereview.chromium.org/1519293002/diff/140001/cc/proto/layer_tree_host.proto#newcode19 cc/proto/layer_tree_host.proto:19: message LayerTreeHost { Can you add a comment here ...
4 years, 11 months ago (2016-01-11 22:06:30 UTC) #18
nyquist
vmpstr: PTAL https://codereview.chromium.org/1519293002/diff/140001/cc/proto/layer_tree_host.proto File cc/proto/layer_tree_host.proto (right): https://codereview.chromium.org/1519293002/diff/140001/cc/proto/layer_tree_host.proto#newcode19 cc/proto/layer_tree_host.proto:19: message LayerTreeHost { On 2016/01/11 22:06:29, vmpstr ...
4 years, 11 months ago (2016-01-13 01:34:12 UTC) #19
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/160001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/160001
4 years, 11 months ago (2016-01-13 01:34:43 UTC) #21
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-13 03:36:29 UTC) #23
vmpstr
Other than a comment below looks good. https://codereview.chromium.org/1519293002/diff/160001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/1519293002/diff/160001/cc/trees/layer_tree_host.cc#newcode1397 cc/trees/layer_tree_host.cc:1397: if (proto.hud_layer_id() ...
4 years, 11 months ago (2016-01-13 23:38:14 UTC) #24
nyquist
vmpstr: PTAL https://codereview.chromium.org/1519293002/diff/160001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/1519293002/diff/160001/cc/trees/layer_tree_host.cc#newcode1397 cc/trees/layer_tree_host.cc:1397: if (proto.hud_layer_id() == Layer::INVALID_ID) { On 2016/01/13 ...
4 years, 11 months ago (2016-01-14 00:29:00 UTC) #25
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/200001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/200001
4 years, 11 months ago (2016-01-14 00:29:39 UTC) #27
vmpstr
lgtm
4 years, 11 months ago (2016-01-14 00:34:16 UTC) #28
commit-bot: I haz the power
Dry run: Try jobs failed on following builders: win8_chromium_ng on tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win8_chromium_ng/builds/89448)
4 years, 11 months ago (2016-01-14 02:17:39 UTC) #30
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1519293002/220001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1519293002/220001
4 years, 11 months ago (2016-01-14 16:34:51 UTC) #33
commit-bot: I haz the power
Committed patchset #12 (id:220001)
4 years, 11 months ago (2016-01-14 17:40:45 UTC) #34
commit-bot: I haz the power
Patchset 12 (id:??) landed as https://crrev.com/4f5e8afdadf36c01a01467abb441be357db6d142 Cr-Commit-Position: refs/heads/master@{#369450}
4 years, 11 months ago (2016-01-14 17:42:37 UTC) #36
hans
This is causing failures under UBSan Vptr: https://build.chromium.org/p/chromium.fyi/builders/ClangToTLinuxUBSanVptr%20tester/builds/173/steps/cc_unittests
4 years, 11 months ago (2016-01-15 00:25:03 UTC) #38
aizatsky
Looks like this change breaks CFI build: https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux/builds/3948/steps/cc_unittests/logs/stdio
4 years, 11 months ago (2016-01-15 01:19:32 UTC) #40
nyquist
On 2016/01/15 01:19:32, aizatsky wrote: > Looks like this change breaks CFI build: > > ...
4 years, 11 months ago (2016-01-15 01:22:39 UTC) #41
krasin
4 years, 11 months ago (2016-01-15 02:32:25 UTC) #42
Message was sent while issue was closed.
On 2016/01/15 01:22:39, nyquist wrote:
> On 2016/01/15 01:19:32, aizatsky wrote:
> > Looks like this change breaks CFI build:
> > 
> >
>
https://build.chromium.org/p/chromium.fyi/builders/CFI%20Linux/builds/3948/st...
> 
> OK. Thanks! I'll have a look.

I've filed https://crbug.com/577972 with more detailed CFI report.

Powered by Google App Engine
This is Rietveld 408576698