Index: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp |
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp |
index 4b53bf8e7b69df45cd8ca9577cd6e31812a2704e..c6c5a092e868b335784e2726d052d12f278d00fc 100644 |
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp |
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp |
@@ -27,10 +27,10 @@ |
*/ |
#include "platform/audio/HRTFDatabaseLoader.h" |
-#include "platform/Task.h" |
#include "platform/TaskSynchronizer.h" |
#include "platform/ThreadSafeFunctional.h" |
#include "public/platform/Platform.h" |
+#include "public/platform/WebTaskRunner.h" |
#include "public/platform/WebTraceLocation.h" |
#include "wtf/MainThread.h" |
@@ -95,7 +95,7 @@ void HRTFDatabaseLoader::loadAsynchronously() |
// Start the asynchronous database loading process. |
m_thread = adoptPtr(Platform::current()->createThread("HRTF database loader")); |
// TODO(alexclarke): Should this be posted as a loading task? |
- m_thread->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&HRTFDatabaseLoader::loadTask, AllowCrossThreadAccess(this)))); |
+ m_thread->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&HRTFDatabaseLoader::loadTask, AllowCrossThreadAccess(this))); |
} |
} |
@@ -119,10 +119,9 @@ void HRTFDatabaseLoader::waitForLoaderThreadCompletion() |
TaskSynchronizer sync; |
// TODO(alexclarke): Should this be posted as a loading task? |
- m_thread->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&HRTFDatabaseLoader::cleanupTask, AllowCrossThreadAccess(this), AllowCrossThreadAccess(&sync)))); |
+ m_thread->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&HRTFDatabaseLoader::cleanupTask, AllowCrossThreadAccess(this), AllowCrossThreadAccess(&sync))); |
sync.waitForTaskCompletion(); |
m_thread.clear(); |
} |
} // namespace blink |
- |