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

Unified Diff: Source/modules/webaudio/DelayNode.h

Issue 1026663002: Web Audio: Don't create unnecessary DelayNode object. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 5 years, 9 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
« no previous file with comments | « no previous file | Source/modules/webaudio/DelayNode.cpp » ('j') | Source/modules/webaudio/DelayNode.cpp » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DelayNode.h
diff --git a/Source/modules/webaudio/DelayNode.h b/Source/modules/webaudio/DelayNode.h
index 997d5245122eb3a71514fcaa8cf3375bb0ec0932..5cdd602ec55509929434f3fa9480860f8544fad9 100644
--- a/Source/modules/webaudio/DelayNode.h
+++ b/Source/modules/webaudio/DelayNode.h
@@ -37,15 +37,11 @@ class ExceptionState;
class DelayNode final : public AudioBasicProcessorNode {
DEFINE_WRAPPERTYPEINFO();
public:
- static DelayNode* create(AudioContext* context, float sampleRate, double maxDelayTime, ExceptionState& exceptionState)
- {
- return new DelayNode(context, sampleRate, maxDelayTime, exceptionState);
- }
-
+ static DelayNode* create(AudioContext*, float sampleRate, double maxDelayTime, ExceptionState&);
AudioParam* delayTime();
private:
- DelayNode(AudioContext*, float sampleRate, double maxDelayTime, ExceptionState&);
+ DelayNode(AudioContext*, float sampleRate, double maxDelayTime);
DelayProcessor* delayProcessor() { return static_cast<DelayProcessor*>(processor()); }
};
« no previous file with comments | « no previous file | Source/modules/webaudio/DelayNode.cpp » ('j') | Source/modules/webaudio/DelayNode.cpp » ('J')

Powered by Google App Engine
This is Rietveld 408576698