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_selection_bound.proto"; |
9 import "layer_tree.proto"; | 10 import "layer_tree.proto"; |
10 import "layer_tree_debug_state.proto"; | 11 import "layer_tree_debug_state.proto"; |
| 12 import "property_tree.proto"; |
| 13 import "size.proto"; |
11 import "vector2df.proto"; | 14 import "vector2df.proto"; |
12 | 15 |
13 package cc.proto; | 16 package cc.proto; |
14 | 17 |
15 option optimize_for = LITE_RUNTIME; | 18 option optimize_for = LITE_RUNTIME; |
16 | 19 |
17 message SkPictureData { | 20 message SkPictureData { |
18 optional SkPictureID id = 1; | 21 optional SkPictureID id = 1; |
19 optional bytes payload = 2; /* SkData */ | 22 optional bytes payload = 2; /* SkData */ |
20 } | 23 } |
21 | 24 |
22 message SkPictures { | 25 message SkPictures { |
23 repeated SkPictureData pictures = 1; | 26 repeated SkPictureData pictures = 1; |
24 } | 27 } |
25 | 28 |
26 message LayerTreeHost { | 29 message LayerTreeHost { |
27 // Not all members of LayerTreeHost are serialized, as they are not helpful | 30 // Not all members of LayerTreeHost are serialized, as they are not helpful |
28 // for remote usage. See implementation of | 31 // for remote usage. See implementation of |
29 // cc::LayerTreeHost::ToProtobufForCommit for details. | 32 // cc::LayerTreeHost::ToProtobufForCommit for details. |
| 33 optional bool needs_full_tree_sync = 1; |
| 34 optional bool needs_meta_info_recomputation = 2; |
30 optional int32 source_frame_number = 3; | 35 optional int32 source_frame_number = 3; |
31 optional int32 meta_information_sequence_number = 4; | 36 optional int32 meta_information_sequence_number = 4; |
| 37 optional LayerNode root_layer = 5; |
| 38 optional LayerUpdate layer_updates = 6; |
| 39 optional int32 hud_layer_id = 7; |
32 optional LayerTreeDebugState debug_state = 8; | 40 optional LayerTreeDebugState debug_state = 8; |
| 41 optional Size device_viewport_size = 9; |
| 42 optional bool top_controls_shrink_blink_size = 10; |
| 43 optional float top_controls_height = 11; |
| 44 optional float top_controls_shown_ratio = 12; |
| 45 optional float device_scale_factor = 13; |
| 46 optional float painted_device_scale_factor = 14; |
| 47 optional float page_scale_factor = 15; |
| 48 optional float min_page_scale_factor = 16; |
| 49 optional float max_page_scale_factor = 17; |
33 optional Vector2dF elastic_overscroll = 18; | 50 optional Vector2dF elastic_overscroll = 18; |
34 optional bool has_gpu_rasterization_trigger = 19; | 51 optional bool has_gpu_rasterization_trigger = 19; |
35 optional bool content_is_suitable_for_gpu_rasterization = 20; | 52 optional bool content_is_suitable_for_gpu_rasterization = 20; |
| 53 optional uint32 background_color = 21; /* SkColor */ |
| 54 optional bool has_transparent_background = 22; |
36 optional int32 id = 23; | 55 optional int32 id = 23; |
37 optional bool next_commit_forces_redraw = 24; | 56 optional bool next_commit_forces_redraw = 24; |
| 57 optional int32 overscroll_elasticity_layer_id = 25; |
| 58 optional int32 page_scale_layer_id = 26; |
| 59 optional int32 inner_viewport_scroll_layer_id = 27; |
| 60 optional int32 outer_viewport_scroll_layer_id = 28; |
| 61 optional LayerSelection selection = 29; |
| 62 optional PropertyTrees property_trees = 30; |
38 optional uint32 surface_client_id = 31; | 63 optional uint32 surface_client_id = 31; |
39 optional uint32 next_surface_sequence = 32; | 64 optional uint32 next_surface_sequence = 32; |
| 65 optional uint32 wheel_event_listener_properties = 33; |
| 66 optional bool have_scroll_event_handlers = 34; |
| 67 optional uint32 touch_start_or_move_event_listener_properties = 35; |
40 optional LayerTree layer_tree = 36; | 68 optional LayerTree layer_tree = 36; |
41 optional LayerUpdate layer_updates = 28; | 69 optional uint32 touch_end_or_cancel_event_listener_properties = 37; |
42 optional SkPictures pictures = 38; | 70 optional SkPictures pictures = 38; |
43 } | 71 } |
OLD | NEW |