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()); |
+ |
+ if (m_webScheduler) |
+ m_webScheduler->postTimerTask(location, task, delayMs); |
+} |
+ |
bool Scheduler::shouldYieldForHighPriorityWork() const |
{ |
if (m_webScheduler) |