| OLD | NEW |
| (Empty) |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 syntax = "proto2"; | |
| 6 | |
| 7 option optimize_for = LITE_RUNTIME; | |
| 8 | |
| 9 import "client_state_update.proto"; | |
| 10 import "layer_tree_host.proto"; | |
| 11 | |
| 12 package cc.proto; | |
| 13 | |
| 14 // A top level message for serialized state used by the compositor remote | |
| 15 // channels. | |
| 16 // TODO(khushalsagar): Remove CompositorMessage and stop using | |
| 17 // RemoteProtoChannel to plumb these to/from the browser. See crbug.com/648442 | |
| 18 message CompositorMessage { | |
| 19 // Engine -> Client | |
| 20 // Frame Update. | |
| 21 optional LayerTreeHost layer_tree_host = 3; | |
| 22 | |
| 23 // Client -> Engine | |
| 24 // Sent from the client to the engine when a frame update was processed | |
| 25 // on the client. | |
| 26 optional bool frame_ack = 4; | |
| 27 | |
| 28 // Client -> Engine | |
| 29 // Reports any changes made to the main thread state on the compositor thread | |
| 30 // on the client. | |
| 31 optional ClientStateUpdate client_state_update = 5; | |
| 32 | |
| 33 // Engine -> Client | |
| 34 // Acknowledges the application of the client state update to the associated | |
| 35 // state on the engine. | |
| 36 // If the application of the update resulted in any additional changes to the | |
| 37 // state on the engine, the ack will always be bundled with the resulting | |
| 38 // frame update. | |
| 39 optional bool client_state_update_ack = 6; | |
| 40 } | |
| OLD | NEW |