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

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

Issue 2054483002: Revert of cc : Make LayerImpl destruction independent of tree hierarchy (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2012 The Chromium Authors. All rights reserved. 1 // Copyright 2012 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_IMPL_H_ 5 #ifndef CC_TREES_LAYER_TREE_IMPL_H_
6 #define CC_TREES_LAYER_TREE_IMPL_H_ 6 #define CC_TREES_LAYER_TREE_IMPL_H_
7 7
8 #include <map> 8 #include <map>
9 #include <set> 9 #include <set>
10 #include <string> 10 #include <string>
(...skipping 119 matching lines...) Expand 10 before | Expand all | Expand 10 after
130 void GetAllPrioritizedTilesForTracing( 130 void GetAllPrioritizedTilesForTracing(
131 std::vector<PrioritizedTile>* prioritized_tiles) const; 131 std::vector<PrioritizedTile>* prioritized_tiles) const;
132 void AsValueInto(base::trace_event::TracedValue* dict) const; 132 void AsValueInto(base::trace_event::TracedValue* dict) const;
133 133
134 // Other public methods 134 // Other public methods
135 // --------------------------------------------------------------------------- 135 // ---------------------------------------------------------------------------
136 LayerImpl* root_layer() const { return root_layer_; } 136 LayerImpl* root_layer() const { return root_layer_; }
137 void SetRootLayer(std::unique_ptr<LayerImpl>); 137 void SetRootLayer(std::unique_ptr<LayerImpl>);
138 bool IsRootLayer(const LayerImpl* layer) const; 138 bool IsRootLayer(const LayerImpl* layer) const;
139 std::unique_ptr<OwnedLayerImplList> DetachLayers(); 139 std::unique_ptr<OwnedLayerImplList> DetachLayers();
140 void ClearLayers();
140 141
141 void SetPropertyTrees(PropertyTrees* property_trees); 142 void SetPropertyTrees(PropertyTrees* property_trees);
142 PropertyTrees* property_trees() { return &property_trees_; } 143 PropertyTrees* property_trees() { return &property_trees_; }
143 144
144 void UpdatePropertyTreesForBoundsDelta(); 145 void UpdatePropertyTreesForBoundsDelta();
145 146
146 void PushPropertiesTo(LayerTreeImpl* tree_impl); 147 void PushPropertiesTo(LayerTreeImpl* tree_impl);
147 148
148 void MoveChangeTrackingToLayers(); 149 void MoveChangeTrackingToLayers();
149 150
(...skipping 429 matching lines...) Expand 10 before | Expand all | Expand 10 after
579 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 580 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
580 581
581 private: 582 private:
582 void BuildLayerListForTesting(); 583 void BuildLayerListForTesting();
583 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 584 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
584 }; 585 };
585 586
586 } // namespace cc 587 } // namespace cc
587 588
588 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 589 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl_unittest.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698