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

Side by Side Diff: cc/trees/layer_tree.h

Issue 2375363002: cc/blimp: Set up the framework for state serialization. (Closed)
Patch Set: tests Created 4 years, 2 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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 #ifndef CC_TREES_LAYER_TREE_H_ 5 #ifndef CC_TREES_LAYER_TREE_H_
6 #define CC_TREES_LAYER_TREE_H_ 6 #define CC_TREES_LAYER_TREE_H_
7 7
8 #include <memory> 8 #include <memory>
9 #include <unordered_map> 9 #include <unordered_map>
10 #include <unordered_set> 10 #include <unordered_set>
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 void UpdateHudLayer(bool show_hud_info); 176 void UpdateHudLayer(bool show_hud_info);
177 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); } 177 HeadsUpDisplayLayer* hud_layer() const { return hud_layer_.get(); }
178 178
179 virtual void SetNeedsFullTreeSync(); 179 virtual void SetNeedsFullTreeSync();
180 bool needs_full_tree_sync() const { return needs_full_tree_sync_; } 180 bool needs_full_tree_sync() const { return needs_full_tree_sync_; }
181 181
182 void SetPropertyTreesNeedRebuild(); 182 void SetPropertyTreesNeedRebuild();
183 183
184 void PushPropertiesTo(LayerTreeImpl* tree_impl); 184 void PushPropertiesTo(LayerTreeImpl* tree_impl);
185 185
186 void ToProtobuf(proto::LayerTree* proto); 186 void ToProtobuf(proto::LayerTree* proto, bool inputs_only);
187 void FromProtobuf(const proto::LayerTree& proto); 187 void FromProtobuf(const proto::LayerTree& proto);
188 188
189 AnimationHost* animation_host() const { return animation_host_.get(); } 189 AnimationHost* animation_host() const { return animation_host_.get(); }
190 190
191 Layer* LayerByElementId(ElementId element_id) const; 191 Layer* LayerByElementId(ElementId element_id) const;
192 void RegisterElement(ElementId element_id, 192 void RegisterElement(ElementId element_id,
193 ElementListType list_type, 193 ElementListType list_type,
194 Layer* layer); 194 Layer* layer);
195 void UnregisterElement(ElementId element_id, 195 void UnregisterElement(ElementId element_id,
196 ElementListType list_type, 196 ElementListType list_type,
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
311 // external embedder. 311 // external embedder.
312 EnginePictureCache* engine_picture_cache_; 312 EnginePictureCache* engine_picture_cache_;
313 ClientPictureCache* client_picture_cache_; 313 ClientPictureCache* client_picture_cache_;
314 314
315 DISALLOW_COPY_AND_ASSIGN(LayerTree); 315 DISALLOW_COPY_AND_ASSIGN(LayerTree);
316 }; 316 };
317 317
318 } // namespace cc 318 } // namespace cc
319 319
320 #endif // CC_TREES_LAYER_TREE_H_ 320 #endif // CC_TREES_LAYER_TREE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698