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 "config.h" | 5 #include "config.h" |
6 #include "platform/scheduler/Scheduler.h" | 6 #include "platform/scheduler/Scheduler.h" |
7 | 7 |
8 #include "public/platform/Platform.h" | 8 #include "public/platform/Platform.h" |
9 #include "public/platform/WebScheduler.h" | 9 #include "public/platform/WebScheduler.h" |
10 #include "public/platform/WebTraceLocation.h" | 10 #include "public/platform/WebTraceLocation.h" |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
77 m_webScheduler->postLoadingTask(location, task); | 77 m_webScheduler->postLoadingTask(location, task); |
78 } | 78 } |
79 | 79 |
80 bool Scheduler::shouldYieldForHighPriorityWork() const | 80 bool Scheduler::shouldYieldForHighPriorityWork() const |
81 { | 81 { |
82 if (m_webScheduler) | 82 if (m_webScheduler) |
83 return m_webScheduler->shouldYieldForHighPriorityWork(); | 83 return m_webScheduler->shouldYieldForHighPriorityWork(); |
84 return false; | 84 return false; |
85 } | 85 } |
86 | 86 |
| 87 bool Scheduler::isMaximumIdleDeadline(double deadlineSeconds) const |
| 88 { |
| 89 if (m_webScheduler) |
| 90 return m_webScheduler->isMaximumIdleDeadline(deadlineSeconds); |
| 91 return false; |
| 92 } |
| 93 |
87 } // namespace blink | 94 } // namespace blink |
OLD | NEW |