OLD | NEW |
(Empty) | |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "cc/trees/main_thread_task_runner.h" |
| 6 |
| 7 #include "base/logging.h" |
| 8 #include "base/message_loop/message_loop_proxy.h" |
| 9 |
| 10 namespace cc { |
| 11 |
| 12 bool MainThreadTaskRunner::PostDelayedTask( |
| 13 const tracked_objects::Location& from_here, const base::Closure& task, |
| 14 base::TimeDelta delay) { |
| 15 NOTREACHED() << "FIXME"; |
| 16 return false; |
| 17 } |
| 18 |
| 19 bool MainThreadTaskRunner::RunsTasksOnCurrentThread() const { |
| 20 NOTREACHED() << "FIXME"; |
| 21 return false; |
| 22 } |
| 23 |
| 24 bool MainThreadTaskRunner::PostNonNestableDelayedTask( |
| 25 const tracked_objects::Location& from_here, const base::Closure& task, |
| 26 base::TimeDelta delay) { |
| 27 NOTREACHED() << "FIXME"; |
| 28 return false; |
| 29 } |
| 30 |
| 31 void DefaultMainThreadTaskRunner::PostBeginMainFrameTask( |
| 32 const tracked_objects::Location& from_here, const base::Closure& task, |
| 33 double frame_time, double deadline, double interval) { |
| 34 PostDelayedTask(from_here, task, base::TimeDelta()); |
| 35 } |
| 36 |
| 37 bool DefaultMainThreadTaskRunner::PostDelayedTask( |
| 38 const tracked_objects::Location& from_here, const base::Closure& task, |
| 39 base::TimeDelta delay) { |
| 40 return base::MessageLoopProxy::current()->PostDelayedTask( |
| 41 from_here, task, delay); |
| 42 } |
| 43 |
| 44 } // namespace cc |
OLD | NEW |