OLD | NEW |
---|---|
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 113 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
124 const RenderSurfaceImpl* RootRenderSurface() const; | 124 const RenderSurfaceImpl* RootRenderSurface() const; |
125 bool LayerListIsEmpty() const; | 125 bool LayerListIsEmpty() const; |
126 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); | 126 void SetRootLayerForTesting(std::unique_ptr<LayerImpl>); |
127 void OnCanDrawStateChangedForTree(); | 127 void OnCanDrawStateChangedForTree(); |
128 bool IsRootLayer(const LayerImpl* layer) const; | 128 bool IsRootLayer(const LayerImpl* layer) const; |
129 std::unique_ptr<OwnedLayerImplList> DetachLayers(); | 129 std::unique_ptr<OwnedLayerImplList> DetachLayers(); |
130 | 130 |
131 void SetPropertyTrees(PropertyTrees* property_trees); | 131 void SetPropertyTrees(PropertyTrees* property_trees); |
132 PropertyTrees* property_trees() { return &property_trees_; } | 132 PropertyTrees* property_trees() { return &property_trees_; } |
133 | 133 |
134 #if DCHECK_IS_ON() | |
135 // Returns true if the layer tree properties are safe to access. This occurs | |
136 // when the layer tree host is not currently syncing properties, or when a | |
137 // sync is in process but the property tree has been updated. See: | |
138 // |LayerTreeHostImpl::SyncState|. | |
139 bool PropertyTreeSyncComplete() const { | |
140 return layer_tree_host_impl_->SyncStateComplete(SYNCED_PROPERTY_TREES); | |
enne (OOO)
2017/05/12 17:25:06
Is it possible to just have this hidden inside of
pdr.
2017/05/15 18:30:24
I've added a TODO comment here that we want to do
| |
141 } | |
142 #endif | |
143 | |
144 void PushPropertyTreesTo(LayerTreeImpl* tree_impl); | |
134 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 145 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
135 | 146 |
136 void MoveChangeTrackingToLayers(); | 147 void MoveChangeTrackingToLayers(); |
137 | 148 |
138 void ForceRecalculateRasterScales(); | 149 void ForceRecalculateRasterScales(); |
139 | 150 |
140 LayerImplList::const_iterator begin() const; | 151 LayerImplList::const_iterator begin() const; |
141 LayerImplList::const_iterator end() const; | 152 LayerImplList::const_iterator end() const; |
142 LayerImplList::reverse_iterator rbegin(); | 153 LayerImplList::reverse_iterator rbegin(); |
143 LayerImplList::reverse_iterator rend(); | 154 LayerImplList::reverse_iterator rend(); |
(...skipping 440 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
584 | 595 |
585 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 596 std::unique_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
586 | 597 |
587 private: | 598 private: |
588 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 599 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
589 }; | 600 }; |
590 | 601 |
591 } // namespace cc | 602 } // namespace cc |
592 | 603 |
593 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 604 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |