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

Unified Diff: Source/platform/audio/chromium/AudioDestinationChromium.cpp

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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/platform/audio/chromium/AudioDestinationChromium.h ('k') | Source/platform/blob/BlobRegistry.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/chromium/AudioDestinationChromium.cpp
diff --git a/Source/platform/audio/chromium/AudioDestinationChromium.cpp b/Source/platform/audio/chromium/AudioDestinationChromium.cpp
index 82eaf5da2a04885486877b03163df9af5f59e773..22b68305ee19837617988ed6f9333c06afa550c1 100644
--- a/Source/platform/audio/chromium/AudioDestinationChromium.cpp
+++ b/Source/platform/audio/chromium/AudioDestinationChromium.cpp
@@ -59,7 +59,7 @@ AudioDestinationChromium::AudioDestinationChromium(AudioIOCallback& callback, co
, m_isPlaying(false)
{
// Use the optimal buffer size recommended by the audio backend.
- m_callbackBufferSize = WebKit::Platform::current()->audioHardwareBufferSize();
+ m_callbackBufferSize = blink::Platform::current()->audioHardwareBufferSize();
#if OS(ANDROID)
// The optimum low-latency hardware buffer size is usually too small on Android for WebAudio to
@@ -82,7 +82,7 @@ AudioDestinationChromium::AudioDestinationChromium(AudioIOCallback& callback, co
if (m_callbackBufferSize + renderBufferSize > fifoSize)
return;
- m_audioDevice = adoptPtr(WebKit::Platform::current()->createAudioDevice(m_callbackBufferSize, numberOfInputChannels, numberOfOutputChannels, sampleRate, this, inputDeviceId));
+ m_audioDevice = adoptPtr(blink::Platform::current()->createAudioDevice(m_callbackBufferSize, numberOfInputChannels, numberOfOutputChannels, sampleRate, this, inputDeviceId));
ASSERT(m_audioDevice);
// Create a FIFO to handle the possibility of the callback size
@@ -127,15 +127,15 @@ void AudioDestinationChromium::stop()
float AudioDestination::hardwareSampleRate()
{
- return static_cast<float>(WebKit::Platform::current()->audioHardwareSampleRate());
+ return static_cast<float>(blink::Platform::current()->audioHardwareSampleRate());
}
unsigned long AudioDestination::maxChannelCount()
{
- return static_cast<float>(WebKit::Platform::current()->audioHardwareOutputChannels());
+ return static_cast<float>(blink::Platform::current()->audioHardwareOutputChannels());
}
-void AudioDestinationChromium::render(const WebKit::WebVector<float*>& sourceData, const WebKit::WebVector<float*>& audioData, size_t numberOfFrames)
+void AudioDestinationChromium::render(const blink::WebVector<float*>& sourceData, const blink::WebVector<float*>& audioData, size_t numberOfFrames)
{
bool isNumberOfChannelsGood = audioData.size() == m_numberOfOutputChannels;
if (!isNumberOfChannelsGood) {
« no previous file with comments | « Source/platform/audio/chromium/AudioDestinationChromium.h ('k') | Source/platform/blob/BlobRegistry.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698