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

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

Issue 2903703003: Use wrapper tracing for worklets. (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/AnimationWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h b/third_party/WebKit/Source/modules/compositorworker/AnimationWorkletGlobalScope.h
index e9fabbd5886d4468209fc928f17e43109e612810..18256d849a18a1f769d2076f485d9805d5c7a8ed 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,6 +26,7 @@ class AnimationWorkletGlobalScope : public ThreadedWorkletGlobalScope {
WorkerThread*);
~AnimationWorkletGlobalScope() override;
DECLARE_TRACE();
+ DECLARE_TRACE_WRAPPERS();
void Dispose() final;
@@ -41,11 +43,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

Powered by Google App Engine
This is Rietveld 408576698