Index: third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h |
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h |
index b089ca888f44a3b59b27d0540b800c2b71e9d577..4446250575352942c3ce1e960562fcd6f8e4c33c 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h |
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h |
@@ -33,14 +33,17 @@ namespace blink { |
class BaseAudioContext; |
class ExceptionState; |
+class WaveShaperOptions; |
class WaveShaperNode final : public AudioNode { |
DEFINE_WRAPPERTYPEINFO(); |
public: |
static WaveShaperNode* create(BaseAudioContext&, ExceptionState&); |
+ static WaveShaperNode* create(BaseAudioContext*, const WaveShaperOptions&, ExceptionState&); |
// setCurve() is called on the main thread. |
void setCurve(DOMFloat32Array*, ExceptionState&); |
+ void setCurve(const Vector<float>&, ExceptionState&); |
DOMFloat32Array* curve(); |
void setOversample(const String&); |
@@ -49,6 +52,7 @@ public: |
private: |
explicit WaveShaperNode(BaseAudioContext&); |
+ void setCurveImpl(const float* curveData, unsigned curveLength, ExceptionState&); |
WaveShaperProcessor* getWaveShaperProcessor() const; |
}; |