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

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

Issue 2894233002: [animation-worklet] invoke animate callback on mutation signal (Closed)
Patch Set: Created 3 years, 7 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/AnimationWorklet.cpp
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
index 46b241a92bd60318d905151325dff4da0096c20a..39287251048364b6d14beda0eb8cb22066408e76 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
@@ -37,8 +37,11 @@ void AnimationWorklet::Initialize() {
document->GetFrame()->GetChromeClient().CreateAnimationWorkletProxyClient(
document->GetFrame());
+ WorkerClients* worker_clients = WorkerClients::Create();
+ ProvideAnimationWorkletProxyClientTo(worker_clients, proxy_client);
+
worklet_messaging_proxy_ =
- new AnimationWorkletMessagingProxy(GetExecutionContext(), proxy_client);
+ new AnimationWorkletMessagingProxy(GetExecutionContext(), worker_clients);
worklet_messaging_proxy_->Initialize();
}

Powered by Google App Engine
This is Rietveld 408576698