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

Unified Diff: Source/modules/webaudio/AudioSummingJunction.h

Issue 270103005: Tried to move AudioSummingJuction to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 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 | « Source/modules/webaudio/AudioProcessingEvent.cpp ('k') | Source/modules/webaudio/AudioSummingJunction.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioSummingJunction.h
diff --git a/Source/modules/webaudio/AudioSummingJunction.h b/Source/modules/webaudio/AudioSummingJunction.h
index d3f392538fd99da9877d2912770dc8b3ccefd5ac..6301682687ddb1d6c77179b14a757e258979008a 100644
--- a/Source/modules/webaudio/AudioSummingJunction.h
+++ b/Source/modules/webaudio/AudioSummingJunction.h
@@ -26,6 +26,7 @@
#define AudioSummingJunction_h
#include "platform/audio/AudioBus.h"
+#include "platform/heap/Handle.h"
#include "wtf/HashSet.h"
#include "wtf/Vector.h"
@@ -36,10 +37,9 @@ class AudioNodeOutput;
// An AudioSummingJunction represents a point where zero, one, or more AudioNodeOutputs connect.
-class AudioSummingJunction {
+class AudioSummingJunction : public RefCountedWillBeGarbageCollected<AudioSummingJunction> {
public:
explicit AudioSummingJunction(AudioContext*);
- virtual ~AudioSummingJunction();
// Can be called from any thread.
AudioContext* context() { return m_context.get(); }
@@ -59,8 +59,10 @@ public:
virtual bool canUpdateState() = 0;
virtual void didUpdate() = 0;
+ virtual void trace(Visitor*);
+
protected:
- RefPtr<AudioContext> m_context;
+ RefPtrWillBeMember<AudioContext> m_context;
// m_outputs contains the AudioNodeOutputs representing current connections which are not disabled.
// The rendering code should never use this directly, but instead uses m_renderingOutputs.
« no previous file with comments | « Source/modules/webaudio/AudioProcessingEvent.cpp ('k') | Source/modules/webaudio/AudioSummingJunction.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698