Chromium Code Reviews| 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 AllTilesForTracingInto(std::set<const Tile*>* tiles) const; | |
|
nduca
2014/08/20 01:05:16
Should this be GetAll...
| |
| 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 227 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 352 | 354 |
| 353 int render_surface_layer_list_id_; | 355 int render_surface_layer_list_id_; |
| 354 | 356 |
| 355 private: | 357 private: |
| 356 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 358 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 357 }; | 359 }; |
| 358 | 360 |
| 359 } // namespace cc | 361 } // namespace cc |
| 360 | 362 |
| 361 #endif // CC_TREES_LAYER_TREE_IMPL_H_ | 363 #endif // CC_TREES_LAYER_TREE_IMPL_H_ |
| OLD | NEW |