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

Unified Diff: content/renderer/raster_worker_pool.h

Issue 1784623005: Test dynamic priorities (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
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/renderer/raster_worker_pool.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/raster_worker_pool.h
diff --git a/content/renderer/raster_worker_pool.h b/content/renderer/raster_worker_pool.h
index b4ddf9a61c251e6f759400ccff94266941a2f604..2151c504b9288cab5f78bda9521889bd5d645028 100644
--- a/content/renderer/raster_worker_pool.h
+++ b/content/renderer/raster_worker_pool.h
@@ -48,7 +48,8 @@ class CONTENT_EXPORT RasterWorkerPool : public base::TaskRunner,
// Runs a task from one of the provided categories. Categories listed first
// have higher priority.
- void Run(const std::vector<cc::TaskCategory>& categories,
+ void Run(base::TestSimpleThread* runner,
+ const std::vector<cc::TaskCategory>& categories,
base::ConditionVariable* has_ready_to_run_tasks_cv);
void FlushForTesting();
@@ -101,11 +102,13 @@ class CONTENT_EXPORT RasterWorkerPool : public base::TaskRunner,
// Runs a task from one of the provided categories. Categories listed first
// have higher priority. Returns false if there were no tasks to run.
- bool RunTaskWithLockAcquired(const std::vector<cc::TaskCategory>& categories);
+ bool RunTaskWithLockAcquired(base::TestSimpleThread* runner,
+ const std::vector<cc::TaskCategory>& categories);
// Run next task for the given category. Caller must acquire |lock_| prior to
// calling this function and make sure at least one task is ready to run.
- void RunTaskInCategoryWithLockAcquired(cc::TaskCategory category);
+ void RunTaskInCategoryWithLockAcquired(base::TestSimpleThread* runner,
+ cc::TaskCategory category);
// Helper function which signals worker threads if tasks are ready to run.
void SignalHasReadyToRunTasksWithLockAcquired();
« no previous file with comments | « content/browser/gpu/compositor_util.cc ('k') | content/renderer/raster_worker_pool.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698