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_TILE_MANAGER_H_ | 5 #ifndef CC_TILE_MANAGER_H_ |
6 #define CC_TILE_MANAGER_H_ | 6 #define CC_TILE_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <queue> | 9 #include <queue> |
10 #include <vector> | 10 #include <vector> |
(...skipping 64 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
75 ResourceProvider *resource_provider, | 75 ResourceProvider *resource_provider, |
76 size_t num_raster_threads); | 76 size_t num_raster_threads); |
77 virtual ~TileManager(); | 77 virtual ~TileManager(); |
78 | 78 |
79 const GlobalStateThatImpactsTilePriority& GlobalState() const { | 79 const GlobalStateThatImpactsTilePriority& GlobalState() const { |
80 return global_state_; | 80 return global_state_; |
81 } | 81 } |
82 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 82 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
83 | 83 |
84 void ManageTiles(); | 84 void ManageTiles(); |
85 void CheckForCompletedSetPixels(); | 85 bool CheckForCompletedSetPixels(); |
86 void GetMemoryStats(size_t* memoryRequiredBytes, | 86 void GetMemoryStats(size_t* memoryRequiredBytes, |
87 size_t* memoryNiceToHaveBytes, | 87 size_t* memoryNiceToHaveBytes, |
88 size_t* memoryUsedBytes); | 88 size_t* memoryUsedBytes); |
89 | 89 |
90 void GetRenderingStats(RenderingStats* stats); | 90 void GetRenderingStats(RenderingStats* stats); |
91 | 91 |
92 protected: | 92 protected: |
93 // Methods called by Tile | 93 // Methods called by Tile |
94 friend class Tile; | 94 friend class Tile; |
95 void RegisterTile(Tile* tile); | 95 void RegisterTile(Tile* tile); |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
139 TileQueue tiles_with_pending_set_pixels_; | 139 TileQueue tiles_with_pending_set_pixels_; |
140 | 140 |
141 RenderingStats rendering_stats_; | 141 RenderingStats rendering_stats_; |
142 | 142 |
143 DISALLOW_COPY_AND_ASSIGN(TileManager); | 143 DISALLOW_COPY_AND_ASSIGN(TileManager); |
144 }; | 144 }; |
145 | 145 |
146 } // namespace cc | 146 } // namespace cc |
147 | 147 |
148 #endif // CC_TILE_MANAGER_H_ | 148 #endif // CC_TILE_MANAGER_H_ |
OLD | NEW |