| 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 f841b05a011302dc632fab2b9612afe28989d204..1f2ffa126676909c18c48615cb4d9de5ac286513 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());
|
|
|
| DOMFloat32Array* curve = getWaveShaperProcessor()->curve();
|
| if (!curve) {
|
| @@ -84,7 +84,7 @@ void WaveShaperDSPKernel::processCurve(const float* source, float* destination,
|
| float* curveData = curve->data();
|
| int curveLength = curve->length();
|
|
|
| - 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;
|
|
|
|
|