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

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

Issue 2108883004: Remove LayerTreeImpl::SetRootLayerFromLayerListForTesting. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@propertytreestuff
Patch Set: Created 4 years, 5 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 AsValueInto(base::trace_event::TracedValue* dict) const; 130 void AsValueInto(base::trace_event::TracedValue* dict) const;
131 131
132 // Other public methods 132 // Other public methods
133 // --------------------------------------------------------------------------- 133 // ---------------------------------------------------------------------------
134 LayerImpl* root_layer_for_testing() { 134 LayerImpl* root_layer_for_testing() {
135 return layer_list_.empty() ? nullptr : layer_list_[0]; 135 return layer_list_.empty() ? nullptr : layer_list_[0];
136 } 136 }
137 RenderSurfaceImpl* RootRenderSurface() const; 137 RenderSurfaceImpl* RootRenderSurface() const;
138 bool LayerListIsEmpty() const; 138 bool LayerListIsEmpty() const;
139 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); 139 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>);
140 void SetRootLayerFromLayerListForTesting();
141 void OnCanDrawStateChangedForTree(); 140 void OnCanDrawStateChangedForTree();
142 bool IsRootLayer(const LayerImpl* layer) const; 141 bool IsRootLayer(const LayerImpl* layer) const;
143 std::unique_ptr<OwnedLayerImplList> DetachLayers(); 142 std::unique_ptr<OwnedLayerImplList> DetachLayers();
144 143
145 void SetPropertyTrees(PropertyTrees* property_trees); 144 void SetPropertyTrees(PropertyTrees* property_trees);
146 PropertyTrees* property_trees() { return &property_trees_; } 145 PropertyTrees* property_trees() { return &property_trees_; }
147 146
148 void UpdatePropertyTreesForBoundsDelta(); 147 void UpdatePropertyTreesForBoundsDelta();
149 148
150 void PushPropertiesTo(LayerTreeImpl* tree_impl); 149 void PushPropertiesTo(LayerTreeImpl* tree_impl);
(...skipping 436 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 586
588 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 587 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
589 588
590 private: 589 private:
591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 590 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
592 }; 591 };
593 592
594 } // namespace cc 593 } // namespace cc
595 594
596 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 595 #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