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

Unified Diff: third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp

Issue 2800203002: Use reference parameters when constructing IIRFilterNode's (Closed)
Patch Set: Rebase Created 3 years, 8 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/IIRFilterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
index c1334294e0d04823e4bdde9ad0b78a230c8f63bc..140a6fc44d6c3a4212b62f4529c49945123f2d3e 100644
--- a/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp
@@ -16,8 +16,8 @@
namespace blink {
IIRFilterNode::IIRFilterNode(BaseAudioContext& context,
- const Vector<double> feedforward_coef,
- const Vector<double> feedback_coef)
+ const Vector<double>& feedforward_coef,
+ const Vector<double>& feedback_coef)
: AudioNode(context) {
SetHandler(AudioBasicProcessorHandler::Create(
AudioHandler::kNodeTypeIIRFilter, *this, context.sampleRate(),
@@ -34,8 +34,8 @@ IIRFilterNode::IIRFilterNode(BaseAudioContext& context,
}
IIRFilterNode* IIRFilterNode::Create(BaseAudioContext& context,
- const Vector<double> feedforward_coef,
- const Vector<double> feedback_coef,
+ const Vector<double>& feedforward_coef,
+ const Vector<double>& feedback_coef,
ExceptionState& exception_state) {
DCHECK(IsMainThread());

Powered by Google App Engine
This is Rietveld 408576698