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 87 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
98 bool use_cheapess_estimator); | 98 bool use_cheapess_estimator); |
99 virtual ~TileManager(); | 99 virtual ~TileManager(); |
100 | 100 |
101 const GlobalStateThatImpactsTilePriority& GlobalState() const { | 101 const GlobalStateThatImpactsTilePriority& GlobalState() const { |
102 return global_state_; | 102 return global_state_; |
103 } | 103 } |
104 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 104 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
105 | 105 |
106 void ManageTiles(); | 106 void ManageTiles(); |
107 void CheckForCompletedTileUploads(); | 107 void CheckForCompletedTileUploads(); |
| 108 void AbortPendingTileUploads(); |
108 | 109 |
109 scoped_ptr<base::Value> AsValue() const; | 110 scoped_ptr<base::Value> AsValue() const; |
110 void GetMemoryStats(size_t* memoryRequiredBytes, | 111 void GetMemoryStats(size_t* memoryRequiredBytes, |
111 size_t* memoryNiceToHaveBytes, | 112 size_t* memoryNiceToHaveBytes, |
112 size_t* memoryUsedBytes) const; | 113 size_t* memoryUsedBytes) const; |
113 void SetRecordRenderingStats(bool record_rendering_stats); | 114 void SetRecordRenderingStats(bool record_rendering_stats); |
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_; } |
(...skipping 89 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 |