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

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

Issue 2515363002: Introduce AnimationWorkletProxyClient and necessary plumbing to get it in worklet messaging proxy. (Closed)
Patch Set: Remove unnecessary PLATFORM_EXPORT Created 3 years, 10 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/compositorworker/CompositorWorkerGlobalScope.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
index 71fe8157ae0eaa9aec5ef823ab822fb9c884751e..8bdb90816916995e517336d2b5bc827dcfb42f35 100644
--- a/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/CompositorWorkerGlobalScope.cpp
@@ -5,6 +5,7 @@
#include "modules/compositorworker/CompositorWorkerGlobalScope.h"
#include "bindings/core/v8/SerializedScriptValue.h"
+#include "core/dom/CompositorWorkerProxyClient.h"
#include "core/workers/InProcessWorkerObjectProxy.h"
#include "core/workers/WorkerThreadStartupData.h"
#include "modules/EventTargetModules.h"
@@ -47,14 +48,14 @@ CompositorWorkerGlobalScope::CompositorWorkerGlobalScope(
workerClients),
m_executingAnimationFrameCallbacks(false),
m_callbackCollection(this) {
- CompositorProxyClient::from(clients())->setGlobalScope(this);
+ CompositorWorkerProxyClient::from(clients())->setGlobalScope(this);
}
CompositorWorkerGlobalScope::~CompositorWorkerGlobalScope() {}
void CompositorWorkerGlobalScope::dispose() {
WorkerGlobalScope::dispose();
- CompositorProxyClient::from(clients())->dispose();
+ CompositorWorkerProxyClient::from(clients())->dispose();
}
DEFINE_TRACE(CompositorWorkerGlobalScope) {
@@ -85,7 +86,7 @@ int CompositorWorkerGlobalScope::requestAnimationFrame(
const bool shouldSignal =
!m_executingAnimationFrameCallbacks && m_callbackCollection.isEmpty();
if (shouldSignal)
- CompositorProxyClient::from(clients())->requestAnimationFrame();
+ CompositorWorkerProxyClient::from(clients())->requestAnimationFrame();
return m_callbackCollection.registerCallback(callback);
}

Powered by Google App Engine
This is Rietveld 408576698