| 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 <set> | 10 #include <set> |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 107 virtual ~TileManager(); | 107 virtual ~TileManager(); |
| 108 | 108 |
| 109 const GlobalStateThatImpactsTilePriority& GlobalState() const { | 109 const GlobalStateThatImpactsTilePriority& GlobalState() const { |
| 110 return global_state_; | 110 return global_state_; |
| 111 } | 111 } |
| 112 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 112 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
| 113 | 113 |
| 114 void ManageTiles(); | 114 void ManageTiles(); |
| 115 void CheckForCompletedTileUploads(); | 115 void CheckForCompletedTileUploads(); |
| 116 void AbortPendingTileUploads(); | 116 void AbortPendingTileUploads(); |
| 117 void FlushPendingTileUploadIfNeeded(Tile* tile); |
| 117 void DidCompleteFrame(); | 118 void DidCompleteFrame(); |
| 118 | 119 |
| 119 scoped_ptr<base::Value> BasicStateAsValue() const; | 120 scoped_ptr<base::Value> BasicStateAsValue() const; |
| 120 scoped_ptr<base::Value> AllTilesAsValue() const; | 121 scoped_ptr<base::Value> AllTilesAsValue() const; |
| 121 void GetMemoryStats(size_t* memoryRequiredBytes, | 122 void GetMemoryStats(size_t* memoryRequiredBytes, |
| 122 size_t* memoryNiceToHaveBytes, | 123 size_t* memoryNiceToHaveBytes, |
| 123 size_t* memoryUsedBytes) const; | 124 size_t* memoryUsedBytes) const; |
| 124 void SetRecordRenderingStats(bool record_rendering_stats); | 125 void SetRecordRenderingStats(bool record_rendering_stats); |
| 125 void GetRenderingStats(RenderingStats* stats); | 126 void GetRenderingStats(RenderingStats* stats); |
| 126 bool HasPendingWorkScheduled(WhichTree tree) const; | 127 bool HasPendingWorkScheduled(WhichTree tree) const; |
| (...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 234 bool did_schedule_cheap_tasks_; | 235 bool did_schedule_cheap_tasks_; |
| 235 bool allow_cheap_tasks_; | 236 bool allow_cheap_tasks_; |
| 236 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 237 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 237 | 238 |
| 238 DISALLOW_COPY_AND_ASSIGN(TileManager); | 239 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 239 }; | 240 }; |
| 240 | 241 |
| 241 } // namespace cc | 242 } // namespace cc |
| 242 | 243 |
| 243 #endif // CC_TILE_MANAGER_H_ | 244 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |