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

Unified Diff: third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h

Issue 2102133002: Add constructors for WebAudio nodes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase and prefix use counter names with WebAudio Created 4 years, 3 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/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;
};

Powered by Google App Engine
This is Rietveld 408576698