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

Unified Diff: cc/raster/single_thread_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
« no previous file with comments | « no previous file | cc/raster/synchronous_task_graph_runner.cc » ('j') | cc/raster/task_graph_work_queue.h » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: cc/raster/single_thread_task_graph_runner.cc
diff --git a/cc/raster/single_thread_task_graph_runner.cc b/cc/raster/single_thread_task_graph_runner.cc
index 24994c953df20d703063d369d128bfed03c1ac20..2e255fd57e5280fa14c09faa749edb96d713290f 100644
--- a/cc/raster/single_thread_task_graph_runner.cc
+++ b/cc/raster/single_thread_task_graph_runner.cc
@@ -57,6 +57,9 @@ void SingleThreadTaskGraphRunner::ScheduleTasks(NamespaceToken token,
DCHECK(token.IsValid());
DCHECK(!TaskGraphWorkQueue::DependencyMismatch(graph));
+ // SingleThreadTaskGraphRunner does not care about categories.
+ TaskGraphWorkQueue::UncategorizeTaskGraph(graph);
+
{
base::AutoLock lock(lock_);
@@ -132,7 +135,7 @@ void SingleThreadTaskGraphRunner::RunTaskWithLockAcquired() {
lock_.AssertAcquired();
- auto prioritized_task = work_queue_.GetNextTaskToRun();
+ auto prioritized_task = work_queue_.GetNextTaskToRun(0u /* category */);
Task* task = prioritized_task.task;
// Call WillRun() before releasing |lock_| and running task.
« no previous file with comments | « no previous file | cc/raster/synchronous_task_graph_runner.cc » ('j') | cc/raster/task_graph_work_queue.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698