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

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

Issue 2178223002: Refactor Worklet class to use ScriptResource (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: synced to the head Created 4 years, 4 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.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
index 34e5c21a2ecb14b3e75d0ed2193810a804571e36..51dcee08213fc04964e8c48cdf88179124f33b7c 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
@@ -11,13 +11,14 @@
namespace blink {
+class LocalFrame;
class ThreadedWorkletGlobalScopeProxy;
class WorkletGlobalScopeProxy;
class MODULES_EXPORT AnimationWorklet final : public Worklet {
WTF_MAKE_NONCOPYABLE(AnimationWorklet);
public:
- static AnimationWorklet* create(ExecutionContext*);
+ static AnimationWorklet* create(LocalFrame*);
~AnimationWorklet() override;
WorkletGlobalScopeProxy* workletGlobalScopeProxy() const final;
@@ -25,7 +26,7 @@ public:
DECLARE_VIRTUAL_TRACE();
private:
- AnimationWorklet(ExecutionContext*);
+ explicit AnimationWorklet(LocalFrame*);
// TODO(ikilpatrick): this will change to a raw ptr once we have a thread.
std::unique_ptr<ThreadedWorkletGlobalScopeProxy> m_workletGlobalScopeProxy;

Powered by Google App Engine
This is Rietveld 408576698