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

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

Issue 2320823003: cc/blimp: Remove Initialize and Close messages. (Closed)
Patch Set: format 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 | « blimp/client/core/compositor/blimp_compositor_unittest.cc ('k') | cc/test/layer_tree_test.h » ('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";
(...skipping 28 matching lines...) Expand all
39 39
40 message CompositorMessageToImpl { 40 message CompositorMessageToImpl {
41 enum Type { 41 enum Type {
42 // The enum values which are unknown get mapped to the default value, which 42 // The enum values which are unknown get mapped to the default value, which
43 // is zero. This can happen with when the protocol version skewing is 43 // is zero. This can happen with when the protocol version skewing is
44 // different on the client and server. 44 // different on the client and server.
45 // Ignore the messages with type UNKNOWN. 45 // Ignore the messages with type UNKNOWN.
46 // see crbug/559338. 46 // see crbug/559338.
47 UNKNOWN = 0; 47 UNKNOWN = 0;
48 48
49 // Client Initialization: When the remote server starts up it sends a
50 // CompositorMessageToImpl of type INITIALIZE_IMPL to the client. This
51 // message should be processed by the embedder of the client compositor to
52 // create the Remote Client LayerTreeHost. The compositor protocol
53 // guarantees that this will be the first message sent to the client. No
54 // messages can be sent from the client before the server is started.
55 INITIALIZE_IMPL = 1;
56
57 // Client Shutdown: When the remote server is shutting down it sends a
58 // CompositorMessageToImpl of type CLOSE_IMPL to the client. The message
59 // should be processed by the embedder of the client compositor to destroy
60 // the Remote Client LayerTreeHost. This is guaranteed to be the last
61 // message sent to the client. No messages can be sent from the client after
62 // the server has been shutdown.
63 CLOSE_IMPL = 2;
64
65 // Informs the client that a fling animation on the server has stopped.
66 MAIN_THREAD_HAS_STOPPED_FLINGING_ON_IMPL = 3;
67
68 // Sent to the client to request a commit. The client will respond with 49 // Sent to the client to request a commit. The client will respond with
69 // CompositorMessageToMain of type BEGIN_MAIN_FRAME. 50 // CompositorMessageToMain of type BEGIN_MAIN_FRAME.
70 SET_NEEDS_COMMIT = 4; 51 SET_NEEDS_COMMIT = 4;
71 52
72 // Informs the client to start/stop commit requests. The message can be sent 53 // Informs the client to start/stop commit requests. The message can be sent
73 // any time to the client. 54 // any time to the client.
74 SET_DEFER_COMMITS = 5; 55 SET_DEFER_COMMITS = 5;
75 56
76 // Sent in response to a CompositorMessageToMain of type BEGIN_MAIN_FRAME 57 // Sent in response to a CompositorMessageToMain of type BEGIN_MAIN_FRAME
77 // from the client, with the updated state of the LayerTreeHost. 58 // from the client, with the updated state of the LayerTreeHost.
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 optional LayerTreeHost layer_tree_host = 1; 97 optional LayerTreeHost layer_tree_host = 1;
117 } 98 }
118 99
119 message BeginMainFrameAborted { 100 message BeginMainFrameAborted {
120 optional CommitEarlyOutReason reason = 1; 101 optional CommitEarlyOutReason reason = 1;
121 } 102 }
122 103
123 message SetNeedsRedraw { 104 message SetNeedsRedraw {
124 optional Rect damaged_rect = 1; 105 optional Rect damaged_rect = 1;
125 } 106 }
OLDNEW
« no previous file with comments | « blimp/client/core/compositor/blimp_compositor_unittest.cc ('k') | cc/test/layer_tree_test.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698