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

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: removed redundant ExecutionContext parameter, changed WorkletScriptLoader to inherit from ResourceO… 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.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorklet.h
index 34e5c21a2ecb14b3e75d0ed2193810a804571e36..610555e33cf915a0635bc186f3cd0f2832775ddf 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*);
+ AnimationWorklet(LocalFrame*);
yhirano 2016/08/01 10:56:27 +explicit
Gleb Lanbin 2016/08/01 19:49:50 Done.
// 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