| 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 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 99 bool use_cheapess_estimator); | 99 bool use_cheapess_estimator); |
| 100 virtual ~TileManager(); | 100 virtual ~TileManager(); |
| 101 | 101 |
| 102 const GlobalStateThatImpactsTilePriority& GlobalState() const { | 102 const GlobalStateThatImpactsTilePriority& GlobalState() const { |
| 103 return global_state_; | 103 return global_state_; |
| 104 } | 104 } |
| 105 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 105 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
| 106 | 106 |
| 107 void ManageTiles(); | 107 void ManageTiles(); |
| 108 void CheckForCompletedTileUploads(); | 108 void CheckForCompletedTileUploads(); |
| 109 void AbortPendingTileUploads(); |
| 109 | 110 |
| 110 scoped_ptr<base::Value> AsValue() const; | 111 scoped_ptr<base::Value> AsValue() const; |
| 111 void GetMemoryStats(size_t* memoryRequiredBytes, | 112 void GetMemoryStats(size_t* memoryRequiredBytes, |
| 112 size_t* memoryNiceToHaveBytes, | 113 size_t* memoryNiceToHaveBytes, |
| 113 size_t* memoryUsedBytes) const; | 114 size_t* memoryUsedBytes) const; |
| 114 void GetRenderingStats(RenderingStats* stats); | 115 void GetRenderingStats(RenderingStats* stats); |
| 115 bool HasPendingWorkScheduled(WhichTree tree) const; | 116 bool HasPendingWorkScheduled(WhichTree tree) const; |
| 116 | 117 |
| 117 const MemoryHistory::Entry& memory_stats_from_last_assign() const { return mem
ory_stats_from_last_assign_; } | 118 const MemoryHistory::Entry& memory_stats_from_last_assign() const { return mem
ory_stats_from_last_assign_; } |
| 118 | 119 |
| (...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 207 | 208 |
| 208 bool use_cheapness_estimator_; | 209 bool use_cheapness_estimator_; |
| 209 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; | 210 int raster_state_count_[NUM_STATES][NUM_TREES][NUM_BINS]; |
| 210 | 211 |
| 211 DISALLOW_COPY_AND_ASSIGN(TileManager); | 212 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 212 }; | 213 }; |
| 213 | 214 |
| 214 } // namespace cc | 215 } // namespace cc |
| 215 | 216 |
| 216 #endif // CC_TILE_MANAGER_H_ | 217 #endif // CC_TILE_MANAGER_H_ |
| OLD | NEW |