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_RESOURCES_TILE_MANAGER_H_ | 5 #ifndef CC_RESOURCES_TILE_MANAGER_H_ |
6 #define CC_RESOURCES_TILE_MANAGER_H_ | 6 #define CC_RESOURCES_TILE_MANAGER_H_ |
7 | 7 |
8 #include <list> | 8 #include <list> |
9 #include <queue> | 9 #include <queue> |
10 #include <set> | 10 #include <set> |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); | 88 void SetGlobalState(const GlobalStateThatImpactsTilePriority& state); |
89 | 89 |
90 void ManageTiles(); | 90 void ManageTiles(); |
91 void CheckForCompletedTileUploads(); | 91 void CheckForCompletedTileUploads(); |
92 void AbortPendingTileUploads(); | 92 void AbortPendingTileUploads(); |
93 void ForceTileUploadToComplete(Tile* tile); | 93 void ForceTileUploadToComplete(Tile* tile); |
94 void SetAnticipatedDrawTime(base::TimeTicks time); | 94 void SetAnticipatedDrawTime(base::TimeTicks time); |
95 | 95 |
96 scoped_ptr<base::Value> BasicStateAsValue() const; | 96 scoped_ptr<base::Value> BasicStateAsValue() const; |
97 scoped_ptr<base::Value> AllTilesAsValue() const; | 97 scoped_ptr<base::Value> AllTilesAsValue() const; |
98 void GetMemoryStats(size_t* memoryRequiredBytes, | 98 void GetMemoryStats(size_t* memory_required_bytes, |
99 size_t* memoryNiceToHaveBytes, | 99 size_t* memory_nice_to_have_bytes, |
100 size_t* memoryUsedBytes) const; | 100 size_t* memory_used_bytes) const; |
101 bool HasPendingWorkScheduled(WhichTree tree) const; | 101 bool HasPendingWorkScheduled(WhichTree tree) const; |
102 | 102 |
103 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 103 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
104 return memory_stats_from_last_assign_; | 104 return memory_stats_from_last_assign_; |
105 } | 105 } |
106 | 106 |
107 // Overridden from WorkerPoolClient: | 107 // Overridden from WorkerPoolClient: |
108 virtual void DidFinishDispatchingWorkerPoolCompletionCallbacks() OVERRIDE; | 108 virtual void DidFinishDispatchingWorkerPoolCompletionCallbacks() OVERRIDE; |
109 | 109 |
110 protected: | 110 protected: |
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
223 size_t max_pending_tasks_; | 223 size_t max_pending_tasks_; |
224 | 224 |
225 base::TimeTicks anticipated_draw_time_; | 225 base::TimeTicks anticipated_draw_time_; |
226 | 226 |
227 DISALLOW_COPY_AND_ASSIGN(TileManager); | 227 DISALLOW_COPY_AND_ASSIGN(TileManager); |
228 }; | 228 }; |
229 | 229 |
230 } // namespace cc | 230 } // namespace cc |
231 | 231 |
232 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 232 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
OLD | NEW |