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

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

Issue 2314933004: cc/blimp: Remove the LayerTreeSettings serialization. (Closed)
Patch Set: Created 4 years, 3 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/BUILD.gn ('k') | cc/proto/layer_tree_settings.proto » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 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 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 "commit_earlyout_reason.proto"; 9 import "commit_earlyout_reason.proto";
10 import "layer_tree_host.proto"; 10 import "layer_tree_host.proto";
11 import "layer_tree_settings.proto";
12 import "rect.proto"; 11 import "rect.proto";
13 12
14 package cc.proto; 13 package cc.proto;
15 14
16 // Control messages sent to the impl side of the compositor (client) from the 15 // Control messages sent to the impl side of the compositor (client) from the
17 // main side of the compositor (server). 16 // main side of the compositor (server).
18 // Note: Unless specified in a comment, all fields in a message are required, 17 // Note: Unless specified in a comment, all fields in a message are required,
19 // even if listed as optional. 18 // even if listed as optional.
20 19
21 // Commit Flow: The commit flow defines the protocol for data exchange between 20 // Commit Flow: The commit flow defines the protocol for data exchange between
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
83 BEGIN_MAIN_FRAME_ABORTED = 7; 82 BEGIN_MAIN_FRAME_ABORTED = 7;
84 83
85 // Sent when a redraw is requested for the given damaged rect. 84 // Sent when a redraw is requested for the given damaged rect.
86 SET_NEEDS_REDRAW = 8; 85 SET_NEEDS_REDRAW = 8;
87 } 86 }
88 87
89 optional Type message_type = 1; 88 optional Type message_type = 1;
90 89
91 // Only one of the following fields will be set per CompositorMessageToImpl. 90 // Only one of the following fields will be set per CompositorMessageToImpl.
92 91
93 // Set for message Type::INITIALIZE_IMPL.
94 optional InitializeImpl initialize_impl_message = 2;
95
96 // Set for message Type::SET_DEFER_COMMITS. 92 // Set for message Type::SET_DEFER_COMMITS.
97 optional SetDeferCommits defer_commits_message = 3; 93 optional SetDeferCommits defer_commits_message = 3;
98 94
99 // Set for message Type::START_COMMIT. 95 // Set for message Type::START_COMMIT.
100 optional StartCommit start_commit_message = 4; 96 optional StartCommit start_commit_message = 4;
101 97
102 // Set for message Type::BEGIN_MAIN_FRAME_ABORTED. 98 // Set for message Type::BEGIN_MAIN_FRAME_ABORTED.
103 optional BeginMainFrameAborted begin_main_frame_aborted_message = 5; 99 optional BeginMainFrameAborted begin_main_frame_aborted_message = 5;
104 100
105 // Set for message Type::SET_NEEDS_REDRAW. 101 // Set for message Type::SET_NEEDS_REDRAW.
106 optional SetNeedsRedraw set_needs_redraw_message = 6; 102 optional SetNeedsRedraw set_needs_redraw_message = 6;
107 } 103 }
108 104
109 // The embedder of the remote client compositor should process the
110 // InitializeImpl message to retrieve the LayerTreeSettings sent from the
111 // server. The settings sent from the server may be modified by the embedder.
112 message InitializeImpl {
113 optional LayerTreeSettings layer_tree_settings = 1;
114 }
115
116 message SetDeferCommits { 105 message SetDeferCommits {
117 // If set to true, the client will defer sending any BEGIN_MAIN_FRAME messages 106 // If set to true, the client will defer sending any BEGIN_MAIN_FRAME messages
118 // to start a commit. The server must send a message with defer_commits set to 107 // to start a commit. The server must send a message with defer_commits set to
119 // false to allow the client to start commits. 108 // false to allow the client to start commits.
120 // Note: If a pending commit request from the server was throttled if the 109 // Note: If a pending commit request from the server was throttled if the
121 // client was defering commits, it will be honoured after the server informs 110 // client was defering commits, it will be honoured after the server informs
122 // the client to start commits. 111 // the client to start commits.
123 optional bool defer_commits = 1; 112 optional bool defer_commits = 1;
124 } 113 }
125 114
126 message StartCommit { 115 message StartCommit {
127 optional LayerTreeHost layer_tree_host = 1; 116 optional LayerTreeHost layer_tree_host = 1;
128 } 117 }
129 118
130 message BeginMainFrameAborted { 119 message BeginMainFrameAborted {
131 optional CommitEarlyOutReason reason = 1; 120 optional CommitEarlyOutReason reason = 1;
132 } 121 }
133 122
134 message SetNeedsRedraw { 123 message SetNeedsRedraw {
135 optional Rect damaged_rect = 1; 124 optional Rect damaged_rect = 1;
136 } 125 }
OLDNEW
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/proto/layer_tree_settings.proto » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698