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

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

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fixed comments & synced to the HEAD Created 4 years, 5 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 488257ca1875449dc02abf49e131a07faa6ff1d4..533b0661f058ebcf447bf51801447889458de0e3 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.cpp
@@ -6,20 +6,21 @@
#include "bindings/core/v8/V8Binding.h"
#include "core/dom/ExecutionContext.h"
+#include "core/frame/LocalFrame.h"
#include "modules/worklet/ThreadedWorkletGlobalScopeProxy.h"
namespace blink {
// static
-AnimationWorklet* AnimationWorklet::create(ExecutionContext* executionContext)
+AnimationWorklet* AnimationWorklet::create(ExecutionContext* executionContext, LocalFrame* frame)
{
- AnimationWorklet* worklet = new AnimationWorklet(executionContext);
+ AnimationWorklet* worklet = new AnimationWorklet(executionContext, frame);
worklet->suspendIfNeeded();
return worklet;
}
-AnimationWorklet::AnimationWorklet(ExecutionContext* executionContext)
- : Worklet(executionContext)
+AnimationWorklet::AnimationWorklet(ExecutionContext* executionContext, LocalFrame* frame)
+ : Worklet(executionContext, frame)
, m_workletGlobalScopeProxy(new ThreadedWorkletGlobalScopeProxy())
{
}

Powered by Google App Engine
This is Rietveld 408576698