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

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

Issue 2803733002: Convert ASSERT(foo) to DCHECK(foo) in platform/audio (Closed)
Patch Set: Mechanical change from ASSERT(foo) to DCHECK(foo) 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/FFTConvolver.cpp
diff --git a/third_party/WebKit/Source/platform/audio/FFTConvolver.cpp b/third_party/WebKit/Source/platform/audio/FFTConvolver.cpp
index b22dd3b2bf2a5968a9f403d9c73635e788bc0d14..b1736089acfef126dce245342242336bce1cb88c 100644
--- a/third_party/WebKit/Source/platform/audio/FFTConvolver.cpp
+++ b/third_party/WebKit/Source/platform/audio/FFTConvolver.cpp
@@ -50,7 +50,7 @@ void FFTConvolver::process(FFTFrame* fftKernel,
// or halfSize is a multiple of framesToProcess when halfSize >
// framesToProcess.
bool isGood = !(halfSize % framesToProcess && framesToProcess % halfSize);
- ASSERT(isGood);
+ DCHECK(isGood);
if (!isGood)
return;
@@ -66,7 +66,7 @@ void FFTConvolver::process(FFTFrame* fftKernel,
// Sanity check
bool isCopyGood1 = sourceP && inputP &&
m_readWriteIndex + divisionSize <= m_inputBuffer.size();
- ASSERT(isCopyGood1);
+ DCHECK(isCopyGood1);
if (!isCopyGood1)
return;
@@ -78,7 +78,7 @@ void FFTConvolver::process(FFTFrame* fftKernel,
// Sanity check
bool isCopyGood2 = destP && outputP &&
m_readWriteIndex + divisionSize <= m_outputBuffer.size();
- ASSERT(isCopyGood2);
+ DCHECK(isCopyGood2);
if (!isCopyGood2)
return;
@@ -99,7 +99,7 @@ void FFTConvolver::process(FFTFrame* fftKernel,
// Finally, save 2nd half of result
bool isCopyGood3 = m_outputBuffer.size() == 2 * halfSize &&
m_lastOverlapBuffer.size() == halfSize;
- ASSERT(isCopyGood3);
+ DCHECK(isCopyGood3);
if (!isCopyGood3)
return;

Powered by Google App Engine
This is Rietveld 408576698