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

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

Issue 1952793002: Move the exception logic to the AudioNode creator (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments Created 4 years, 7 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 740af6d67b632e184cc21977797303c09effa594..bfaf39f9336db4361c89d9a2b9b32a06b56a5625 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.h
@@ -37,10 +37,7 @@ class ExceptionState;
class WaveShaperNode final : public AudioNode {
DEFINE_WRAPPERTYPEINFO();
public:
- static WaveShaperNode* create(AbstractAudioContext& context)
- {
- return new WaveShaperNode(context);
- }
+ static WaveShaperNode* create(AbstractAudioContext&, ExceptionState&);
// setCurve() is called on the main thread.
void setCurve(DOMFloat32Array*, ExceptionState&);

Powered by Google App Engine
This is Rietveld 408576698