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

Unified Diff: third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp

Issue 2481843003: Worker: Add WorkerOrWorkletGlobalScope::thread() interface (Closed)
Patch Set: Created 4 years, 1 month 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/CompositorWorkerGlobalScope.h ('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/compositorworker/CompositorWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
index 3281fdcf62cb0e5092e56ac4a1e2fa1e4933a208..71fe8157ae0eaa9aec5ef823ab822fb9c884751e 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
@@ -76,8 +76,8 @@ void CompositorWorkerGlobalScope::postMessage(
MessagePort::disentanglePorts(executionContext, ports, exceptionState);
if (exceptionState.hadException())
return;
- thread()->workerObjectProxy().postMessageToWorkerObject(std::move(message),
- std::move(channels));
+ workerObjectProxy().postMessageToWorkerObject(std::move(message),
+ std::move(channels));
}
int CompositorWorkerGlobalScope::requestAnimationFrame(
@@ -100,8 +100,9 @@ bool CompositorWorkerGlobalScope::executeAnimationFrameCallbacks(
return !m_callbackCollection.isEmpty();
}
-CompositorWorkerThread* CompositorWorkerGlobalScope::thread() const {
- return static_cast<CompositorWorkerThread*>(WorkerGlobalScope::thread());
+InProcessWorkerObjectProxy& CompositorWorkerGlobalScope::workerObjectProxy()
+ const {
+ return static_cast<CompositorWorkerThread*>(thread())->workerObjectProxy();
}
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698