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

Unified Diff: content/renderer/raster_worker_pool.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
« cc/raster/task_graph_work_queue.cc ('K') | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/raster_worker_pool.cc
diff --git a/content/renderer/raster_worker_pool.cc b/content/renderer/raster_worker_pool.cc
index 89ed6d62b91c65a83fe32912336df4cdf8ebd4d4..167a5692fb6e3095acae4f7090f9960ea23880b9 100644
--- a/content/renderer/raster_worker_pool.cc
+++ b/content/renderer/raster_worker_pool.cc
@@ -214,6 +214,10 @@ void RasterWorkerPool::ScheduleTasksWithLockAcquired(cc::NamespaceToken token,
DCHECK(!cc::TaskGraphWorkQueue::DependencyMismatch(graph));
DCHECK(!shutdown_);
+ // RasterWorkerPool does not care about categories for now.
+ // TODO(ericrk): Add threads per category and remove this.
+ cc::TaskGraphWorkQueue::UncategorizeTaskGraph(graph);
+
work_queue_.ScheduleTasks(token, graph);
// If there is more work available, wake up worker thread.
@@ -263,7 +267,7 @@ void RasterWorkerPool::RunTaskWithLockAcquired() {
lock_.AssertAcquired();
- auto prioritized_task = work_queue_.GetNextTaskToRun();
+ auto prioritized_task = work_queue_.GetNextTaskToRun(0u /* category */);
cc::Task* task = prioritized_task.task;
// There may be more work available, so wake up another worker thread.
« cc/raster/task_graph_work_queue.cc ('K') | « cc/tiles/tile_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698