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

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

Issue 2080703005: cc: Remove LayerTreeImpl::root_layer usage outside tests (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_unittest_animation.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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 127
128 // Tracing methods. 128 // Tracing methods.
129 // --------------------------------------------------------------------------- 129 // ---------------------------------------------------------------------------
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 RenderSurfaceImpl* RootRenderSurface() const;
138 bool LayerListIsEmpty() const;
137 void SetRootLayer(std::unique_ptr<LayerImpl>); 139 void SetRootLayer(std::unique_ptr<LayerImpl>);
138 void SetRootLayerFromLayerList(); 140 void SetRootLayerFromLayerList();
139 bool IsRootLayer(const LayerImpl* layer) const; 141 bool IsRootLayer(const LayerImpl* layer) const;
140 std::unique_ptr<OwnedLayerImplList> DetachLayers(); 142 std::unique_ptr<OwnedLayerImplList> DetachLayers();
141 143
142 void SetPropertyTrees(PropertyTrees* property_trees); 144 void SetPropertyTrees(PropertyTrees* property_trees);
143 PropertyTrees* property_trees() { return &property_trees_; } 145 PropertyTrees* property_trees() { return &property_trees_; }
144 146
145 void UpdatePropertyTreesForBoundsDelta(); 147 void UpdatePropertyTreesForBoundsDelta();
146 148
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
583 585
584 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 586 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
585 587
586 private: 588 private:
587 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 589 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
588 }; 590 };
589 591
590 } // namespace cc 592 } // namespace cc
591 593
592 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 594 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_unittest_animation.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698