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

Unified Diff: third_party/WebKit/Source/platform/audio/DownSampler.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/DownSampler.cpp
diff --git a/third_party/WebKit/Source/platform/audio/DownSampler.cpp b/third_party/WebKit/Source/platform/audio/DownSampler.cpp
index 514c1029717bea4b902f1ba5d86c087e0d687184..baeea85fcae8dc21b7bfe1d111381fa401372689 100644
--- a/third_party/WebKit/Source/platform/audio/DownSampler.cpp
+++ b/third_party/WebKit/Source/platform/audio/DownSampler.cpp
@@ -81,19 +81,19 @@ void DownSampler::process(const float* sourceP,
float* destP,
size_t sourceFramesToProcess) {
bool isInputBlockSizeGood = sourceFramesToProcess == m_inputBlockSize;
- ASSERT(isInputBlockSizeGood);
+ DCHECK(isInputBlockSizeGood);
if (!isInputBlockSizeGood)
return;
size_t destFramesToProcess = sourceFramesToProcess / 2;
bool isTempBufferGood = destFramesToProcess == m_tempBuffer.size();
- ASSERT(isTempBufferGood);
+ DCHECK(isTempBufferGood);
if (!isTempBufferGood)
return;
bool isReducedKernelGood = m_reducedKernel.size() == DefaultKernelSize / 2;
- ASSERT(isReducedKernelGood);
+ DCHECK(isReducedKernelGood);
if (!isReducedKernelGood)
return;
@@ -102,7 +102,7 @@ void DownSampler::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;

Powered by Google App Engine
This is Rietveld 408576698