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

Unified Diff: third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.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/WaveShaperDSPKernel.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp b/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp
index 4942b28f677b7904b6f4d4d1f5a712fd29f305f5..f788bf30974886279d3a78d7875c42c386310922 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp
@@ -70,9 +70,9 @@ void WaveShaperDSPKernel::process(const float* source, float* destination, size_
void WaveShaperDSPKernel::processCurve(const float* source, float* destination, size_t framesToProcess)
{
- ASSERT(source);
- ASSERT(destination);
- ASSERT(getWaveShaperProcessor());
+ DCHECK(source);
+ DCHECK(destination);
+ DCHECK(getWaveShaperProcessor());
Vector<float>* curve = getWaveShaperProcessor()->curve();
if (!curve) {
@@ -84,7 +84,7 @@ void WaveShaperDSPKernel::processCurve(const float* source, float* destination,
float* curveData = curve->data();
int curveLength = curve->size();
- ASSERT(curveData);
+ DCHECK(curveData);
if (!curveData || !curveLength) {
memcpy(destination, source, sizeof(float) * framesToProcess);
@@ -126,7 +126,7 @@ void WaveShaperDSPKernel::processCurve(const float* source, float* destination,
void WaveShaperDSPKernel::processCurve2x(const float* source, float* destination, size_t framesToProcess)
{
bool isSafe = framesToProcess == RenderingQuantum;
- ASSERT(isSafe);
+ DCHECK(isSafe);
if (!isSafe)
return;
@@ -143,7 +143,7 @@ void WaveShaperDSPKernel::processCurve2x(const float* source, float* destination
void WaveShaperDSPKernel::processCurve4x(const float* source, float* destination, size_t framesToProcess)
{
bool isSafe = framesToProcess == RenderingQuantum;
- ASSERT(isSafe);
+ DCHECK(isSafe);
if (!isSafe)
return;

Powered by Google App Engine
This is Rietveld 408576698