Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(403)

Unified Diff: third_party/WebKit/Source/modules/webaudio/OfflineAudioDestinationNode.cpp

Issue 2588603002: Specify TaskType of posted Task explicitly in media elements (12) (Closed)
Patch Set: rebase Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
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)));
}
}

Powered by Google App Engine
This is Rietveld 408576698