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 <set> | 8 #include <set> |
9 #include <string> | 9 #include <string> |
10 #include <vector> | 10 #include <vector> |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; | 109 BlockingTaskRunner* BlockingMainThreadTaskRunner() const; |
110 bool RequiresHighResToDraw() const; | 110 bool RequiresHighResToDraw() const; |
111 bool SmoothnessTakesPriority() const; | 111 bool SmoothnessTakesPriority() const; |
112 | 112 |
113 // Tree specific methods exposed to layer-impl tree. | 113 // Tree specific methods exposed to layer-impl tree. |
114 // --------------------------------------------------------------------------- | 114 // --------------------------------------------------------------------------- |
115 void SetNeedsRedraw(); | 115 void SetNeedsRedraw(); |
116 | 116 |
117 // Tracing methods. | 117 // Tracing methods. |
118 // --------------------------------------------------------------------------- | 118 // --------------------------------------------------------------------------- |
119 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const; | 119 void GetAllTilesAndPrioritiesForTracing( |
| 120 std::map<const Tile*, TilePriority>* tile_map) const; |
120 void AsValueInto(base::trace_event::TracedValue* dict) const; | 121 void AsValueInto(base::trace_event::TracedValue* dict) const; |
121 | 122 |
122 // Other public methods | 123 // Other public methods |
123 // --------------------------------------------------------------------------- | 124 // --------------------------------------------------------------------------- |
124 LayerImpl* root_layer() const { return root_layer_.get(); } | 125 LayerImpl* root_layer() const { return root_layer_.get(); } |
125 void SetRootLayer(scoped_ptr<LayerImpl>); | 126 void SetRootLayer(scoped_ptr<LayerImpl>); |
126 scoped_ptr<LayerImpl> DetachLayerTree(); | 127 scoped_ptr<LayerImpl> DetachLayerTree(); |
127 | 128 |
128 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 129 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
129 | 130 |
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
418 | 419 |
419 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; | 420 scoped_ptr<PendingPageScaleAnimation> pending_page_scale_animation_; |
420 | 421 |
421 private: | 422 private: |
422 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 423 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
423 }; | 424 }; |
424 | 425 |
425 } // namespace cc | 426 } // namespace cc |
426 | 427 |
427 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 428 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |