| 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
|
|
|