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

Unified Diff: media/audio/audio_power_monitor.cc

Issue 1076443002: Removed obsolete float_util.h as VS2013 supports standards well enough. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkgr
Patch Set: Added missing includes everywhere. Created 5 years, 8 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
Index: media/audio/audio_power_monitor.cc
diff --git a/media/audio/audio_power_monitor.cc b/media/audio/audio_power_monitor.cc
index b0b17971b4fa63d8e34700bfec75ab13c5d6a21a..efbad6c5006ec4647e10e31d4db6b3297c66b0f9 100644
--- a/media/audio/audio_power_monitor.cc
+++ b/media/audio/audio_power_monitor.cc
@@ -7,7 +7,6 @@
#include <algorithm>
#include <cmath>
-#include "base/float_util.h"
#include "base/logging.h"
#include "base/time/time.h"
#include "media/base/audio_bus.h"
@@ -53,7 +52,7 @@ void AudioPowerMonitor::Scan(const AudioBus& buffer, int num_frames) {
const std::pair<float, float> ewma_and_max = vector_math::EWMAAndMaxPower(
average_power_, buffer.channel(i), num_frames, sample_weight_);
// If data in audio buffer is garbage, ignore its effect on the result.
- if (!base::IsFinite(ewma_and_max.first)) {
+ if (!std::isfinite(ewma_and_max.first)) {
sum_power += average_power_;
} else {
sum_power += ewma_and_max.first;

Powered by Google App Engine
This is Rietveld 408576698