| Index: third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
|
| index c4700f0921381d9658f2fff559b5dce1aa4f4078..af1cbead2565363279d28e6133a2eb5f138ca476 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
|
| @@ -92,12 +92,12 @@ void WaveShaperNode::setCurveImpl(const float* curveData,
|
| getWaveShaperProcessor()->setCurve(curveData, curveLength);
|
| }
|
|
|
| -void WaveShaperNode::setCurve(DOMFloat32Array* curve,
|
| +void WaveShaperNode::setCurve(const NotShared<DOMFloat32Array>& curve,
|
| ExceptionState& exceptionState) {
|
| DCHECK(isMainThread());
|
|
|
| - if (curve)
|
| - setCurveImpl(curve->data(), curve->length(), exceptionState);
|
| + if (curve.view())
|
| + setCurveImpl(curve.view()->data(), curve.view()->length(), exceptionState);
|
| else
|
| setCurveImpl(nullptr, 0, exceptionState);
|
| }
|
|
|