OLD | NEW |
| (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 "begin_main_frame_and_commit_state.proto"; | |
10 | |
11 package cc.proto; | |
12 | |
13 // Control messages sent to the main side of the compositor(server) from the | |
14 // impl side of the compositor(client). | |
15 // TODO(khushalsagar): Are any more messages required? (See crbug.com/584078) | |
16 message CompositorMessageToMain { | |
17 enum Type { | |
18 // The enum values which are unknown get mapped to the default value, which | |
19 // is zero. This can happen with when the protocol version is different on | |
20 // the client and server. | |
21 // Ignore the messages with type UNKNOWN. | |
22 UNKNOWN = 0; | |
23 | |
24 // Sent by the client to start the commit process. See | |
25 // compositor_message_to_impl.proto for details. | |
26 BEGIN_MAIN_FRAME = 1; | |
27 } | |
28 | |
29 optional Type message_type = 1; | |
30 | |
31 // Only one of the following fields will be set per CompositorMessageToMain. | |
32 | |
33 // Set for message Type::BEGIN_MAIN_FRAME. | |
34 optional BeginMainFrame begin_main_frame_message = 2; | |
35 } | |
36 | |
37 message BeginMainFrame { | |
38 optional BeginMainFrameAndCommitState begin_main_frame_state = 1; | |
39 } | |
OLD | NEW |