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

Unified Diff: components/task_scheduler_util/renderer/initialization.h

Issue 2749303002: [reference - do not submit] Always create four pools in TaskSchedulerImpl. (Closed)
Patch Set: rebase Created 3 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: components/task_scheduler_util/renderer/initialization.h
diff --git a/components/task_scheduler_util/renderer/initialization.h b/components/task_scheduler_util/renderer/initialization.h
index 6f351507eec4904cc16a47cb029ef7ac86328671..7029e571d94059f8bd5db0687e9a185babca67a7 100644
--- a/components/task_scheduler_util/renderer/initialization.h
+++ b/components/task_scheduler_util/renderer/initialization.h
@@ -5,27 +5,17 @@
#ifndef COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
#define COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
-#include <stddef.h>
+#include <memory>
-#include <vector>
-
-#include "base/task_scheduler/scheduler_worker_pool_params.h"
-
-namespace base {
-class TaskTraits;
-}
+#include "base/task_scheduler/task_scheduler.h"
namespace task_scheduler_util {
-// Gets a vector of SchedulerWorkerPoolParams to initialize TaskScheduler in a
-// renderer based off variation params specified on the command line. Returns an
-// empty vector if variation params specified on the command line are incomplete
-// or invalid.
-std::vector<base::SchedulerWorkerPoolParams> GetRendererWorkerPoolParams();
-
-// Maps |traits| to the index of a renderer worker pool vector provided by
-// GetRendererWorkerPoolParams().
-size_t RendererWorkerPoolIndexForTraits(const base::TaskTraits& traits);
+// Gets a TaskSchedulerInitParams object to initialize TaskScheduler in a
+// renderer based off variations specified on the command line. Returns nullptr
+// on failure.
+std::unique_ptr<base::TaskSchedulerInitParams>
+GetRendererTaskSchedulerInitParamsFromCommandLine();
} // namespace task_scheduler_util

Powered by Google App Engine
This is Rietveld 408576698