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

Unified Diff: cc/raster/synchronous_task_graph_runner.cc

Issue 1854723002: cc: Simplify task and its derived classes. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 9 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/synchronous_task_graph_runner.cc
diff --git a/cc/raster/synchronous_task_graph_runner.cc b/cc/raster/synchronous_task_graph_runner.cc
index 2f5055d87b163287c0fa73682135ef771577a5d0..0cebcfab8de9b0c748f089d204686bbefbc0c3fd 100644
--- a/cc/raster/synchronous_task_graph_runner.cc
+++ b/cc/raster/synchronous_task_graph_runner.cc
@@ -54,7 +54,7 @@ void SynchronousTaskGraphRunner::WaitForTasksToFinishRunning(
void SynchronousTaskGraphRunner::CollectCompletedTasks(
NamespaceToken token,
- Task::Vector* completed_tasks) {
+ DependencyTask::Vector* completed_tasks) {
TRACE_EVENT0("cc", "SynchronousTaskGraphRunner::CollectCompletedTasks");
DCHECK(token.IsValid());
@@ -84,7 +84,7 @@ bool SynchronousTaskGraphRunner::RunTask() {
const uint16_t category = found->first;
auto prioritized_task = work_queue_.GetNextTaskToRun(category);
- Task* task = prioritized_task.task;
+ DependencyTask* task = prioritized_task.task;
task->WillRun();
task->RunOnWorkerThread();
task->DidRun();

Powered by Google App Engine
This is Rietveld 408576698