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

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

Issue 2793593002: AudioWorklet prototype
Patch Set: Rebase after ThreadedWorkletMessaginProxy change Created 3 years, 7 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/AudioWorkletThread.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
index 259743867f13a992f91c420e0436fe697094dd4c..54cf84e0bdcb9757afff971cacc2ef41de2997d8 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
@@ -65,6 +65,11 @@ void AudioWorkletThread::EnsureSharedBackingThread() {
WorkletThreadHolder<AudioWorkletThread>::EnsureInstance("AudioWorkletThread");
}
+void AudioWorkletThread::SetSharedBackingThread(WebThread* thread) {
+ DCHECK(IsMainThread());
+ WorkletThreadHolder<AudioWorkletThread>::EnsureInstance(thread);
+}
+
void AudioWorkletThread::ClearSharedBackingThread() {
DCHECK(IsMainThread());
WorkletThreadHolder<AudioWorkletThread>::ClearInstance();

Powered by Google App Engine
This is Rietveld 408576698