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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
(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
OLDNEW
« 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