Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3692)

Unified Diff: cc/tiles/tile_manager.h

Issue 1229223003: Revert of Reland: cc: Make tile manager object persist for the length of LTHI. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/tiles/tile_manager.h
diff --git a/cc/tiles/tile_manager.h b/cc/tiles/tile_manager.h
index a69e5a27dcf20122c9ffb362e85374364b8575af..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,19 +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,
- size_t scheduled_raster_task_limit);
+ void PrepareTiles(const GlobalStateThatImpactsTilePriority& state);
// This causes any completed raster work to finalize, so that tiles get up to
// date draw information.
@@ -206,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();
« no previous file with comments | « cc/test/fake_tile_manager.cc ('k') | cc/tiles/tile_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698