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

Side by Side Diff: cc/proto/compositor_message_to_impl.proto

Issue 1513643010: cc:: Add remote mode to the compositor (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed vmpstr's comments. Created 4 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « cc/proto/compositor_message.proto ('k') | cc/proto/compositor_message_to_main.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 syntax = "proto2";
6
7 option optimize_for = LITE_RUNTIME;
8
9 import "layer_tree_settings.proto";
10
11 package cc.proto;
12
13 // Control messages sent to the impl side of the compositor (client) from the
14 // main side of the compositor (server).
15 // Note: Unless specified in a comment, all fields in a message are required,
16 // even if listed as optional.
17 message CompositorMessageToImpl {
18 enum Type {
19 // The enum values which are unknown get mapped to the default value, which
20 // is zero. This can happen with when the protocol version skewing is
21 // different on the client and server.
22 // Ignore the messages with type UNKNOWN.
23 // see crbug/559338.
24 UNKNOWN = 0;
25
26 // Client Initialization: When the remote server starts up it sends a
27 // CompositorMessageToImpl of type INITIALIZE_IMPL to the client. This
28 // message should be processed by the embedder of the client compositor to
29 // create the Remote Client LayerTreeHost. The compositor protocol
30 // guarantees that this will be the first message sent to the client. No
31 // messages can be sent from the client before the server is started.
32 INITIALIZE_IMPL = 1;
33
34 // Client Shutdown: When the remote server is shutting down it sends a
35 // CompositorMessageToImpl of type CLOSE_IMPL to the client. The message
36 // should be processed by the embedder of the client compositor to destroy
37 // the Remote Client LayerTreeHost. This is guaranteed to be the last
38 // message sent to the client. No messages can be sent from the client after
39 // the server has been shutdown.
40 CLOSE_IMPL = 2;
41
42 // Informs the client that a fling animation on the server has stopped.
43 MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL = 3;
44 }
45
46 optional Type message_type = 1;
47
48 // Only one of the following fields will be set per CompositorMessageToImpl.
49
50 // Set for message Type::InitializeImpl.
51 optional InitializeImpl initialize_impl_message = 2;
52 }
53
54 // The embedder of the remote client compositor should process the
55 // InitializeImpl message to retrieve the LayerTreeSettings sent from the
56 // server. The settings sent from the server may be modified by the embedder.
57 message InitializeImpl {
58 optional LayerTreeSettings layer_tree_settings = 1;
59 }
OLDNEW
« no previous file with comments | « cc/proto/compositor_message.proto ('k') | cc/proto/compositor_message_to_main.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698