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

Issue 2362073002: cc/blimp: Add a LayerTreeHostRemote implementation. (Closed)

Created:
4 years, 2 months ago by Khushal
Modified:
4 years, 2 months ago
CC:
chromium-reviews, cc-bugs_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

cc/blimp: Add a LayerTreeHostRemote implementation. This sets up the framework for a LayerTreeHostRemote that implements the LayerTreeHost API when the compositor is running across a network boundary. This change only sets the framework for running/scheduling main frame updates and pushing the serialized state using the CompositorProtoStateSink. Subsequent patches will add state serialization. BUG=648442, 652502 CQ_INCLUDE_TRYBOTS=master.tryserver.blink:linux_precise_blink_rel Committed: https://crrev.com/8d31bac41bbabd01f14eff89f0fc37cd9016c225 Committed: https://crrev.com/bc0b8bebb01af4c46a742a9e119a5eb39ee9aff0 Cr-Original-Commit-Position: refs/heads/master@{#422555} Cr-Commit-Position: refs/heads/master@{#422679}

Patch Set 1 #

Total comments: 2

Patch Set 2 : bind to client. #

Patch Set 3 : tests #

Patch Set 4 : source frame number #

Total comments: 129

Patch Set 5 : Addressed comments #

Patch Set 6 : Remaining comments from #4 #

Total comments: 4

Patch Set 7 : Addressed some more comments. #

Patch Set 8 : actually upload .cc file #

Patch Set 9 : Renames. #

Patch Set 10 : missed a comment #

Patch Set 11 : Rebase #

Patch Set 12 : win #

Total comments: 30

Patch Set 13 : some more comments #

Patch Set 14 : missed an export #

Patch Set 15 : minor comment update #

Patch Set 16 : Rebase #

Total comments: 1

