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_LAYER_TREE_IMPL_H_ | 5 #ifndef CC_LAYER_TREE_IMPL_H_ |
| 6 #define CC_LAYER_TREE_IMPL_H_ | 6 #define CC_LAYER_TREE_IMPL_H_ |
| 7 | 7 |
| 8 #include "base/hash_tables.h" | 8 #include "base/hash_tables.h" |
| 9 #include "cc/layer_impl.h" | 9 #include "cc/layer_impl.h" |
| 10 | 10 |
| (...skipping 22 matching lines...) Expand all Loading... | |
| 33 class TileManager; | 33 class TileManager; |
| 34 | 34 |
| 35 class CC_EXPORT LayerTreeImpl { | 35 class CC_EXPORT LayerTreeImpl { |
| 36 public: | 36 public: |
| 37 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l) | 37 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp l) |
| 38 { | 38 { |
| 39 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); | 39 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); |
| 40 } | 40 } |
| 41 virtual ~LayerTreeImpl(); | 41 virtual ~LayerTreeImpl(); |
| 42 | 42 |
| 43 // Methods called by the layer tree that pass-through to LHTI. | 43 // Methods called by the layer tree that pass-through or access LTHI. |
| 44 // --------------------------------------------------------------------------- | 44 // --------------------------------------------------------------------------- |
| 45 const LayerTreeSettings& settings() const; | 45 const LayerTreeSettings& settings() const; |
| 46 OutputSurface* output_surface() const; | 46 OutputSurface* output_surface() const; |
| 47 ResourceProvider* resource_provider() const; | 47 ResourceProvider* resource_provider() const; |
| 48 TileManager* tile_manager() const; | 48 TileManager* tile_manager() const; |
| 49 FrameRateCounter* frame_rate_counter() const; | 49 FrameRateCounter* frame_rate_counter() const; |
| 50 bool IsActiveTree() const; | |
| 51 bool IsPendingTree() const; | |
| 52 LayerImpl* ActiveTreeLayerById(int id); | |
|
nduca
2012/12/14 02:18:43
Get or FindActiveTreeLayerByBlah
enne (OOO)
2012/12/14 17:30:53
Ok, sure. FindActiveTreeLayerByBlah, it is.
| |
| 53 LayerImpl* PendingTreeLayerById(int id); | |
| 50 | 54 |
| 51 // Tree specific methods exposed to layer-impl tree. | 55 // Tree specific methods exposed to layer-impl tree. |
| 52 // --------------------------------------------------------------------------- | 56 // --------------------------------------------------------------------------- |
| 53 void SetNeedsRedraw(); | 57 void SetNeedsRedraw(); |
| 54 void SetNeedsUpdateDrawProperties(); | 58 void SetNeedsUpdateDrawProperties(); |
| 55 | 59 |
| 56 // TODO(nduca): These are implemented in cc files temporarily, but will become | 60 // TODO(nduca): These are implemented in cc files temporarily, but will become |
| 57 // trivial accessors in a followup patch. | 61 // trivial accessors in a followup patch. |
| 58 const LayerTreeDebugState& debug_state() const; | 62 const LayerTreeDebugState& debug_state() const; |
| 59 float device_scale_factor() const; | 63 float device_scale_factor() const; |
| (...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 103 | 107 |
| 104 // Persisted state | 108 // Persisted state |
| 105 int scrolling_layer_id_from_previous_tree_; | 109 int scrolling_layer_id_from_previous_tree_; |
| 106 | 110 |
| 107 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 111 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 108 }; | 112 }; |
| 109 | 113 |
| 110 } | 114 } |
| 111 | 115 |
| 112 #endif // CC_LAYER_TREE_IMPL_H_ | 116 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |