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

Unified Diff: third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: wip Created 3 years, 8 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: third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
index 0ce5d151ecd893249c2ab48160e583439abf783f..b739f1b24a0a9ce5147b51c2cb18672c8e9b5c20 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/worker_scheduler_impl.cc
@@ -92,6 +92,17 @@ void WorkerSchedulerImpl::Shutdown() {
helper_.Shutdown();
}
+scoped_refptr<TaskQueue> WorkerSchedulerImpl::NewUnthrottledTaskRunner(
+ TaskQueue::QueueType queue_type) {
+ helper_.CheckOnValidThread();
+ // TODO: TimeDomain??
Sami 2017/04/10 16:58:10 A real time time domain (i.e., nullptr) is fine fo
nhiroki 2017/04/11 10:47:54 Thank you for the information. Removed this commen
+ scoped_refptr<TaskQueue> unthrottled_task_queue(
+ helper_.NewTaskQueue(TaskQueue::Spec(queue_type)
+ .SetShouldMonitorQuiescence(true)
+ .SetTimeDomain(nullptr)));
+ return unthrottled_task_queue;
+}
+
SchedulerHelper* WorkerSchedulerImpl::GetSchedulerHelperForTesting() {
return &helper_;
}

Powered by Google App Engine
This is Rietveld 408576698