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

Unified Diff: third_party/WebKit/Source/platform/audio/UpSampler.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/UpSampler.cpp
diff --git a/third_party/WebKit/Source/platform/audio/UpSampler.cpp b/third_party/WebKit/Source/platform/audio/UpSampler.cpp
index d0efe2bae6150437a287df8fb4627e49f322101a..340d41ea52e2c7ae1faa2674cd277a0351332b3b 100644
--- a/third_party/WebKit/Source/platform/audio/UpSampler.cpp
+++ b/third_party/WebKit/Source/platform/audio/UpSampler.cpp
@@ -72,17 +72,17 @@ void UpSampler::process(const float* sourceP,
float* destP,
size_t sourceFramesToProcess) {
bool isInputBlockSizeGood = sourceFramesToProcess == m_inputBlockSize;
- ASSERT(isInputBlockSizeGood);
+ DCHECK(isInputBlockSizeGood);
if (!isInputBlockSizeGood)
return;
bool isTempBufferGood = sourceFramesToProcess == m_tempBuffer.size();
- ASSERT(isTempBufferGood);
+ DCHECK(isTempBufferGood);
if (!isTempBufferGood)
return;
bool isKernelGood = m_kernel.size() == DefaultKernelSize;
- ASSERT(isKernelGood);
+ DCHECK(isKernelGood);
if (!isKernelGood)
return;
@@ -91,7 +91,7 @@ void UpSampler::process(const float* sourceP,
// Copy source samples to 2nd half of input buffer.
bool isInputBufferGood = m_inputBuffer.size() == sourceFramesToProcess * 2 &&
halfSize <= sourceFramesToProcess;
- ASSERT(isInputBufferGood);
+ DCHECK(isInputBufferGood);
if (!isInputBufferGood)
return;
« no previous file with comments | « third_party/WebKit/Source/platform/audio/StereoPanner.cpp ('k') | third_party/WebKit/Source/platform/audio/VectorMath.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698