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 10 matching lines...) Expand all Loading... |
21 | 21 |
22 namespace cc { | 22 namespace cc { |
23 | 23 |
24 class DebugRectHistory; | 24 class DebugRectHistory; |
25 class FrameRateCounter; | 25 class FrameRateCounter; |
26 class HeadsUpDisplayLayerImpl; | 26 class HeadsUpDisplayLayerImpl; |
27 class LayerTreeDebugState; | 27 class LayerTreeDebugState; |
28 class LayerTreeHostImpl; | 28 class LayerTreeHostImpl; |
29 class LayerTreeImpl; | 29 class LayerTreeImpl; |
30 class LayerTreeSettings; | 30 class LayerTreeSettings; |
| 31 class MemoryHistory; |
31 class OutputSurface; | 32 class OutputSurface; |
32 class PaintTimeCounter; | 33 class PaintTimeCounter; |
33 class Proxy; | 34 class Proxy; |
34 class ResourceProvider; | 35 class ResourceProvider; |
35 class TileManager; | 36 class TileManager; |
36 | 37 |
37 class CC_EXPORT LayerTreeImpl { | 38 class CC_EXPORT LayerTreeImpl { |
38 public: | 39 public: |
39 typedef std::vector<LayerImpl*> LayerList; | 40 typedef std::vector<LayerImpl*> LayerList; |
40 | 41 |
41 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp
l) | 42 static scoped_ptr<LayerTreeImpl> create(LayerTreeHostImpl* layer_tree_host_imp
l) |
42 { | 43 { |
43 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); | 44 return make_scoped_ptr(new LayerTreeImpl(layer_tree_host_impl)); |
44 } | 45 } |
45 virtual ~LayerTreeImpl(); | 46 virtual ~LayerTreeImpl(); |
46 | 47 |
47 // Methods called by the layer tree that pass-through or access LTHI. | 48 // Methods called by the layer tree that pass-through or access LTHI. |
48 // --------------------------------------------------------------------------- | 49 // --------------------------------------------------------------------------- |
49 const LayerTreeSettings& settings() const; | 50 const LayerTreeSettings& settings() const; |
50 OutputSurface* output_surface() const; | 51 OutputSurface* output_surface() const; |
51 ResourceProvider* resource_provider() const; | 52 ResourceProvider* resource_provider() const; |
52 TileManager* tile_manager() const; | 53 TileManager* tile_manager() const; |
53 FrameRateCounter* frame_rate_counter() const; | 54 FrameRateCounter* frame_rate_counter() const; |
54 PaintTimeCounter* paint_time_counter() const; | 55 PaintTimeCounter* paint_time_counter() const; |
| 56 MemoryHistory* memory_history() const; |
55 bool IsActiveTree() const; | 57 bool IsActiveTree() const; |
56 bool IsPendingTree() const; | 58 bool IsPendingTree() const; |
57 bool IsRecycleTree() const; | 59 bool IsRecycleTree() const; |
58 LayerImpl* FindActiveTreeLayerById(int id); | 60 LayerImpl* FindActiveTreeLayerById(int id); |
59 LayerImpl* FindPendingTreeLayerById(int id); | 61 LayerImpl* FindPendingTreeLayerById(int id); |
60 int MaxTextureSize() const; | 62 int MaxTextureSize() const; |
61 bool PinchGestureActive() const; | 63 bool PinchGestureActive() const; |
62 base::TimeTicks CurrentFrameTime() const; | 64 base::TimeTicks CurrentFrameTime() const; |
63 | 65 |
64 // Tree specific methods exposed to layer-impl tree. | 66 // Tree specific methods exposed to layer-impl tree. |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
212 // In impl-side painting mode, this is true when the tree may contain | 214 // In impl-side painting mode, this is true when the tree may contain |
213 // structural differences relative to the active tree. | 215 // structural differences relative to the active tree. |
214 bool needs_full_tree_sync_; | 216 bool needs_full_tree_sync_; |
215 | 217 |
216 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); | 218 DISALLOW_COPY_AND_ASSIGN(LayerTreeImpl); |
217 }; | 219 }; |
218 | 220 |
219 } | 221 } |
220 | 222 |
221 #endif // CC_LAYER_TREE_IMPL_H_ | 223 #endif // CC_LAYER_TREE_IMPL_H_ |
OLD | NEW |