OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "content/renderer/scheduler/null_renderer_scheduler.h" | 5 #include "content/renderer/scheduler/null_renderer_scheduler.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/message_loop/message_loop_proxy.h" | 8 #include "base/message_loop/message_loop_proxy.h" |
9 | 9 |
10 namespace content { | 10 namespace content { |
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
82 } | 82 } |
83 | 83 |
84 bool NullRendererScheduler::IsHighPriorityWorkAnticipated() { | 84 bool NullRendererScheduler::IsHighPriorityWorkAnticipated() { |
85 return false; | 85 return false; |
86 } | 86 } |
87 | 87 |
88 bool NullRendererScheduler::ShouldYieldForHighPriorityWork() { | 88 bool NullRendererScheduler::ShouldYieldForHighPriorityWork() { |
89 return false; | 89 return false; |
90 } | 90 } |
91 | 91 |
| 92 void NullRendererScheduler::AddTaskObserver( |
| 93 base::MessageLoop::TaskObserver* task_observer) { |
| 94 base::MessageLoop::current()->AddTaskObserver(task_observer); |
| 95 } |
| 96 |
| 97 void NullRendererScheduler::RemoveTaskObserver( |
| 98 base::MessageLoop::TaskObserver* task_observer) { |
| 99 base::MessageLoop::current()->RemoveTaskObserver(task_observer); |
| 100 } |
| 101 |
92 void NullRendererScheduler::Shutdown() { | 102 void NullRendererScheduler::Shutdown() { |
93 } | 103 } |
94 | 104 |
95 } // namespace content | 105 } // namespace content |
OLD | NEW |