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

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

Issue 1058873010: Move blink scheduler implementation into a component (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: updates Created 5 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: components/scheduler/child/task_queue_manager.cc
diff --git a/content/child/scheduler/task_queue_manager.cc b/components/scheduler/child/task_queue_manager.cc
similarity index 98%
rename from content/child/scheduler/task_queue_manager.cc
rename to components/scheduler/child/task_queue_manager.cc
index 646c859161c059329e8903d08c14a73cdba8b8df..2c03bd6a49eb20482767a09f061bd6971198a6c1 100644
--- a/content/child/scheduler/task_queue_manager.cc
+++ b/components/scheduler/child/task_queue_manager.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "content/child/scheduler/task_queue_manager.h"
+#include "components/scheduler/child/task_queue_manager.h"
#include <queue>
#include <set>
@@ -10,15 +10,15 @@
#include "base/bind.h"
#include "base/trace_event/trace_event.h"
#include "base/trace_event/trace_event_argument.h"
-#include "content/child/scheduler/nestable_single_thread_task_runner.h"
-#include "content/child/scheduler/task_queue_selector.h"
-#include "content/child/scheduler/time_source.h"
+#include "components/scheduler/child/nestable_single_thread_task_runner.h"
+#include "components/scheduler/child/task_queue_selector.h"
+#include "components/scheduler/child/time_source.h"
namespace {
const int64_t kMaxTimeTicks = std::numeric_limits<int64>::max();
}
-namespace content {
+namespace scheduler {
namespace internal {
// Now() is somewhat expensive so it makes sense not to call Now() unless we
@@ -606,7 +606,7 @@ void TaskQueueManager::DoWork(bool posted_from_main_thread) {
MaybePostDoWorkOnMainRunner();
if (ProcessTaskFromWorkQueue(queue_index, i > 0, &previous_task))
- return; // The TaskQueueManager got deleted, we must bail out.
+ return; // The TaskQueueManager got deleted, we must bail out.
if (!UpdateWorkQueues(&previous_task))
return;
@@ -741,4 +741,4 @@ void TaskQueueManager::OnTaskQueueEnabled() {
MaybePostDoWorkOnMainRunner();
}
-} // namespace content
+} // namespace scheduler
« no previous file with comments | « components/scheduler/child/task_queue_manager.h ('k') | components/scheduler/child/task_queue_manager_perftest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698