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

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

Issue 2803073002: Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio (Closed)
Patch Set: Removing DCHECK_IS_ON from FFTFrameOpenMAXDLAndroid.cpp Created 3 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: third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp b/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
index 77000c25d6d2b04909764d4a111c175733c30745..7d66756954e89911293caac3ee8b918a2595bf49 100644
--- a/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioUtilities.cpp
@@ -36,7 +36,7 @@ float decibelsToLinear(float decibels) {
}
float linearToDecibels(float linear) {
- ASSERT(linear >= 0);
+ DCHECK_GE(linear, 0);
return 20 * log10f(linear);
}
@@ -47,7 +47,7 @@ double discreteTimeConstantForSampleRate(double timeConstant,
}
size_t timeToSampleFrame(double time, double sampleRate) {
- ASSERT(time >= 0);
+ DCHECK_GE(time, 0);
double frame = round(time * sampleRate);
// Just return the largest possible size_t value if necessary.

Powered by Google App Engine
This is Rietveld 408576698