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

Unified Diff: components/scheduler/child/scheduler_helper.cc

Issue 987193002: Redirect the MessageLoop's task runner to the renderer scheduler (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Review comments + refactor all the things Created 5 years, 5 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/scheduler/child/scheduler_helper.cc
diff --git a/components/scheduler/child/scheduler_helper.cc b/components/scheduler/child/scheduler_helper.cc
index 0e13c7635264e98231717d0933d1d0b0d57e22e2..6a878162e33ea3686d60c1d6d04d6c0d87da63f8 100644
--- a/components/scheduler/child/scheduler_helper.cc
+++ b/components/scheduler/child/scheduler_helper.cc
@@ -7,12 +7,12 @@
#include "base/time/default_tick_clock.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
-#include "components/scheduler/child/nestable_single_thread_task_runner.h"
+#include "components/scheduler/child/scheduler_task_runner_delegate.h"
namespace scheduler {
SchedulerHelper::SchedulerHelper(
- scoped_refptr<NestableSingleThreadTaskRunner> main_task_runner,
+ scoped_refptr<SchedulerTaskRunnerDelegate> main_task_runner,
const char* tracing_category,
const char* disabled_by_default_tracing_category,
const char* disabled_by_default_verbose_tracing_category,
@@ -64,6 +64,9 @@ SchedulerHelper::SchedulerHelper(
// TODO(skyostil): Increase this to 4 (crbug.com/444764).
task_queue_manager_->SetWorkBatchSize(1);
+
+ main_task_runner->SetDefaultTaskRunner(
alex clarke (OOO till 29th) 2015/07/10 15:21:11 There was a test for this when it was on the TQM.
Sami 2015/07/10 15:35:13 Yep, it's now in components/scheduler/child/schedu
+ task_queue_manager_->TaskRunnerForQueue(QueueId::DEFAULT_TASK_QUEUE));
}
SchedulerHelper::~SchedulerHelper() {
« no previous file with comments | « components/scheduler/child/scheduler_helper.h ('k') | components/scheduler/child/scheduler_helper_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698