summaryrefslogtreecommitdiffstats
path: root/cc/test
diff options
context:
space:
mode:
authorreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-23 09:46:50 +0000
committerreveman@chromium.org <reveman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2014-01-23 09:46:50 +0000
commit00d92d32d28ccbca0241051a628d2ed5f982d1cf (patch)
treef736a9d9b72d97d00ae278beb66dcb7e745d14dd /cc/test
parent8e1d91e3e45d157f0d279284bc48f47194559d06 (diff)
downloadchromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.zip
chromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.tar.gz
chromium_src-00d92d32d28ccbca0241051a628d2ed5f982d1cf.tar.bz2
Re-land: cc: Remove WorkerPool class and instead use TaskGraphRunner directly.
Removes the unnecessary WorkerPool layer. This makes the job of the TaskGraphRunner more clear and will allow us to remove some complexity and unnecessary heap allocations from the RasterWorkerPool code in follow up patches. Also moves the kNumRasterTasks switch to content/. Refactor only, no changes in behavior. BUG=331844 Review URL: https://codereview.chromium.org/141163019 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@246554 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cc/test')
-rw-r--r--cc/test/fake_tile_manager.cc5
1 files changed, 4 insertions, 1 deletions
diff --git a/cc/test/fake_tile_manager.cc b/cc/test/fake_tile_manager.cc
index 873e649..d5bc80b 100644
--- a/cc/test/fake_tile_manager.cc
+++ b/cc/test/fake_tile_manager.cc
@@ -73,7 +73,10 @@ FakeTileManager::FakeTileManager(TileManagerClient* client,
raster_task_limit_bytes,
NULL) {}
-FakeTileManager::~FakeTileManager() {}
+FakeTileManager::~FakeTileManager() {
+ RasterWorkerPoolForTesting()->Shutdown();
+ RasterWorkerPoolForTesting()->CheckForCompletedTasks();
+}
void FakeTileManager::AssignMemoryToTiles(
const GlobalStateThatImpactsTilePriority& state) {