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

Unified Diff: cc/raster/synchronous_task_graph_runner.h

Issue 1739993004: content: Implement dynamic priorities for raster threads. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: preparing for checkin. 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.h
diff --git a/cc/raster/synchronous_task_graph_runner.h b/cc/raster/synchronous_task_graph_runner.h
index 65a7716cb5c0cd706c6893e70ccfba82321d885d..a6a113bbeec98da0f7d42e95bf00f7a3c0c2dad4 100644
--- a/cc/raster/synchronous_task_graph_runner.h
+++ b/cc/raster/synchronous_task_graph_runner.h
@@ -12,7 +12,8 @@ namespace cc {
// Implements a TaskGraphRunner which runs synchronously. This runner only runs
// tasks when RunUntilIdle is called.
-class CC_EXPORT SynchronousTaskGraphRunner : public TaskGraphRunner {
+class CC_EXPORT SynchronousTaskGraphRunner : public TaskGraphRunner,
+ public TaskGraphWorkQueueClient {
public:
SynchronousTaskGraphRunner();
~SynchronousTaskGraphRunner() override;
@@ -24,6 +25,11 @@ class CC_EXPORT SynchronousTaskGraphRunner : public TaskGraphRunner {
void CollectCompletedTasks(NamespaceToken token,
Task::Vector* completed_tasks) override;
+ // Overridden from TaskGraphWorkQueueClient:
+ void AdjustWorkerPriorityForTask(Task* task,
+ uint16_t old_category,
+ uint16_t new_category) override {}
+
// Runs all pending tasks from all namespaces.
void RunUntilIdle();

Powered by Google App Engine
This is Rietveld 408576698