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

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

Issue 1519293002: Add support for (de)serializing LayerTreeHost. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Added framework for (de)serializing Created 5 years 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 | « cc/proto/BUILD.gn ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(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 import "layer.proto";
8 import "layer_selection_bound.proto";
9 import "layer_tree_settings.proto";
10 import "layer_tree_debug_state.proto";
11 import "property_tree.proto";
12 import "size.proto";
13 import "vector2df.proto";
14
15 package cc.proto;
16
17 option optimize_for = LITE_RUNTIME;
18
19 message LayerTreeHost {
20 // struct UIResourceClientData {
21 // UIResourceClient* client;
22 // gfx::Size size;
23 //};
24
25 // typedef base::hash_map<UIResourceId, UIResourceClientData>
26 // UIResourceClientMap;
27 // UIResourceClientMap ui_resource_client_map_;
28 // int next_ui_resource_id_;
29
30 // typedef std::vector<UIResourceRequest> UIResourceRequestQueue;
31 // UIResourceRequestQueue ui_resource_request_queue_;
32
33 optional bool needs_full_tree_sync = 1;
34 optional bool needs_meta_info_recomputation = 2;
35
36 // LayerTreeHostClient* client_;
vmpstr 2015/12/18 19:15:13 These are created on the client side independently
nyquist 2016/01/11 20:05:35 Yes.
37 // scoped_ptr<Proxy> proxy_;
38 // scoped_ptr<TaskRunnerProvider> task_runner_provider_;
39
40 optional int32 source_frame_number = 3;
41 optional int32 meta_information_sequence_number = 4;
42 // for logging, so skip for now
43 // scoped_ptr<RenderingStatsInstrumentation> rendering_stats_instrumentation_;
44
45 // scoped_ptr<OutputSurface> new_output_surface_;
vmpstr 2015/12/18 19:15:13 The server shouldn't have these, right?
nyquist 2016/01/11 20:05:35 Yeah, the output surface should only be on the cli
46 // scoped_ptr<OutputSurface> current_output_surface_;
47 // bool output_surface_lost_;
48
49 optional LayerNode root_layer = 5;
50 optional LayerUpdate layer_updates = 6;
51 // LayerNode
vmpstr 2015/12/18 19:15:13 What are these?
nyquist 2016/01/11 20:05:35 Just comments about what the proto message names a
52 // LayerUpdate
53
54 optional LayerNode hud_layer = 7;
55 optional LayerUpdate hud_layer_updates = 8;
56 // LayerNode
57 // LayerUpdate
58
59 // base::WeakPtr<InputHandler> input_handler_weak_ptr_;
60
61 optional LayerTreeSettings settings = 9;
62 // kind of together with hud layer things
63 optional LayerTreeDebugState debug_state = 10;
64 optional Size device_viewport_size = 11;
65 optional bool top_controls_shrink_blink_size = 12;
66 optional float top_controls_height = 13;
67 optional float top_controls_shown_ratio = 14;
68 optional float device_scale_factor = 15;
69 optional float painted_device_scale_factor = 16;
70
71 // don't really need this, so skip. we'll handle this on the client.
72 // bool visible_;
vmpstr 2015/12/18 19:15:13 I'd want to verify if this is possible to switch f
nyquist 2016/01/11 20:05:35 This will be sent separately from the client to th
73
74 optional float page_scale_factor = 17;
75 optional float min_page_scale_factor = 18;
76 optional float max_page_scale_factor = 19;
77 optional Vector2dF elastic_overscroll = 20;
78 optional bool has_gpu_rasterization_trigger = 21;
79 optional bool content_is_suitable_for_gpu_rasterization = 22;
80 optional bool gpu_rasterization_histogram_recorded = 23;
vmpstr 2015/12/18 19:15:13 This is a bit awkward to serialize. Either the cli
nyquist 2016/01/11 20:05:35 Agreed. I'll remove it.
81
82 optional uint32 background_color = 24; /* SkColor */
83 optional bool has_transparent_background = 25;
84
85 // skip animations for now
vmpstr 2015/12/18 19:15:13 This looks iffy. Why do we skip animations?
nyquist 2016/01/11 20:05:35 We don't know how to serialize animations yet. :-(
86 // scoped_ptr<AnimationRegistrar> animation_registrar_;
87 // scoped_ptr<AnimationHost> animation_host_;
88
89 // scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
90
91 // If set, then page scale animation has completed, but the client hasn't been
92 // notified about it yet.
93 // bool did_complete_scale_animation_;
94
95 optional bool in_paint_layer_contents = 26;
96
97 optional int32 id = 27;
98 optional bool next_commit_forces_redraw = 28;
99
100 optional int32 overscroll_elasticity_layer_id = 29;
101 optional int32 page_scale_layer = 30;
102 optional int32 inner_viewport_scroll_layer = 31;
103 optional int32 outer_viewport_scroll_layer = 32;
104
105 optional LayerSelection selection = 33;
106
107 // SharedBitmapManager* shared_bitmap_manager_;
108 // gpu::GpuMemoryBufferManager* gpu_memory_buffer_manager_;
109 // TaskGraphRunner* task_graph_runner_;
110
111 // promise to ignore it for now.
vmpstr 2015/12/18 19:15:13 :P what is this used for?
nyquist 2016/01/11 20:05:35 perf measurements apparently.
112 // std::vector<scoped_ptr<SwapPromise>> swap_promise_list_;
113 // std::set<SwapPromiseMonitor*> swap_promise_monitor_;
114
115 optional PropertyTrees property_trees = 34;
116
117 // part of the root layer and layer updates
118 // typedef base::hash_map<int, Layer*> LayerIdMap;
119 // LayerIdMap layer_id_map_;
120
121 optional uint32 surface_id_namespace = 35;
122 optional uint32 next_surface_sequence = 36;
123 }
OLDNEW
« no previous file with comments | « cc/proto/BUILD.gn ('k') | cc/trees/layer_tree_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698