Chromium Code Reviews| Index: Source/modules/webaudio/AudioNode.h |
| diff --git a/Source/modules/webaudio/AudioNode.h b/Source/modules/webaudio/AudioNode.h |
| index 5ebe221ee62803656bb0fb4e6301e83faf4d0502..45ce22882a6deda923aa911ee0671953951552bd 100644 |
| --- a/Source/modules/webaudio/AudioNode.h |
| +++ b/Source/modules/webaudio/AudioNode.h |
| @@ -50,7 +50,7 @@ class ExceptionState; |
| // An AudioDestinationNode has one input and no outputs and represents the final destination to the audio hardware. |
| // Most processing nodes such as filters will have one input and one output, although multiple inputs and outputs are possible. |
| -class AudioNode : public ScriptWrappable, public EventTargetWithInlineData { |
| +class AudioNode : public NoBaseWillBeRefCountedGarbageCollected<AudioNode>, public ScriptWrappable, public EventTargetWithInlineData { |
|
Mads Ager (chromium)
2014/04/03 08:39:33
I don't think we want this to be RefCountedGarbage
keishi
2014/04/08 02:33:40
Done.
|
| public: |
| enum { ProcessingSizeInFrames = 128 }; |
| @@ -179,6 +179,12 @@ public: |
| virtual const AtomicString& interfaceName() const OVERRIDE FINAL; |
| virtual ExecutionContext* executionContext() const OVERRIDE FINAL; |
| + virtual void trace(Visitor*); |
| + |
| +#if ENABLE(OILPAN) |
| + virtual void clearKeepAlive() { } |
| +#endif |
| + |
| protected: |
| // Inputs and outputs must be created before the AudioNode is initialized. |
| void addInput(PassOwnPtr<AudioNodeInput>); |
| @@ -195,7 +201,7 @@ protected: |
| private: |
| volatile bool m_isInitialized; |
| NodeType m_nodeType; |
| - RefPtr<AudioContext> m_context; |
| + RefPtrWillBeMember<AudioContext> m_context; |
| float m_sampleRate; |
| Vector<OwnPtr<AudioNodeInput> > m_inputs; |
| Vector<OwnPtr<AudioNodeOutput> > m_outputs; |