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

Unified Diff: third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.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
« no previous file with comments | « third_party/WebKit/Source/platform/audio/ipp/FFTFrameIPP.cpp ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp
diff --git a/third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp b/third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp
index 47562dc1f4ff9bbc525f55ec0d38558bff8854b5..f57f0961e81e606db8f273b84513a5fec1b4c536 100644
--- a/third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp
+++ b/third_party/WebKit/Source/platform/audio/mac/FFTFrameMac.cpp
@@ -49,7 +49,7 @@ FFTFrame::FFTFrame(unsigned fftSize)
m_log2FFTSize = static_cast<unsigned>(log2(fftSize));
// We only allow power of two
- ASSERT(1UL << m_log2FFTSize == m_FFTSize);
+ DCHECK_EQ(1UL << m_log2FFTSize, m_FFTSize);
// Lazily create and share fftSetup with other frames
m_FFTSetup = fftSetupForSize(fftSize);
@@ -116,7 +116,7 @@ FFTSetup FFTFrame::fftSetupForSize(unsigned fftSize) {
}
int pow2size = static_cast<int>(log2(fftSize));
- ASSERT(pow2size < kMaxFFTPow2Size);
+ DCHECK_LT(pow2size, kMaxFFTPow2Size);
if (!fftSetups[pow2size])
fftSetups[pow2size] = vDSP_create_fftsetup(pow2size, FFT_RADIX2);
« no previous file with comments | « third_party/WebKit/Source/platform/audio/ipp/FFTFrameIPP.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698