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

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

Issue 2223613002: WaveShaperNode should copy its curve. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address review comments. 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 f841b05a011302dc632fab2b9612afe28989d204..4942b28f677b7904b6f4d4d1f5a712fd29f305f5 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperDSPKernel.cpp
@@ -74,7 +74,7 @@ void WaveShaperDSPKernel::processCurve(const float* source, float* destination,
ASSERT(destination);
ASSERT(getWaveShaperProcessor());
- DOMFloat32Array* curve = getWaveShaperProcessor()->curve();
+ Vector<float>* curve = getWaveShaperProcessor()->curve();
if (!curve) {
// Act as "straight wire" pass-through if no curve is set.
memcpy(destination, source, sizeof(float) * framesToProcess);
@@ -82,7 +82,7 @@ void WaveShaperDSPKernel::processCurve(const float* source, float* destination,
}
float* curveData = curve->data();
- int curveLength = curve->length();
+ int curveLength = curve->size();
ASSERT(curveData);

Powered by Google App Engine
This is Rietveld 408576698