Index: third_party/WebKit/Source/modules/webaudio/AudioBuffer.h |
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h |
index ec8ebfec369b2810b906c095e0348c53ef109a01..06f0519cc8fa715cc772b2f5d01e17cc6da0f9ba 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioBuffer.h |
@@ -60,7 +60,7 @@ |
// Channel data access |
unsigned numberOfChannels() const { return m_channels.size(); } |
- DOMFloat32Array* getChannelData(unsigned channelIndex, ExceptionState&); |
+ PassRefPtr<DOMFloat32Array> getChannelData(unsigned channelIndex, ExceptionState&); |
DOMFloat32Array* getChannelData(unsigned channelIndex); |
void copyFromChannel(DOMFloat32Array*, long channelNumber, ExceptionState&); |
void copyFromChannel(DOMFloat32Array*, long channelNumber, unsigned long startInChannel, ExceptionState&); |
@@ -69,13 +69,10 @@ |
void zero(); |
- DEFINE_INLINE_TRACE() |
- { |
- visitor->trace(m_channels); |
- } |
+ DEFINE_INLINE_TRACE() { } |
private: |
- static DOMFloat32Array* createFloat32ArrayOrNull(size_t length); |
+ static PassRefPtr<DOMFloat32Array> createFloat32ArrayOrNull(size_t length); |
protected: |
AudioBuffer(unsigned numberOfChannels, size_t numberOfFrames, float sampleRate); |
@@ -85,7 +82,7 @@ |
float m_sampleRate; |
size_t m_length; |
- HeapVector<Member<DOMFloat32Array>> m_channels; |
+ Vector<RefPtr<DOMFloat32Array>> m_channels; |
}; |
} // namespace blink |