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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDestination.cpp

Issue 2547053003: s/ passed(...) / WTF::passed(...) / to avoid future ambiguity w/ base::Passed. (Closed)
Patch Set: Rebasing... Created 4 years 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
Index: third_party/WebKit/Source/platform/audio/AudioDestination.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
index 39903c682010aa23536b1e7061ebce9d5a012e0b..381ed49953a673ce23bd236853721e2fcf41a589 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDestination.cpp
@@ -51,7 +51,7 @@ std::unique_ptr<AudioDestination> AudioDestination::create(
unsigned numberOfOutputChannels,
float sampleRate,
PassRefPtr<SecurityOrigin> securityOrigin) {
- return wrapUnique(new AudioDestination(
+ return WTF::wrapUnique(new AudioDestination(
callback, inputDeviceId, numberOfInputChannels, numberOfOutputChannels,
sampleRate, std::move(securityOrigin)));
}
@@ -108,7 +108,7 @@ AudioDestination::AudioDestination(AudioIOCallback& callback,
if (m_callbackBufferSize + AudioUtilities::kRenderQuantumFrames > fifoSize)
return;
- m_audioDevice = wrapUnique(Platform::current()->createAudioDevice(
+ m_audioDevice = WTF::wrapUnique(Platform::current()->createAudioDevice(
m_callbackBufferSize, numberOfInputChannels, numberOfOutputChannels,
sampleRate, this, inputDeviceId, std::move(securityOrigin)));
ASSERT(m_audioDevice);
@@ -122,11 +122,12 @@ AudioDestination::AudioDestination(AudioIOCallback& callback,
// contains enough data, the data will be provided directly.
// Otherwise, the FIFO will call the provider enough times to
// satisfy the request for data.
- m_fifo = wrapUnique(new AudioPullFIFO(*this, numberOfOutputChannels, fifoSize,
+ m_fifo =
+ WTF::wrapUnique(new AudioPullFIFO(*this, numberOfOutputChannels, fifoSize,
AudioUtilities::kRenderQuantumFrames));
// Input buffering.
- m_inputFifo = makeUnique<AudioFIFO>(numberOfInputChannels, fifoSize);
+ m_inputFifo = WTF::makeUnique<AudioFIFO>(numberOfInputChannels, fifoSize);
// If the callback size does not match the render size, then we need to
// buffer some extra silence for the input. Otherwise, we can over-consume
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioChannel.h ('k') | third_party/WebKit/Source/platform/audio/AudioResampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698