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

Unified Diff: third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/modules/webaudio/DelayDSPKernel.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp b/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
index 784621b26933c228f1787a3a347c2c1c314a4774..c2bc651e8456a5159a754570227e6eb6cd1b4b47 100644
--- a/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DelayDSPKernel.cpp
@@ -34,14 +34,14 @@ const float SmoothingTimeConstant = 0.020f; // 20ms
DelayDSPKernel::DelayDSPKernel(DelayProcessor* processor)
: AudioDelayDSPKernel(processor, AudioHandler::ProcessingSizeInFrames)
{
- ASSERT(processor);
- ASSERT(processor->sampleRate() > 0);
+ DCHECK(processor);
+ DCHECK_GT(processor->sampleRate(), 0);
if (!(processor && processor->sampleRate() > 0))
return;
m_maxDelayTime = processor->maxDelayTime();
- ASSERT(m_maxDelayTime >= 0);
- ASSERT(!std::isnan(m_maxDelayTime));
+ DCHECK_GE(m_maxDelayTime, 0);
+ DCHECK(!std::isnan(m_maxDelayTime));
if (m_maxDelayTime < 0 || std::isnan(m_maxDelayTime))
return;

Powered by Google App Engine
This is Rietveld 408576698