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 <list> | 8 #include <list> |
| 9 #include <set> |
9 #include <string> | 10 #include <string> |
10 #include <vector> | 11 #include <vector> |
11 | 12 |
12 #include "base/containers/hash_tables.h" | 13 #include "base/containers/hash_tables.h" |
13 #include "base/values.h" | 14 #include "base/values.h" |
14 #include "cc/base/scoped_ptr_vector.h" | 15 #include "cc/base/scoped_ptr_vector.h" |
15 #include "cc/base/swap_promise.h" | 16 #include "cc/base/swap_promise.h" |
16 #include "cc/layers/layer_impl.h" | 17 #include "cc/layers/layer_impl.h" |
17 #include "cc/output/renderer.h" | 18 #include "cc/output/renderer.h" |
18 #include "cc/resources/ui_resource_client.h" | 19 #include "cc/resources/ui_resource_client.h" |
(...skipping 86 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
105 | 106 |
106 // Tree specific methods exposed to layer-impl tree. | 107 // Tree specific methods exposed to layer-impl tree. |
107 // --------------------------------------------------------------------------- | 108 // --------------------------------------------------------------------------- |
108 void SetNeedsRedraw(); | 109 void SetNeedsRedraw(); |
109 | 110 |
110 // TODO(nduca): These are implemented in cc files temporarily, but will become | 111 // TODO(nduca): These are implemented in cc files temporarily, but will become |
111 // trivial accessors in a followup patch. | 112 // trivial accessors in a followup patch. |
112 const LayerTreeDebugState& debug_state() const; | 113 const LayerTreeDebugState& debug_state() const; |
113 float device_scale_factor() const; | 114 float device_scale_factor() const; |
114 DebugRectHistory* debug_rect_history() const; | 115 DebugRectHistory* debug_rect_history() const; |
| 116 void GetAllTilesForTracing(std::set<const Tile*>* tiles) const; |
115 void AsValueInto(base::debug::TracedValue* dict) const; | 117 void AsValueInto(base::debug::TracedValue* dict) const; |
116 | 118 |
117 // Other public methods | 119 // Other public methods |
118 // --------------------------------------------------------------------------- | 120 // --------------------------------------------------------------------------- |
119 LayerImpl* root_layer() const { return root_layer_.get(); } | 121 LayerImpl* root_layer() const { return root_layer_.get(); } |
120 void SetRootLayer(scoped_ptr<LayerImpl>); | 122 void SetRootLayer(scoped_ptr<LayerImpl>); |
121 scoped_ptr<LayerImpl> DetachLayerTree(); | 123 scoped_ptr<LayerImpl> DetachLayerTree(); |
122 | 124 |
123 void PushPropertiesTo(LayerTreeImpl* tree_impl); | 125 void PushPropertiesTo(LayerTreeImpl* tree_impl); |
124 | 126 |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
351 | 353 |
352 int render_surface_layer_list_id_; | 354 int render_surface_layer_list_id_; |
353 | 355 |
354 private: | 356 private: |
355 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 357 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
356 }; | 358 }; |
357 | 359 |
358 } // namespace cc | 360 } // namespace cc |
359 | 361 |
360 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 362 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
OLD | NEW |