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

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

Issue 2806623004: Worker: Introduce per-global-scope task scheduler (Closed)
Patch Set: rebase 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/webthread_base.cc
diff --git a/third_party/WebKit/Source/platform/scheduler/child/webthread_base.cc b/third_party/WebKit/Source/platform/scheduler/child/webthread_base.cc
index b23c54cf5318e20c15bbbab346cdbeb9d86f9efc..34b1d1a738b2c8ea70600d9c65008c3ce4c0eb29 100644
--- a/third_party/WebKit/Source/platform/scheduler/child/webthread_base.cc
+++ b/third_party/WebKit/Source/platform/scheduler/child/webthread_base.cc
@@ -13,6 +13,7 @@
#include "base/pending_task.h"
#include "base/threading/platform_thread.h"
#include "platform/scheduler/child/compositor_worker_scheduler.h"
+#include "platform/scheduler/child/scheduler_tqm_delegate_impl.h"
#include "platform/scheduler/child/webthread_impl_for_worker_scheduler.h"
#include "public/platform/WebTraceLocation.h"
#include "public/platform/scheduler/child/single_thread_idle_task_runner.h"
@@ -116,7 +117,8 @@ class WebThreadForCompositor : public WebThreadImplForWorkerScheduler {
// WebThreadImplForWorkerScheduler:
std::unique_ptr<blink::scheduler::WorkerScheduler> CreateWorkerScheduler()
override {
- return base::MakeUnique<CompositorWorkerScheduler>(GetThread());
+ return base::MakeUnique<CompositorWorkerScheduler>(GetThread(),
+ task_runner_delegate());
}
DISALLOW_COPY_AND_ASSIGN(WebThreadForCompositor);

Powered by Google App Engine
This is Rietveld 408576698