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

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

Issue 2903703003: Use wrapper tracing for worklets. (Closed)
Patch Set: Separating in two CLs 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
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
index e9fabbd5886d4468209fc928f17e43109e612810..c4c4eccd8658f3ef384a59e0788f340d653c5054 100644
--- a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
@@ -9,6 +9,7 @@
#include "core/workers/ThreadedWorkletGlobalScope.h"
#include "modules/compositorworker/Animator.h"
#include "modules/compositorworker/AnimatorDefinition.h"
+#include "platform/bindings/ScriptWrappable.h"
namespace blink {
@@ -25,8 +26,7 @@ class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope {
WorkerThread*);
~AnimationWorkletGlobalScope() override;
DECLARE_TRACE();
-
- void Dispose() final;
+ DECLARE_TRACE_WRAPPERS();
void registerAnimator(const String& name,
const ScriptValue& ctorValue,
@@ -41,11 +41,12 @@ class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope {
v8::Isolate*,
WorkerThread*);
- typedef HeapHashMap<String, Member<AnimatorDefinition>> DefinitionMap;
- DefinitionMap m_animatorDefinitions;
+ typedef HeapHashMap<String, TraceWrapperMember<AnimatorDefinition>>
+ DefinitionMap;
+ DefinitionMap animator_definitions_;
- typedef HeapVector<Member<Animator>> AnimatorList;
- AnimatorList m_animators;
+ typedef HeapVector<TraceWrapperMember<Animator>> AnimatorList;
+ AnimatorList animators_;
};
} // namespace blink
« no previous file with comments | « no previous file | third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698