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

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

Issue 2793593002: AudioWorklet prototype
Patch Set: Merge changes, AudioParam bug fix Created 3 years, 5 months 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/AudioWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
index b6f18700bd8702587b9a941e1beed575085725f1..cb1b8b36d2abf7dac4d241334be61cc32d04023c 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorklet.cpp
@@ -21,6 +21,11 @@ AudioWorklet::AudioWorklet(LocalFrame* frame) : Worklet(frame) {}
AudioWorklet::~AudioWorklet() {}
+AudioWorkletMessagingProxy* AudioWorklet::GetWorkletMessagingProxy() const {
+ return static_cast<AudioWorkletMessagingProxy*>(
+ FindAvailableGlobalScope());
+}
+
bool AudioWorklet::NeedsToCreateGlobalScope() {
// For now, create only one global scope per document.
// TODO(nhiroki): Revisit this later.

Powered by Google App Engine
This is Rietveld 408576698