Index: Source/platform/WebThreadSupportingGC.h |
diff --git a/Source/platform/WebThreadSupportingGC.h b/Source/platform/WebThreadSupportingGC.h |
index 43abf42a859d03bcb837517c69c713e58e84e817..e12eeff6a6fe5dae63a73f548cc2d347bace6acf 100644 |
--- a/Source/platform/WebThreadSupportingGC.h |
+++ b/Source/platform/WebThreadSupportingGC.h |
@@ -8,6 +8,7 @@ |
#include "platform/heap/glue/MessageLoopInterruptor.h" |
#include "platform/heap/glue/PendingGCRunner.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebTaskRunner.h" |
#include "public/platform/WebThread.h" |
#include "wtf/Noncopyable.h" |
#include "wtf/OwnPtr.h" |
@@ -31,14 +32,14 @@ public: |
static PassOwnPtr<WebThreadSupportingGC> createForThread(WebThread*); |
~WebThreadSupportingGC(); |
- void postTask(const WebTraceLocation& location, WebThread::Task* task) |
+ void postTask(const WebTraceLocation& location, WebTaskRunner::Task* task) |
{ |
- m_thread->postTask(location, task); |
+ m_thread->defaultTaskRunner()->postTask(location, task); |
} |
- void postDelayedTask(const WebTraceLocation& location, WebThread::Task* task, long long delayMs) |
+ void postDelayedTask(const WebTraceLocation& location, WebTaskRunner::Task* task, long long delayMs) |
{ |
- m_thread->postDelayedTask(location, task, delayMs); |
+ m_thread->defaultTaskRunner()->postDelayedTask(location, task, delayMs); |
} |
bool isCurrentThread() const |