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

Unified Diff: third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp

Issue 2807593003: Revert of Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio (Closed)
Patch Set: 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/android/FFTFrameOpenMAXDLAndroid.cpp
diff --git a/third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp b/third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
index 8a040fa15edc4cb8eee9c20f9fde594fd93637ab..366e61424c0092684864ce8215878e0c17a4b695 100644
--- a/third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
+++ b/third_party/WebKit/Source/platform/audio/android/FFTFrameOpenMAXDLAndroid.cpp
@@ -49,7 +49,7 @@
m_inverseContext(nullptr),
m_complexData(fftSize) {
// We only allow power of two.
- DCHECK_EQ(1UL << m_log2FFTSize, m_FFTSize);
+ ASSERT(1UL << m_log2FFTSize == m_FFTSize);
m_forwardContext = contextForSize(m_log2FFTSize);
m_inverseContext = contextForSize(m_log2FFTSize);
@@ -143,7 +143,7 @@
OMXFFTSpec_R_F32* FFTFrame::contextForSize(unsigned log2FFTSize) {
DCHECK(log2FFTSize);
- DCHECK_LE(log2FFTSize, kMaxFFTPow2Size);
+ ASSERT(log2FFTSize <= kMaxFFTPow2Size);
int bufSize;
OMXResult status = omxSP_FFTGetBufSize_R_F32(log2FFTSize, &bufSize);

Powered by Google App Engine
This is Rietveld 408576698