Index: cc/tiles/tile_manager.h |
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h |
index 34008c48ae09a38d5c558970f8d6c298a3f456c8..56ec94b58b3114e6460ee94b32ffe331a4192535 100644 |
--- a/cc/tiles/tile_manager.h |
+++ b/cc/tiles/tile_manager.h |
@@ -106,6 +106,8 @@ |
static scoped_ptr<TileManager> Create(TileManagerClient* client, |
base::SequencedTaskRunner* task_runner, |
+ ResourcePool* resource_pool, |
+ TileTaskRunner* tile_task_runner, |
size_t scheduled_raster_task_limit); |
~TileManager() override; |
@@ -114,18 +116,7 @@ |
// activation are prepared, or failed to prepare due to OOM. |
// - Runs client_->NotifyReadyToDraw() when all tiles required draw are |
// prepared, or failed to prepare due to OOM. |
- bool PrepareTiles(const GlobalStateThatImpactsTilePriority& state); |
- |
- // Synchronously finish any in progress work, cancel the rest, and clean up as |
- // much resources as possible. Also, prevents any future work until a |
- // SetResources call. |
- void FinishTasksAndCleanUp(); |
- |
- // Set the new given resource pool and tile task runner. Note that |
- // FinishTasksAndCleanUp must be called in between consecutive calls to |
- // SetResources. |
- void SetResources(ResourcePool* resource_pool, |
- TileTaskRunner* tile_task_runner); |
+ void PrepareTiles(const GlobalStateThatImpactsTilePriority& state); |
// This causes any completed raster work to finalize, so that tiles get up to |
// date draw information. |
@@ -205,6 +196,8 @@ |
protected: |
TileManager(TileManagerClient* client, |
const scoped_refptr<base::SequencedTaskRunner>& task_runner, |
+ ResourcePool* resource_pool, |
+ TileTaskRunner* tile_task_runner, |
size_t scheduled_raster_task_limit); |
void FreeResourcesForReleasedTiles(); |