OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 syntax = "proto2"; | 5 syntax = "proto2"; |
6 | 6 |
7 option optimize_for = LITE_RUNTIME; | 7 option optimize_for = LITE_RUNTIME; |
8 | 8 |
9 import "client_state_update.proto"; | 9 import "client_state_update.proto"; |
10 import "compositor_message_to_impl.proto"; | |
11 import "compositor_message_to_main.proto"; | |
12 import "layer_tree_host.proto"; | 10 import "layer_tree_host.proto"; |
13 | 11 |
14 package cc.proto; | 12 package cc.proto; |
15 | 13 |
16 // A top level message for serialized state used by the compositor remote | 14 // A top level message for serialized state used by the compositor remote |
17 // channels. | 15 // channels. |
18 // TODO(khushalsagar): Remove CompositorMessage and stop using | 16 // TODO(khushalsagar): Remove CompositorMessage and stop using |
19 // RemoteProtoChannel to plumb these to/from the browser. See crbug.com/648442 | 17 // RemoteProtoChannel to plumb these to/from the browser. See crbug.com/648442 |
20 message CompositorMessage { | 18 message CompositorMessage { |
21 // Engine -> Client | 19 // Engine -> Client |
(...skipping 10 matching lines...) Expand all Loading... |
32 // on the client. | 30 // on the client. |
33 optional ClientStateUpdate client_state_update = 5; | 31 optional ClientStateUpdate client_state_update = 5; |
34 | 32 |
35 // Engine -> Client | 33 // Engine -> Client |
36 // Acknowledges the application of the client state update to the associated | 34 // Acknowledges the application of the client state update to the associated |
37 // state on the engine. | 35 // state on the engine. |
38 // If the application of the update resulted in any additional changes to the | 36 // If the application of the update resulted in any additional changes to the |
39 // state on the engine, the ack will always be bundled with the resulting | 37 // state on the engine, the ack will always be bundled with the resulting |
40 // frame update. | 38 // frame update. |
41 optional bool client_state_update_ack = 6; | 39 optional bool client_state_update_ack = 6; |
42 | |
43 // One of these is set based on where the message is going to. | |
44 optional CompositorMessageToMain to_main = 1; | |
45 optional CompositorMessageToImpl to_impl = 2; | |
46 } | 40 } |
OLD | NEW |