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(); |