| 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 37 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 48 const LayerTreeSettings& settings() const; | 48 const LayerTreeSettings& settings() const; |
| 49 OutputSurface* output_surface() const; | 49 OutputSurface* output_surface() const; |
| 50 ResourceProvider* resource_provider() const; | 50 ResourceProvider* resource_provider() const; |
| 51 TileManager* tile_manager() const; | 51 TileManager* tile_manager() const; |
| 52 FrameRateCounter* frame_rate_counter() const; | 52 FrameRateCounter* frame_rate_counter() const; |
| 53 bool IsActiveTree() const; | 53 bool IsActiveTree() const; |
| 54 bool IsPendingTree() const; | 54 bool IsPendingTree() const; |
| 55 LayerImpl* FindActiveTreeLayerById(int id); | 55 LayerImpl* FindActiveTreeLayerById(int id); |
| 56 LayerImpl* FindPendingTreeLayerById(int id); | 56 LayerImpl* FindPendingTreeLayerById(int id); |
| 57 int MaxTextureSize() const; | 57 int MaxTextureSize() const; |
| 58 bool PinchGestureActive() const; |
| 58 | 59 |
| 59 // Tree specific methods exposed to layer-impl tree. | 60 // Tree specific methods exposed to layer-impl tree. |
| 60 // --------------------------------------------------------------------------- | 61 // --------------------------------------------------------------------------- |
| 61 void SetNeedsRedraw(); | 62 void SetNeedsRedraw(); |
| 62 void SetNeedsUpdateDrawProperties(); | 63 void SetNeedsUpdateDrawProperties(); |
| 63 | 64 |
| 64 // TODO(nduca): These are implemented in cc files temporarily, but will become | 65 // TODO(nduca): These are implemented in cc files temporarily, but will become |
| 65 // trivial accessors in a followup patch. | 66 // trivial accessors in a followup patch. |
| 66 const LayerTreeDebugState& debug_state() const; | 67 const LayerTreeDebugState& debug_state() const; |
| 67 float device_scale_factor() const; | 68 float device_scale_factor() const; |
| (...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 152 // List of visible layers for the most recently prepared frame. Used for | 153 // List of visible layers for the most recently prepared frame. Used for |
| 153 // rendering and input event hit testing. | 154 // rendering and input event hit testing. |
| 154 LayerList render_surface_layer_list_; | 155 LayerList render_surface_layer_list_; |
| 155 | 156 |
| 156 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 157 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
| 157 }; | 158 }; |
| 158 | 159 |
| 159 } | 160 } |
| 160 | 161 |
| 161 #endif // CC_LAYER_TREE_IMPL_H_ | 162 #endif // CC_LAYER_TREE_IMPL_H_ |
| OLD | NEW |