Changeset 139165 in webkit
- Timestamp:
- Jan 8, 2013 10:42:55 PM (11 years ago)
- Location:
- trunk/Source
- Files:
-
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/Platform/ChangeLog
r139127 r139165 1 2013-01-08 Chris Rogers <crogers@google.com> 2 3 Remove unused/deprecated render() method in chromium WebKit API 4 https://bugs.webkit.org/show_bug.cgi?id=106399 5 6 Reviewed by Kent Tamura. 7 8 * chromium/public/WebAudioDevice.h: 9 1 10 2013-01-08 James Robinson <jamesr@chromium.org> 2 11 -
trunk/Source/Platform/chromium/public/WebAudioDevice.h
r124264 r139165 42 42 virtual void render(const WebVector<float*>& sourceData, const WebVector<float*>& destinationData, size_t numberOfFrames) { }; 43 43 44 // FIXME: to be removed once we switch over to newer render() method handling both audio output and (optional) input.45 virtual void render(const WebVector<float*>& audioData, size_t numberOfFrames) = 0;46 47 44 protected: 48 45 virtual ~RenderCallback() { } -
trunk/Source/WebKit/chromium/ChangeLog
r139157 r139165 1 2013-01-08 Chris Rogers <crogers@google.com> 2 3 Remove unused/deprecated render() method in chromium WebKit API 4 https://bugs.webkit.org/show_bug.cgi?id=106399 5 6 Reviewed by Kent Tamura. 7 8 * src/AudioDestinationChromium.cpp: 9 * src/AudioDestinationChromium.h: 10 (AudioDestinationChromium): 11 1 12 2013-01-08 Yoshifumi Inoue <yosin@chromium.org> 2 13 -
trunk/Source/WebKit/chromium/src/AudioDestinationChromium.cpp
r129835 r139165 146 146 } 147 147 148 // Pulls on our provider to get the rendered audio stream.149 // FIXME: remove this method when the chromium-side switches over to the synchronized I/O render() method (above).150 void AudioDestinationChromium::render(const WebVector<float*>& audioData, size_t numberOfFrames)151 {152 bool isNumberOfChannelsGood = audioData.size() == numberOfChannels;153 if (!isNumberOfChannelsGood) {154 ASSERT_NOT_REACHED();155 return;156 }157 158 bool isBufferSizeGood = numberOfFrames == m_callbackBufferSize;159 if (!isBufferSizeGood) {160 ASSERT_NOT_REACHED();161 return;162 }163 164 m_renderBus.setChannelMemory(0, audioData[0], numberOfFrames);165 m_renderBus.setChannelMemory(1, audioData[1], numberOfFrames);166 m_fifo->consume(&m_renderBus, numberOfFrames);167 }168 169 148 void AudioDestinationChromium::provideInput(AudioBus* bus, size_t framesToProcess) 170 149 { -
trunk/Source/WebKit/chromium/src/AudioDestinationChromium.h
r130448 r139165 59 59 // WebKit::WebAudioDevice::RenderCallback 60 60 virtual void render(const WebKit::WebVector<float*>& sourceData, const WebKit::WebVector<float*>& audioData, size_t numberOfFrames); 61 virtual void render(const WebKit::WebVector<float*>& audioData, size_t numberOfFrames);62 61 63 62 // WebCore::AudioSourceProvider
Note: See TracChangeset
for help on using the changeset viewer.