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 import "display_item.proto"; | 7 import "display_item.proto"; |
8 import "layer.proto"; | 8 import "layer.proto"; |
9 import "layer_tree.proto"; | 9 import "layer_tree.proto"; |
10 import "layer_tree_debug_state.proto"; | 10 import "layer_tree_debug_state.proto"; |
11 | 11 |
12 package cc.proto; | 12 package cc.proto; |
13 | 13 |
14 option optimize_for = LITE_RUNTIME; | 14 option optimize_for = LITE_RUNTIME; |
15 | 15 |
16 message SkPictureData { | 16 message SkPictureData { |
17 optional SkPictureID id = 1; | 17 optional SkPictureID id = 1; |
18 optional bytes payload = 2; /* SkData */ | 18 optional bytes payload = 2; /* SkData */ |
19 } | 19 } |
20 | 20 |
21 message SkPictures { | 21 message SkPictures { |
22 repeated SkPictureData pictures = 1; | 22 repeated SkPictureData pictures = 1; |
23 } | 23 } |
24 | 24 |
25 message LayerTreeHost { | 25 message LayerTreeHost { |
26 // Not all members of LayerTreeHost are serialized, as they are not helpful | 26 // Not all members of LayerTreeHost are serialized, as they are not helpful |
27 // for remote usage. See implementation of | 27 // for remote usage. See implementation of |
28 // cc::LayerTreeHost::ToProtobufForCommit for details. | 28 // cc::LayerTreeHost::ToProtobufForCommit for details. |
| 29 optional LayerTree layer_tree = 36; |
| 30 optional LayerUpdate layer_updates = 28; |
| 31 optional SkPictures pictures = 38; |
| 32 |
| 33 // TODO(khushalsagar): Remove these when crbug.com/648442. |
29 optional int32 source_frame_number = 3; | 34 optional int32 source_frame_number = 3; |
30 optional int32 meta_information_sequence_number = 4; | 35 optional int32 meta_information_sequence_number = 4; |
31 optional LayerTreeDebugState debug_state = 8; | 36 optional LayerTreeDebugState debug_state = 8; |
32 optional bool has_gpu_rasterization_trigger = 19; | 37 optional bool has_gpu_rasterization_trigger = 19; |
33 optional bool content_is_suitable_for_gpu_rasterization = 20; | 38 optional bool content_is_suitable_for_gpu_rasterization = 20; |
34 optional int32 id = 23; | 39 optional int32 id = 23; |
35 optional bool next_commit_forces_redraw = 24; | 40 optional bool next_commit_forces_redraw = 24; |
36 optional uint32 surface_client_id = 31; | 41 optional uint32 surface_client_id = 31; |
37 optional uint32 next_surface_sequence = 32; | 42 optional uint32 next_surface_sequence = 32; |
38 optional LayerTree layer_tree = 36; | |
39 optional LayerUpdate layer_updates = 28; | |
40 optional SkPictures pictures = 38; | |
41 } | 43 } |
OLD | NEW |