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

Unified Diff: Source/platform/audio/AudioDelayDSPKernel.cpp

Issue 511333002: Removing "using" declarations that import names in the C++ Standard library.(Source/platform/audio) (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 4 months 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/Timer.cpp ('k') | Source/platform/audio/AudioResampler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/platform/audio/AudioDelayDSPKernel.cpp
diff --git a/Source/platform/audio/AudioDelayDSPKernel.cpp b/Source/platform/audio/AudioDelayDSPKernel.cpp
index 326a7002bf6d13cc2a35394291257177703b4517..861ac9b7d3ad3ab6b05b045350b824ba86d99a67 100644
--- a/Source/platform/audio/AudioDelayDSPKernel.cpp
+++ b/Source/platform/audio/AudioDelayDSPKernel.cpp
@@ -32,8 +32,6 @@
#include "wtf/MathExtras.h"
#include <algorithm>
-using namespace std;
-
namespace blink {
const float SmoothingTimeConstant = 0.020f; // 20ms
@@ -115,8 +113,8 @@ void AudioDelayDSPKernel::process(const float* source, float* destination, size_
delayTime = this->delayTime(sampleRate);
// Make sure the delay time is in a valid range.
- delayTime = min(maxTime, delayTime);
- delayTime = max(0.0, delayTime);
+ delayTime = std::min(maxTime, delayTime);
+ delayTime = std::max(0.0, delayTime);
if (m_firstTime) {
m_currentDelayTime = delayTime;
« no previous file with comments | « Source/platform/Timer.cpp ('k') | Source/platform/audio/AudioResampler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698