Chromium Code Reviews| Index: Source/platform/scheduler/Scheduler.cpp |
| diff --git a/Source/platform/scheduler/Scheduler.cpp b/Source/platform/scheduler/Scheduler.cpp |
| index bdd1f196543842399f5a2bd26cfc5b5fa07cbae2..a823a0b4806f06e87cd1da7538120c91395dd637 100644 |
| --- a/Source/platform/scheduler/Scheduler.cpp |
| +++ b/Source/platform/scheduler/Scheduler.cpp |
| @@ -8,6 +8,7 @@ |
| #include "public/platform/Platform.h" |
| #include "public/platform/WebScheduler.h" |
| #include "public/platform/WebTraceLocation.h" |
| +#include "wtf/MainThread.h" |
| namespace blink { |
| @@ -86,6 +87,14 @@ void Scheduler::postLoadingTask(const WebTraceLocation& location, WebThread::Tas |
| m_webScheduler->postLoadingTask(location, task); |
| } |
| +void Scheduler::postTimerTask(const WebTraceLocation& location, WebThread::Task* task, long long delayMs) |
| +{ |
| + ASSERT(WTF::isMainThread()); |
|
Sami
2015/04/09 10:52:30
The comment says this function can be called from
alex clarke (OOO till 29th)
2015/04/10 15:29:40
Good point, removing.
|
| + |
| + if (m_webScheduler) |
| + m_webScheduler->postTimerTask(location, task, delayMs); |
| +} |
| + |
| bool Scheduler::shouldYieldForHighPriorityWork() const |
| { |
| if (m_webScheduler) |