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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.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/AudioWorkletThread.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
index e5088cb62e46e28177143ee7168506a45eb92d59..3f495f6060d3b592b34d5afd79114a288d7cc89a 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();
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.h ('k') | third_party/WebKit/Source/modules/webaudio/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698