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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp

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 | « third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp b/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp
index b055c2ff894e3fc73a3b8206364c57f2ceac70a7..e6a6d051899908b87d0ecf4aee7f60b0bf473c7b 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.cpp
@@ -22,8 +22,8 @@ AudioWorkletProcessorDefinition::AudioWorkletProcessorDefinition(
v8::Local<v8::Function> constructor,
v8::Local<v8::Function> process)
: name_(name),
- constructor_(isolate, constructor),
- process_(isolate, process) {}
+ constructor_(isolate, this, constructor),
+ process_(isolate, this, process) {}
AudioWorkletProcessorDefinition::~AudioWorkletProcessorDefinition() {}
@@ -39,4 +39,9 @@ v8::Local<v8::Function> AudioWorkletProcessorDefinition::ProcessLocal(
return process_.NewLocal(isolate);
}
+DEFINE_TRACE_WRAPPERS(AudioWorkletProcessorDefinition) {
+ visitor->TraceWrappers(constructor_.Cast<v8::Value>());
+ visitor->TraceWrappers(process_.Cast<v8::Value>());
+}
+
} // namespace blink
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/AudioWorkletProcessorDefinition.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698