| Index: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| index 930521a4388db543ea8b21d017caeafddb40c072..2b343435014e5c1de43aa2b03ef702b6bdf91b37 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
|
| @@ -26,6 +26,7 @@
|
| #include "modules/webaudio/OfflineAudioDestinationNode.h"
|
|
|
| #include "core/dom/ExecutionContextTask.h"
|
| +#include "core/dom/TaskRunnerHelper.h"
|
| #include "modules/webaudio/AudioNodeInput.h"
|
| #include "modules/webaudio/AudioNodeOutput.h"
|
| #include "modules/webaudio/BaseAudioContext.h"
|
| @@ -216,7 +217,7 @@ void OfflineAudioDestinationHandler::suspendOfflineRendering() {
|
| // The actual rendering has been suspended. Notify the context.
|
| if (context()->getExecutionContext()) {
|
| context()->getExecutionContext()->postTask(
|
| - BLINK_FROM_HERE,
|
| + TaskType::MediaElementEvent, BLINK_FROM_HERE,
|
| createCrossThreadTask(&OfflineAudioDestinationHandler::notifySuspend,
|
| PassRefPtr<OfflineAudioDestinationHandler>(this),
|
| context()->currentSampleFrame()));
|
| @@ -229,9 +230,9 @@ void OfflineAudioDestinationHandler::finishOfflineRendering() {
|
| // The actual rendering has been completed. Notify the context.
|
| if (context()->getExecutionContext()) {
|
| context()->getExecutionContext()->postTask(
|
| - BLINK_FROM_HERE, createCrossThreadTask(
|
| - &OfflineAudioDestinationHandler::notifyComplete,
|
| - PassRefPtr<OfflineAudioDestinationHandler>(this)));
|
| + TaskType::MediaElementEvent, BLINK_FROM_HERE,
|
| + createCrossThreadTask(&OfflineAudioDestinationHandler::notifyComplete,
|
| + wrapPassRefPtr(this)));
|
| }
|
| }
|
|
|
|
|