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 65 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
76 ResourceProvider *resource_provider, | 76 ResourceProvider *resource_provider, |
77 size_t num_raster_threads); | 77 size_t num_raster_threads); |
78 virtual ~TileManager(); | 78 virtual ~TileManager(); |
79 | 79 |
80 const GlobalStateThatImpactsTilePriority& GlobalState() const { | 80 const GlobalStateThatImpactsTilePriority& GlobalState() const { |
81 return global_state_; | 81 return global_state_; |
82 } | 82 } |
83 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 83 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
84 | 84 |
85 void ManageTiles(); | 85 void ManageTiles(); |
86 void CheckForCompletedTextures(); | 86 void CheckForCompletedTileUploads(); |
87 void GetMemoryStats(size_t* memoryRequiredBytes, | 87 void GetMemoryStats(size_t* memoryRequiredBytes, |
88 size_t* memoryNiceToHaveBytes, | 88 size_t* memoryNiceToHaveBytes, |
89 size_t* memoryUsedBytes); | 89 size_t* memoryUsedBytes); |
90 | 90 |
91 void GetRenderingStats(RenderingStats* stats); | 91 void GetRenderingStats(RenderingStats* stats); |
92 | 92 |
93 protected: | 93 protected: |
94 // Methods called by Tile | 94 // Methods called by Tile |
95 friend class Tile; | 95 friend class Tile; |
96 void RegisterTile(Tile* tile); | 96 void RegisterTile(Tile* tile); |
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
141 TileQueue tiles_with_pending_set_pixels_; | 141 TileQueue tiles_with_pending_set_pixels_; |
142 | 142 |
143 RenderingStats rendering_stats_; | 143 RenderingStats rendering_stats_; |
144 | 144 |
145 DISALLOW_COPY_AND_ASSIGN(TileManager); | 145 DISALLOW_COPY_AND_ASSIGN(TileManager); |
146 }; | 146 }; |
147 | 147 |
148 } // namespace cc | 148 } // namespace cc |
149 | 149 |
150 #endif // CC_TILE_MANAGER_H_ | 150 #endif // CC_TILE_MANAGER_H_ |
OLD | NEW |