Patch Set 17 : begin_frame_args #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1142 lines, -3 lines) Patch
M cc/BUILD.gn View 1 2 3 4 5 6 7 8 9 10 11 12 3 chunks +10 lines, -0 lines 0 comments Download
A cc/blimp/compositor_proto_state.h View 1 chunk +33 lines, -0 lines 0 comments Download
A + cc/blimp/compositor_proto_state.cc View 1 chunk +6 lines, -3 lines 0 comments Download
A cc/blimp/layer_tree_host_remote.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +151 lines, -0 lines 0 comments Download
A cc/blimp/layer_tree_host_remote.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 1 chunk +415 lines, -0 lines 0 comments Download
A cc/blimp/layer_tree_host_remote_unittest.cc View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 1 chunk +347 lines, -0 lines 0 comments Download
A cc/blimp/remote_compositor_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 13 14 1 chunk +55 lines, -0 lines 0 comments Download
A cc/blimp/remote_compositor_bridge.cc View 1 2 3 4 5 6 7 8 1 chunk +17 lines, -0 lines 0 comments Download
A cc/blimp/remote_compositor_bridge_client.h View 1 2 3 4 5 6 7 8 1 chunk +31 lines, -0 lines 0 comments Download
A cc/test/fake_remote_compositor_bridge.h View 1 2 3 4 5 6 7 8 9 10 11 12 1 chunk +40 lines, -0 lines 0 comments Download
A cc/test/fake_remote_compositor_bridge.cc View 1 2 3 4 5 6 7 8 1 chunk +37 lines, -0 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 60 (27 generated)
Khushal
I still have to add tests for this, but wanted to get a review on ...
4 years, 2 months ago (2016-09-22 23:29:22 UTC) #3
danakj
https://codereview.chromium.org/2362073002/diff/1/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/2362073002/diff/1/cc/BUILD.gn#newcode46 cc/BUILD.gn:46: "blimp/compositor_proto_state.cc", I don't think LTHRemote (or maybe any of ...
4 years, 2 months ago (2016-09-22 23:52:30 UTC) #5
Khushal
https://codereview.chromium.org/2362073002/diff/1/cc/BUILD.gn File cc/BUILD.gn (right): https://codereview.chromium.org/2362073002/diff/1/cc/BUILD.gn#newcode46 cc/BUILD.gn:46: "blimp/compositor_proto_state.cc", On 2016/09/22 23:52:29, danakj wrote: > I don't ...
4 years, 2 months ago (2016-09-23 00:05:42 UTC) #6
Khushal
Added tests too. Dana, could you do a cc review for this?
4 years, 2 months ago (2016-09-23 21:25:32 UTC) #7
danakj
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h File cc/blimp/compositor_proto_state_sink_client.h (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h#newcode29 cc/blimp/compositor_proto_state_sink_client.h:29: virtual base::SingleThreadTaskRunner* GetMainTaskRunner() = 0; Why do you need ...
4 years, 2 months ago (2016-09-26 21:36:54 UTC) #8
Khushal
Thanks Dana. https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h File cc/blimp/compositor_proto_state_sink_client.h (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h#newcode29 cc/blimp/compositor_proto_state_sink_client.h:29: virtual base::SingleThreadTaskRunner* GetMainTaskRunner() = 0; On 2016/09/26 ...
4 years, 2 months ago (2016-09-27 01:07:50 UTC) #9
Khushal
Now that I think about it, we should add a NotSupported to the Layer type ...
4 years, 2 months ago (2016-09-27 03:46:45 UTC) #10
David Trainor- moved to gerrit
Sorry for the delays Khushal. I'm finally caught up (except for this one!). Will take ...
4 years, 2 months ago (2016-09-27 04:12:39 UTC) #11
danakj
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h File cc/blimp/compositor_proto_state_sink_client.h (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h#newcode29 cc/blimp/compositor_proto_state_sink_client.h:29: virtual base::SingleThreadTaskRunner* GetMainTaskRunner() = 0; On 2016/09/27 01:07:48, Khushal ...
4 years, 2 months ago (2016-09-27 20:32:43 UTC) #12
Khushal
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h File cc/blimp/compositor_proto_state_sink_client.h (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/compositor_proto_state_sink_client.h#newcode29 cc/blimp/compositor_proto_state_sink_client.h:29: virtual base::SingleThreadTaskRunner* GetMainTaskRunner() = 0; On 2016/09/27 20:32:43, danakj ...
4 years, 2 months ago (2016-09-27 23:46:56 UTC) #13
danakj
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc#newcode173 cc/blimp/layer_tree_host_remote.cc:173: // The engine shouldn't need to care about draws. ...
4 years, 2 months ago (2016-09-28 00:32:50 UTC) #14
Khushal
Thanks Dana. Fixed the main task runner plumbing that you mentioned earlier as well. PTAL. ...
4 years, 2 months ago (2016-09-28 19:47:16 UTC) #15
danakj
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc#newcode183 cc/blimp/layer_tree_host_remote.cc:183: // The engine shouldn't need to care about draws. ...
4 years, 2 months ago (2016-09-29 23:59:35 UTC) #16
Khushal
https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/60001/cc/blimp/layer_tree_host_remote.cc#newcode183 cc/blimp/layer_tree_host_remote.cc:183: // The engine shouldn't need to care about draws. ...
4 years, 2 months ago (2016-09-30 02:11:18 UTC) #17
danakj
LGTMN https://codereview.chromium.org/2362073002/diff/60001/cc/trees/layer_tree_host.cc File cc/trees/layer_tree_host.cc (right): https://codereview.chromium.org/2362073002/diff/60001/cc/trees/layer_tree_host.cc#newcode16 cc/trees/layer_tree_host.cc:16: return s_layer_tree_host_sequence_number.GetNext() + 1; On 2016/09/27 01:07:50, Khushal ...
4 years, 2 months ago (2016-09-30 22:37:12 UTC) #26
danakj
On 2016/09/30 22:37:12, danakj wrote: > LGTMN I mean, LGTM.
4 years, 2 months ago (2016-09-30 22:37:30 UTC) #27
danakj
https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc#newcode117 cc/blimp/layer_tree_host_remote.cc:117: // The visibility of the compositor is controlled on ...
4 years, 2 months ago (2016-09-30 22:38:31 UTC) #28
Khushal
Thanks Dana. https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc#newcode38 cc/blimp/layer_tree_host_remote.cc:38: source_frame_number_(0), On 2016/09/30 22:37:13, danakj wrote: > ...
4 years, 2 months ago (2016-10-01 00:53:48 UTC) #29
enne (OOO)
On 2016/09/30 at 22:37:12, danakj wrote: > - LayerTreeHost is no longer a compositor, it ...
4 years, 2 months ago (2016-10-03 17:38:02 UTC) #34
Khushal
On 2016/10/03 17:38:02, enne wrote: > On 2016/09/30 at 22:37:12, danakj wrote: > > > ...
4 years, 2 months ago (2016-10-03 20:11:48 UTC) #35
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/2362073002/280001
4 years, 2 months ago (2016-10-03 20:12:22 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: chromeos_amd64-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/chromeos_amd64-generic_chromium_compile_only_ng/builds/209883) chromeos_x86-generic_chromium_compile_only_ng on master.tryserver.chromium.linux (JOB_FAILED, ...
4 years, 2 months ago (2016-10-03 20:33:06 UTC) #40
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/2362073002/300001
4 years, 2 months ago (2016-10-03 20:56:17 UTC) #43
danakj
https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc File cc/blimp/layer_tree_host_remote.cc (right): https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.cc#newcode105 cc/blimp/layer_tree_host_remote.cc:105: swap_promise_manager_.QueueSwapPromise(std::move(swap_promise)); On 2016/10/01 00:53:48, Khushal wrote: > On 2016/09/30 ...
4 years, 2 months ago (2016-10-03 21:02:48 UTC) #44
commit-bot: I haz the power
Committed patchset #16 (id:300001)
4 years, 2 months ago (2016-10-03 22:08:21 UTC) #45
commit-bot: I haz the power
Patchset 16 (id:??) landed as https://crrev.com/8d31bac41bbabd01f14eff89f0fc37cd9016c225 Cr-Commit-Position: refs/heads/master@{#422555}
4 years, 2 months ago (2016-10-03 22:12:06 UTC) #47
horo
A revert of this CL (patchset #16 id:300001) has been created in https://codereview.chromium.org/2384333002/ by horo@chromium.org. ...
4 years, 2 months ago (2016-10-03 23:42:57 UTC) #48
Khushal
https://codereview.chromium.org/2362073002/diff/300001/cc/blimp/layer_tree_host_remote_unittest.cc File cc/blimp/layer_tree_host_remote_unittest.cc (right): https://codereview.chromium.org/2362073002/diff/300001/cc/blimp/layer_tree_host_remote_unittest.cc#newcode75 cc/blimp/layer_tree_host_remote_unittest.cc:75: MOCK_METHOD1(BeginMainFrame, void(const BeginFrameArgs& args)); Mocking this method was messing ...
4 years, 2 months ago (2016-10-04 01:24:24 UTC) #50
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/2362073002/320001
4 years, 2 months ago (2016-10-04 01:25:25 UTC) #54
Khushal
https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.h File cc/blimp/layer_tree_host_remote.h (right): https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.h#newcode102 cc/blimp/layer_tree_host_remote.h:102: // RemoteCompositorBridgeClient implementation. On 2016/10/03 21:02:48, danakj wrote: > ...
4 years, 2 months ago (2016-10-04 01:27:09 UTC) #55
danakj
https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.h File cc/blimp/layer_tree_host_remote.h (right): https://codereview.chromium.org/2362073002/diff/220001/cc/blimp/layer_tree_host_remote.h#newcode102 cc/blimp/layer_tree_host_remote.h:102: // RemoteCompositorBridgeClient implementation. On 2016/10/04 01:27:09, Khushal wrote: > ...
4 years, 2 months ago (2016-10-04 01:40:57 UTC) #56
commit-bot: I haz the power
Committed patchset #17 (id:320001)
4 years, 2 months ago (2016-10-04 02:49:34 UTC) #58
commit-bot: I haz the power
4 years, 2 months ago (2016-10-04 02:51:49 UTC) #60
Message was sent while issue was closed.
Patchset 17 (id:??) landed as
https://crrev.com/bc0b8bebb01af4c46a742a9e119a5eb39ee9aff0
Cr-Commit-Position: refs/heads/master@{#422679}

Powered by Google App Engine
This is Rietveld 408576698