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

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

Issue 2861593004: Replace three callsites to LayerImpl::GetRenderSurface with effect tree calls. (Closed)
Patch Set: Created 3 years, 7 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 104 matching lines...) Expand 10 before | Expand all | Expand 10 after
115 // --------------------------------------------------------------------------- 115 // ---------------------------------------------------------------------------
116 void GetAllPrioritizedTilesForTracing( 116 void GetAllPrioritizedTilesForTracing(
117 std::vector<PrioritizedTile>* prioritized_tiles) const; 117 std::vector<PrioritizedTile>* prioritized_tiles) const;
118 void AsValueInto(base::trace_event::TracedValue* dict) const; 118 void AsValueInto(base::trace_event::TracedValue* dict) const;
119 119
120 // Other public methods 120 // Other public methods
121 // --------------------------------------------------------------------------- 121 // ---------------------------------------------------------------------------
122 LayerImpl* root_layer_for_testing() { 122 LayerImpl* root_layer_for_testing() {
123 return layer_list_.empty() ? nullptr : layer_list_[0]; 123 return layer_list_.empty() ? nullptr : layer_list_[0];
124 } 124 }
125 RenderSurfaceImpl* RootRenderSurface() const; 125 const RenderSurfaceImpl* RootRenderSurface() const;
126 bool LayerListIsEmpty() const; 126 bool LayerListIsEmpty() const;
127 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); 127 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>);
128 void OnCanDrawStateChangedForTree(); 128 void OnCanDrawStateChangedForTree();
129 bool IsRootLayer(const LayerImpl* layer) const; 129 bool IsRootLayer(const LayerImpl* layer) const;
130 std::unique_ptr<OwnedLayerImplList> DetachLayers(); 130 std::unique_ptr<OwnedLayerImplList> DetachLayers();
131 131
132 void SetPropertyTrees(PropertyTrees* property_trees); 132 void SetPropertyTrees(PropertyTrees* property_trees);
133 PropertyTrees* property_trees() { return &property_trees_; } 133 PropertyTrees* property_trees() { return &property_trees_; }
134 134
135 void PushPropertiesTo(LayerTreeImpl* tree_impl); 135 void PushPropertiesTo(LayerTreeImpl* tree_impl);
(...skipping 446 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 582
583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; 583 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_;
584 584
585 private: 585 private:
586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); 586 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl);
587 }; 587 };
588 588
589 } // namespace cc 589 } // namespace cc
590 590
591 #endif // CC_TREES_LAYER_TREE_IMPL_H_ 591 #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