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

Unified Diff: cc/trees/main_thread_task_runner.cc

Issue 363383002: Forward input tasks to the Blink scheduler (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Cleanup. DefaultMainThreadTaskRunner now dispatches properly. Created 6 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: cc/trees/main_thread_task_runner.cc
diff --git a/cc/trees/main_thread_task_runner.cc b/cc/trees/main_thread_task_runner.cc
new file mode 100644
index 0000000000000000000000000000000000000000..d1793ffd99f2a27c26531909c046513d87a9b0e9
--- /dev/null
+++ b/cc/trees/main_thread_task_runner.cc
@@ -0,0 +1,44 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+#include "cc/trees/main_thread_task_runner.h"
+
+#include "base/logging.h"
+#include "base/message_loop/message_loop_proxy.h"
+
+namespace cc {
+
+bool MainThreadTaskRunner::PostDelayedTask(
+ const tracked_objects::Location& from_here, const base::Closure& task,
+ base::TimeDelta delay) {
+ NOTREACHED() << "FIXME";
+ return false;
+}
+
+bool MainThreadTaskRunner::RunsTasksOnCurrentThread() const {
+ NOTREACHED() << "FIXME";
+ return false;
+}
+
+bool MainThreadTaskRunner::PostNonNestableDelayedTask(
+ const tracked_objects::Location& from_here, const base::Closure& task,
+ base::TimeDelta delay) {
+ NOTREACHED() << "FIXME";
+ return false;
+}
+
+void DefaultMainThreadTaskRunner::PostBeginMainFrameTask(
+ const tracked_objects::Location& from_here, const base::Closure& task,
+ double frame_time, double deadline, double interval) {
+ PostDelayedTask(from_here, task, base::TimeDelta());
+}
+
+bool DefaultMainThreadTaskRunner::PostDelayedTask(
+ const tracked_objects::Location& from_here, const base::Closure& task,
+ base::TimeDelta delay) {
+ return base::MessageLoopProxy::current()->PostDelayedTask(
+ from_here, task, delay);
+}
+
+} // namespace cc
« no previous file with comments | « cc/trees/main_thread_task_runner.h ('k') | cc/trees/proxy.h » ('j') | cc/trees/thread_proxy.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698