Chromium Code Reviews| 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 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 82 scoped_ptr<base::Value> BasicStateAsValue() const; | 82 scoped_ptr<base::Value> BasicStateAsValue() const; |
| 83 scoped_ptr<base::Value> AllTilesAsValue() const; | 83 scoped_ptr<base::Value> AllTilesAsValue() const; |
| 84 void GetMemoryStats(size_t* memory_required_bytes, | 84 void GetMemoryStats(size_t* memory_required_bytes, |
| 85 size_t* memory_nice_to_have_bytes, | 85 size_t* memory_nice_to_have_bytes, |
| 86 size_t* memory_used_bytes) const; | 86 size_t* memory_used_bytes) const; |
| 87 | 87 |
| 88 const MemoryHistory::Entry& memory_stats_from_last_assign() const { | 88 const MemoryHistory::Entry& memory_stats_from_last_assign() const { |
| 89 return memory_stats_from_last_assign_; | 89 return memory_stats_from_last_assign_; |
| 90 } | 90 } |
| 91 | 91 |
| 92 void SetUseGpuMemoryBuffers(bool use_gpu_memory_buffers); | |
|
reveman
2013/05/20 23:16:01
can we pass this to ctor instead?
kaanb
2013/05/21 00:52:29
Done.
| |
| 93 | |
| 92 // Overridden from WorkerPoolClient: | 94 // Overridden from WorkerPoolClient: |
| 93 virtual void DidFinishDispatchingWorkerPoolCompletionCallbacks() OVERRIDE; | 95 virtual void DidFinishDispatchingWorkerPoolCompletionCallbacks() OVERRIDE; |
| 94 | 96 |
| 95 protected: | 97 protected: |
| 96 // Methods called by Tile | 98 // Methods called by Tile |
| 97 friend class Tile; | 99 friend class Tile; |
| 98 void RegisterTile(Tile* tile); | 100 void RegisterTile(Tile* tile); |
| 99 void UnregisterTile(Tile* tile); | 101 void UnregisterTile(Tile* tile); |
| 100 void WillModifyTilePriority( | 102 void WillModifyTilePriority( |
| 101 Tile* tile, WhichTree tree, const TilePriority& new_priority) { | 103 Tile* tile, WhichTree tree, const TilePriority& new_priority) { |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 203 | 205 |
| 204 RenderingStatsInstrumentation* rendering_stats_instrumentation_; | 206 RenderingStatsInstrumentation* rendering_stats_instrumentation_; |
| 205 | 207 |
| 206 bool use_color_estimator_; | 208 bool use_color_estimator_; |
| 207 bool prediction_benchmarking_; | 209 bool prediction_benchmarking_; |
| 208 bool did_initialize_visible_tile_; | 210 bool did_initialize_visible_tile_; |
| 209 | 211 |
| 210 size_t pending_tasks_; | 212 size_t pending_tasks_; |
| 211 size_t max_pending_tasks_; | 213 size_t max_pending_tasks_; |
| 212 | 214 |
| 215 bool use_gpu_memory_buffers_; | |
|
reveman
2013/05/20 23:16:01
No need to add this. Just pass the setting to the
kaanb
2013/05/21 00:52:29
Done.
| |
| 216 | |
| 213 DISALLOW_COPY_AND_ASSIGN(TileManager); | 217 DISALLOW_COPY_AND_ASSIGN(TileManager); |
| 214 }; | 218 }; |
| 215 | 219 |
| 216 } // namespace cc | 220 } // namespace cc |
| 217 | 221 |
| 218 #endif // CC_RESOURCES_TILE_MANAGER_H_ | 222 #endif // CC_RESOURCES_TILE_MANAGER_H_ |
| OLD | NEW |