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

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

Issue 1832663002: cc : Determine if a layer is root by using the value in LayerTreeImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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.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 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 // Tracing methods. 125 // Tracing methods.
126 // --------------------------------------------------------------------------- 126 // ---------------------------------------------------------------------------
127 void GetAllPrioritizedTilesForTracing( 127 void GetAllPrioritizedTilesForTracing(
128 std::vector<PrioritizedTile>* prioritized_tiles) const; 128 std::vector<PrioritizedTile>* prioritized_tiles) const;
129 void AsValueInto(base::trace_event::TracedValue* dict) const; 129 void AsValueInto(base::trace_event::TracedValue* dict) const;
130 130
131 // Other public methods 131 // Other public methods
132 // --------------------------------------------------------------------------- 132 // ---------------------------------------------------------------------------
133 LayerImpl* root_layer() const { return root_layer_; } 133 LayerImpl* root_layer() const { return root_layer_; }
134 void SetRootLayer(scoped_ptr<LayerImpl>); 134 void SetRootLayer(scoped_ptr<LayerImpl>);
135 bool IsRootLayer(const LayerImpl* layer) const;
135 scoped_ptr<OwnedLayerImplList> DetachLayers(); 136 scoped_ptr<OwnedLayerImplList> DetachLayers();
136 void ClearLayers(); 137 void ClearLayers();
137 138
138 void SetPropertyTrees(const PropertyTrees property_trees) { 139 void SetPropertyTrees(const PropertyTrees property_trees) {
139 property_trees_ = property_trees; 140 property_trees_ = property_trees;
140 property_trees_.is_main_thread = false; 141 property_trees_.is_main_thread = false;
141 property_trees_.is_active = IsActiveTree(); 142 property_trees_.is_active = IsActiveTree();
142 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false); 143 property_trees_.transform_tree.set_source_to_parent_updates_allowed(false);
143 } 144 }
144 PropertyTrees* property_trees() { return &property_trees_; } 145 PropertyTrees* property_trees() { return &property_trees_; }
(...skipping 442 matching lines...) Expand 10 before | Expand all | Expand 10 after
587 588
588 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 589 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
589 590
590 private: 591 private:
591 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 592 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
592 }; 593 };
593 594
594 } // namespace cc 595 } // namespace cc
595 596
596 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 597 #endif // CC_TREES_LAYER_TREE_IMPL_H_
OLDNEW
« no previous file with comments | « cc/trees/layer_tree_host_impl.cc ('k') | cc/trees/layer_tree_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698