Index: third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp |
diff --git a/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp b/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp |
index 7da05aff7f1743077e69ede12a7448fa60a656e1..b01feaa14b605c8db58dc5c8784c104965f4423e 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AsyncAudioDecoder.cpp |
@@ -27,7 +27,6 @@ |
#include "modules/webaudio/AbstractAudioContext.h" |
#include "modules/webaudio/AudioBuffer.h" |
#include "modules/webaudio/AudioBufferCallback.h" |
-#include "platform/Task.h" |
#include "platform/ThreadSafeFunctional.h" |
#include "platform/audio/AudioBus.h" |
#include "platform/audio/AudioFileReader.h" |
@@ -58,7 +57,7 @@ void AsyncAudioDecoder::decodeAsync(DOMArrayBuffer* audioData, float sampleRate, |
RefPtr<DOMArrayBuffer> audioDataRef(audioData); |
// The leak references to successCallback and errorCallback are picked up on notifyComplete. |
- m_thread->taskRunner()->postTask(BLINK_FROM_HERE, new Task(threadSafeBind(&AsyncAudioDecoder::decode, AllowCrossThreadAccess(audioDataRef.release().leakRef()), sampleRate, successCallback, errorCallback, resolver, context))); |
+ m_thread->taskRunner()->postTask(BLINK_FROM_HERE, threadSafeBind(&AsyncAudioDecoder::decode, AllowCrossThreadAccess(audioDataRef.release().leakRef()), sampleRate, successCallback, errorCallback, resolver, context)); |
} |
void AsyncAudioDecoder::decode(DOMArrayBuffer* audioData, float sampleRate, AudioBufferCallback* successCallback, AudioBufferCallback* errorCallback, ScriptPromiseResolver* resolver, AbstractAudioContext* context) |
@@ -85,4 +84,3 @@ void AsyncAudioDecoder::notifyComplete(DOMArrayBuffer* audioData, AudioBufferCal |
} |
} // namespace blink |
- |