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

Unified Diff: cc/raster/tile_task_worker_pool_unittest.cc

Issue 1888713002: cc: Merge TileTaskRunner to TileTaskWorkerPool. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@rename_tile_task_client
Patch Set: feedback Created 4 years, 8 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/raster/tile_task_worker_pool_perftest.cc ('k') | cc/raster/zero_copy_tile_task_worker_pool.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/tile_task_worker_pool_unittest.cc
diff --git a/cc/raster/tile_task_worker_pool_unittest.cc b/cc/raster/tile_task_worker_pool_unittest.cc
index 03f835c6a9353c8fe1419ad2dc8e3dc7172a2726..caf7c931afc496ee6a694bba030f96d5dbab1ffc 100644
--- a/cc/raster/tile_task_worker_pool_unittest.cc
+++ b/cc/raster/tile_task_worker_pool_unittest.cc
@@ -23,7 +23,6 @@
#include "cc/raster/gpu_tile_task_worker_pool.h"
#include "cc/raster/one_copy_tile_task_worker_pool.h"
#include "cc/raster/synchronous_task_graph_runner.h"
-#include "cc/raster/tile_task_runner.h"
#include "cc/raster/zero_copy_tile_task_worker_pool.h"
#include "cc/resources/resource_pool.h"
#include "cc/resources/resource_provider.h"
@@ -175,18 +174,18 @@ class TileTaskWorkerPoolTest
}
void TearDown() override {
- tile_task_worker_pool_->AsTileTaskRunner()->Shutdown();
- tile_task_worker_pool_->AsTileTaskRunner()->CheckForCompletedTasks();
+ tile_task_worker_pool_->Shutdown();
+ tile_task_worker_pool_->CheckForCompletedTasks();
}
void AllTileTasksFinished() {
- tile_task_worker_pool_->AsTileTaskRunner()->CheckForCompletedTasks();
+ tile_task_worker_pool_->CheckForCompletedTasks();
base::MessageLoop::current()->QuitWhenIdle();
}
void RunMessageLoopUntilAllTasksHaveCompleted() {
task_graph_runner_.RunUntilIdle();
- tile_task_worker_pool_->AsTileTaskRunner()->CheckForCompletedTasks();
+ tile_task_worker_pool_->CheckForCompletedTasks();
}
void ScheduleTasks() {
@@ -200,7 +199,7 @@ class TileTaskWorkerPoolTest
0 /* dependencies */);
}
- tile_task_worker_pool_->AsTileTaskRunner()->ScheduleTasks(&graph_);
+ tile_task_worker_pool_->ScheduleTasks(&graph_);
}
void AppendTask(unsigned id, const gfx::Size& size) {
« no previous file with comments | « cc/raster/tile_task_worker_pool_perftest.cc ('k') | cc/raster/zero_copy_tile_task_worker_pool.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698