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

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

Issue 2579823002: Worker: Rename WorkletThreadHolder::threadHolderInstance() to getInstance() (Closed)
Patch Set: 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
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 ec6b5f4bd2118d62d47cf3e8839a96ba8f1a32ac..0c222c62543b9f49768fc9e470ec010aabb0a4e1 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletThread.cpp
@@ -39,8 +39,7 @@ AudioWorkletThread::AudioWorkletThread(
AudioWorkletThread::~AudioWorkletThread() {}
WorkerBackingThread& AudioWorkletThread::workerBackingThread() {
- return *WorkletThreadHolder<AudioWorkletThread>::threadHolderInstance()
- ->thread();
+ return *WorkletThreadHolder<AudioWorkletThread>::getInstance()->thread();
}
void collectAllGarbageOnAudioWorkletThread(WaitableEvent* doneEvent) {
@@ -51,11 +50,11 @@ void collectAllGarbageOnAudioWorkletThread(WaitableEvent* doneEvent) {
void AudioWorkletThread::collectAllGarbage() {
DCHECK(isMainThread());
WaitableEvent doneEvent;
- WorkletThreadHolder<AudioWorkletThread>* threadHolderInstance =
- WorkletThreadHolder<AudioWorkletThread>::threadHolderInstance();
- if (!threadHolderInstance)
+ WorkletThreadHolder<AudioWorkletThread>* workletThreadHolder =
+ WorkletThreadHolder<AudioWorkletThread>::getInstance();
+ if (!workletThreadHolder)
return;
- threadHolderInstance->thread()->backingThread().postTask(
+ workletThreadHolder->thread()->backingThread().postTask(
BLINK_FROM_HERE, crossThreadBind(&collectAllGarbageOnAudioWorkletThread,
crossThreadUnretained(&doneEvent)));
doneEvent.wait();
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698