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

Unified Diff: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.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
Index: third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
diff --git a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
index a2a514b085b72f5186c260d417ced2262007cc97..ffbdfcc875b44c574c7077b62b4a7262a995e629 100644
--- a/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
+++ b/third_party/WebKit/Source/modules/csspaint/PaintWorkletGlobalScope.h
@@ -10,6 +10,7 @@
#include "core/workers/MainThreadWorkletGlobalScope.h"
#include "modules/ModulesExport.h"
#include "modules/csspaint/PaintWorkletPendingGeneratorRegistry.h"
+#include "platform/bindings/ScriptWrappable.h"
#include "platform/graphics/ImageBuffer.h"
namespace blink {
@@ -40,6 +41,7 @@ class MODULES_EXPORT PaintWorkletGlobalScope final
CSSPaintDefinition* FindDefinition(const String& name);
DECLARE_VIRTUAL_TRACE();
+ DECLARE_TRACE_WRAPPERS();
private:
PaintWorkletGlobalScope(LocalFrame*,
@@ -51,7 +53,8 @@ class MODULES_EXPORT PaintWorkletGlobalScope final
// The implementation of the "paint definition" concept:
// https://drafts.css-houdini.org/css-paint-api/#paint-definition
- typedef HeapHashMap<String, Member<CSSPaintDefinition>> DefinitionMap;
+ typedef HeapHashMap<String, TraceWrapperMember<CSSPaintDefinition>>
+ DefinitionMap;
DefinitionMap paint_definitions_;
Member<PaintWorkletPendingGeneratorRegistry> pending_generator_registry_;

Powered by Google App Engine
This is Rietveld 408576698