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

Unified Diff: cc/raster/synchronous_task_graph_runner.cc

Issue 1489233003: TaskGraphRunner Group support (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@refactor
Patch Set: array > map + feedback Created 5 years 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 ed05cfb5823127277020491b4b5fbb0d6e3abbd2..759c5b87f0ba34d965e84cf24880b82d2c033fdc 100644
--- a/cc/raster/synchronous_task_graph_runner.cc
+++ b/cc/raster/synchronous_task_graph_runner.cc
@@ -28,6 +28,9 @@ void SynchronousTaskGraphRunner::ScheduleTasks(NamespaceToken token,
DCHECK(token.IsValid());
DCHECK(!TaskGraphWorkQueue::DependencyMismatch(graph));
+ // SynchronousTaskGraphRunner does not care about categories.
+ TaskGraphWorkQueue::UncategorizeTaskGraph(graph);
+
work_queue_.ScheduleTasks(token, graph);
}
@@ -64,7 +67,7 @@ void SynchronousTaskGraphRunner::RunUntilIdle() {
void SynchronousTaskGraphRunner::RunTask() {
TRACE_EVENT0("toplevel", "SynchronousTaskGraphRunner::RunTask");
- auto prioritized_task = work_queue_.GetNextTaskToRun();
+ auto prioritized_task = work_queue_.GetNextTaskToRun(0u /* category */);
Task* task = prioritized_task.task;
task->WillRun();

Powered by Google App Engine
This is Rietveld 408576698