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

Unified Diff: cc/raster/tile_task_worker_pool.cc

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Corrected scope of dependencies. 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
Index: cc/raster/tile_task_worker_pool.cc
diff --git a/cc/raster/tile_task_worker_pool.cc b/cc/raster/tile_task_worker_pool.cc
index 510862af1f141d6faeafc803094b31268c14d6d1..2c806658fa8d2ac9743c66cc86cda6f12a43d848 100644
--- a/cc/raster/tile_task_worker_pool.cc
+++ b/cc/raster/tile_task_worker_pool.cc
@@ -20,18 +20,17 @@ TileTaskWorkerPool::TileTaskWorkerPool() {}
TileTaskWorkerPool::~TileTaskWorkerPool() {}
// static
-void TileTaskWorkerPool::ScheduleTasksOnOriginThread(TileTaskClient* client,
- TaskGraph* graph) {
+void TileTaskWorkerPool::ScheduleTasksOnOriginThread(TaskGraph* graph) {
TRACE_EVENT0("cc", "TileTaskWorkerPool::ScheduleTasksOnOriginThread");
for (TaskGraph::Node::Vector::iterator it = graph->nodes.begin();
it != graph->nodes.end(); ++it) {
TaskGraph::Node& node = *it;
- TileTask* task = static_cast<TileTask*>(node.task);
+ Task* task = node.task;
if (!task->HasBeenScheduled()) {
task->WillSchedule();
- task->ScheduleOnOriginThread(client);
+ task->ScheduleOnOriginThread();
task->DidSchedule();
}
}

Powered by Google App Engine
This is Rietveld 408576698