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

Side by Side Diff: components/task_scheduler_util/renderer/initialization.h

Issue 2568793003: Control TaskScheduler initialization params in renderers via field trial. (Closed)
Patch Set: fix ios build error Created 3 years, 11 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 unified diff | Download patch
OLDNEW
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
6 #define COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
7
8 #include <stddef.h>
9
10 #include <vector>
11
12 #include "base/task_scheduler/scheduler_worker_pool_params.h"
13
14 namespace base {
15 class TaskTraits;
16 }
17
18 namespace task_scheduler_util {
19
20 // Gets a vector of SchedulerWorkerPoolParams to initialize TaskScheduler in a
21 // renderer based off variation params specified on the command line. Returns an
22 // empty vector if variation params specified on the command line are incomplete
23 // or invalid.
24 std::vector<base::SchedulerWorkerPoolParams> GetRendererWorkerPoolParams();
25
26 // Maps |traits| to the index of a renderer worker pool vector provided by
27 // GetRendererWorkerPoolParams().
28 size_t RendererWorkerPoolIndexForTraits(const base::TaskTraits& traits);
29
30 } // namespace task_scheduler_util
31
32 #endif // COMPONENTS_TASK_SCHEDULER_UTIL_RENDERER_INITIALIZATION_H_
OLDNEW
« no previous file with comments | « components/task_scheduler_util/renderer/BUILD.gn ('k') | components/task_scheduler_util/renderer/initialization.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698