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

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

Issue 2251143002: cc: Reland Move data to LayerTree from LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: better fix? Created 4 years, 4 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
OLDNEW
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";
10 import "layer_tree.proto"; 9 import "layer_tree.proto";
11 import "layer_tree_debug_state.proto"; 10 import "layer_tree_debug_state.proto";
12 import "property_tree.proto";
13 import "size.proto";
14 import "vector2df.proto"; 11 import "vector2df.proto";
15 12
16 package cc.proto; 13 package cc.proto;
17 14
18 option optimize_for = LITE_RUNTIME; 15 option optimize_for = LITE_RUNTIME;
19 16
20 message SkPictureData { 17 message SkPictureData {
21 optional SkPictureID id = 1; 18 optional SkPictureID id = 1;
22 optional bytes payload = 2; /* SkData */ 19 optional bytes payload = 2; /* SkData */
23 } 20 }
24 21
25 message SkPictures { 22 message SkPictures {
26 repeated SkPictureData pictures = 1; 23 repeated SkPictureData pictures = 1;
27 } 24 }
28 25
29 message LayerTreeHost { 26 message LayerTreeHost {
30 // Not all members of LayerTreeHost are serialized, as they are not helpful 27 // Not all members of LayerTreeHost are serialized, as they are not helpful
31 // for remote usage. See implementation of 28 // for remote usage. See implementation of
32 // cc::LayerTreeHost::ToProtobufForCommit for details. 29 // cc::LayerTreeHost::ToProtobufForCommit for details.
33 optional bool needs_full_tree_sync = 1;
34 optional bool needs_meta_info_recomputation = 2;
35 optional int32 source_frame_number = 3; 30 optional int32 source_frame_number = 3;
36 optional int32 meta_information_sequence_number = 4; 31 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;
40 optional LayerTreeDebugState debug_state = 8; 32 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;
50 optional Vector2dF elastic_overscroll = 18; 33 optional Vector2dF elastic_overscroll = 18;
51 optional bool has_gpu_rasterization_trigger = 19; 34 optional bool has_gpu_rasterization_trigger = 19;
52 optional bool content_is_suitable_for_gpu_rasterization = 20; 35 optional bool content_is_suitable_for_gpu_rasterization = 20;
53 optional uint32 background_color = 21; /* SkColor */
54 optional bool has_transparent_background = 22;
55 optional int32 id = 23; 36 optional int32 id = 23;
56 optional bool next_commit_forces_redraw = 24; 37 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;
63 optional uint32 surface_client_id = 31; 38 optional uint32 surface_client_id = 31;
64 optional uint32 next_surface_sequence = 32; 39 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;
68 optional LayerTree layer_tree = 36; 40 optional LayerTree layer_tree = 36;
69 optional uint32 touch_end_or_cancel_event_listener_properties = 37; 41 optional LayerUpdate layer_updates = 28;
70 optional SkPictures pictures = 38; 42 optional SkPictures pictures = 38;
71 } 43 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698