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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.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
Index: third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp b/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp
index 2370da5dc7958b6e3a26d4293cb5cb647521fafe..72304649aaab487d9ac7fbcece28ed6423b13132 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AbstractAnimationWorkletThread.cpp
@@ -25,8 +25,7 @@ AbstractAnimationWorkletThread::AbstractAnimationWorkletThread(
AbstractAnimationWorkletThread::~AbstractAnimationWorkletThread() {}
WorkerBackingThread& AbstractAnimationWorkletThread::workerBackingThread() {
- return *WorkletThreadHolder<
- AbstractAnimationWorkletThread>::threadHolderInstance()
+ return *WorkletThreadHolder<AbstractAnimationWorkletThread>::getInstance()
->thread();
}
@@ -38,12 +37,11 @@ void collectAllGarbageOnThread(WaitableEvent* doneEvent) {
void AbstractAnimationWorkletThread::collectAllGarbage() {
DCHECK(isMainThread());
WaitableEvent doneEvent;
- WorkletThreadHolder<AbstractAnimationWorkletThread>* threadHolderInstance =
- WorkletThreadHolder<
- AbstractAnimationWorkletThread>::threadHolderInstance();
- if (!threadHolderInstance)
+ WorkletThreadHolder<AbstractAnimationWorkletThread>* workletThreadHolder =
+ WorkletThreadHolder<AbstractAnimationWorkletThread>::getInstance();
+ if (!workletThreadHolder)
return;
- threadHolderInstance->thread()->backingThread().postTask(
+ workletThreadHolder->thread()->backingThread().postTask(
BLINK_FROM_HERE, crossThreadBind(&collectAllGarbageOnThread,
crossThreadUnretained(&doneEvent)));
doneEvent.wait();

Powered by Google App Engine
This is Rietveld 408576698