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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.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/IIRDSPKernel.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp b/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp
index 47a31c564377323165b606eb549f88df02cc9566..f1f596ff681d8c0efcbdaf5d100c02ee31bcf5f6 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRDSPKernel.cpp
@@ -10,8 +10,8 @@ namespace blink {
void IIRDSPKernel::process(const float* source, float* destination, size_t framesToProcess)
{
- ASSERT(source);
- ASSERT(destination);
+ DCHECK(source);
+ DCHECK(destination);
m_iir.process(source, destination, framesToProcess);
}
@@ -19,7 +19,7 @@ void IIRDSPKernel::process(const float* source, float* destination, size_t frame
void IIRDSPKernel::getFrequencyResponse(int nFrequencies, const float* frequencyHz, float* magResponse, float* phaseResponse)
{
bool isGood = nFrequencies > 0 && frequencyHz && magResponse && phaseResponse;
- ASSERT(isGood);
+ DCHECK(isGood);
if (!isGood)
return;
« no previous file with comments | « third_party/WebKit/Source/modules/webaudio/GainNode.cpp ('k') | third_party/WebKit/Source/modules/webaudio/IIRProcessor.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698