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

Side by Side Diff: third_party/WebKit/Source/modules/webaudio/IIRFilterNode.cpp

Issue 2701993002: DO NOT COMMIT: Results of running new (proposed) clang-format on Blink (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "modules/webaudio/IIRFilterNode.h" 5 #include "modules/webaudio/IIRFilterNode.h"
6 6
7 #include "bindings/core/v8/ExceptionMessages.h" 7 #include "bindings/core/v8/ExceptionMessages.h"
8 #include "bindings/core/v8/ExceptionState.h" 8 #include "bindings/core/v8/ExceptionState.h"
9 #include "core/dom/ExceptionCode.h" 9 #include "core/dom/ExceptionCode.h"
10 #include "modules/webaudio/AudioBasicProcessorHandler.h" 10 #include "modules/webaudio/AudioBasicProcessorHandler.h"
(...skipping 165 matching lines...) Expand 10 before | Expand all | Expand 10 after
176 if (magResponse->length() < frequencyHzLength) { 176 if (magResponse->length() < frequencyHzLength) {
177 exceptionState.throwDOMException( 177 exceptionState.throwDOMException(
178 NotSupportedError, 178 NotSupportedError,
179 ExceptionMessages::indexExceedsMinimumBound( 179 ExceptionMessages::indexExceedsMinimumBound(
180 "magResponse length", magResponse->length(), frequencyHzLength)); 180 "magResponse length", magResponse->length(), frequencyHzLength));
181 return; 181 return;
182 } 182 }
183 183
184 if (phaseResponse->length() < frequencyHzLength) { 184 if (phaseResponse->length() < frequencyHzLength) {
185 exceptionState.throwDOMException( 185 exceptionState.throwDOMException(
186 NotSupportedError, ExceptionMessages::indexExceedsMinimumBound( 186 NotSupportedError,
187 "phaseResponse length", phaseResponse->length(), 187 ExceptionMessages::indexExceedsMinimumBound("phaseResponse length",
188 frequencyHzLength)); 188 phaseResponse->length(),
189 frequencyHzLength));
189 return; 190 return;
190 } 191 }
191 192
192 iirProcessor()->getFrequencyResponse(frequencyHzLength, frequencyHz->data(), 193 iirProcessor()->getFrequencyResponse(frequencyHzLength, frequencyHz->data(),
193 magResponse->data(), 194 magResponse->data(),
194 phaseResponse->data()); 195 phaseResponse->data());
195 } 196 }
196 197
197 } // namespace blink 198 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698