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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 // --------------------------------------------------------------------------- | 47 // --------------------------------------------------------------------------- |
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 | 58 |
58 // Tree specific methods exposed to layer-impl tree. | 59 // Tree specific methods exposed to layer-impl tree. |
59 // --------------------------------------------------------------------------- | 60 // --------------------------------------------------------------------------- |
60 void SetNeedsRedraw(); | 61 void SetNeedsRedraw(); |
61 void SetNeedsUpdateDrawProperties(); | 62 void SetNeedsUpdateDrawProperties(); |
62 | 63 |
63 // TODO(nduca): These are implemented in cc files temporarily, but will become | 64 // TODO(nduca): These are implemented in cc files temporarily, but will become |
64 // trivial accessors in a followup patch. | 65 // trivial accessors in a followup patch. |
65 const LayerTreeDebugState& debug_state() const; | 66 const LayerTreeDebugState& debug_state() const; |
66 float device_scale_factor() const; | 67 float device_scale_factor() const; |
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
129 // List of visible layers for the most recently prepared frame. Used for | 130 // List of visible layers for the most recently prepared frame. Used for |
130 // rendering and input event hit testing. | 131 // rendering and input event hit testing. |
131 LayerList render_surface_layer_list_; | 132 LayerList render_surface_layer_list_; |
132 | 133 |
133 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 134 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
134 }; | 135 }; |
135 | 136 |
136 } | 137 } |
137 | 138 |
138 #endif // CC_LAYER_TREE_IMPL_H_ | 139 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |