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

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

Issue 2707243006: [SharedArrayBuffer] Prevent SharedArrayBuffer being used in Web APIs (Closed)
Patch Set: update comment, add TODO 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 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 #ifndef IIRFilterNode_h 5 #ifndef IIRFilterNode_h
6 #define IIRFilterNode_h 6 #define IIRFilterNode_h
7 7
8 #include "core/dom/DOMTypedArray.h" 8 #include "core/dom/DOMTypedArray.h"
9 #include "core/dom/NotShared.h"
9 #include "modules/webaudio/AudioNode.h" 10 #include "modules/webaudio/AudioNode.h"
10 #include "modules/webaudio/IIRProcessor.h" 11 #include "modules/webaudio/IIRProcessor.h"
11 12
12 namespace blink { 13 namespace blink {
13 14
14 class BaseAudioContext; 15 class BaseAudioContext;
15 class ExceptionState; 16 class ExceptionState;
16 class IIRFilterOptions; 17 class IIRFilterOptions;
17 18
18 class IIRFilterNode : public AudioNode { 19 class IIRFilterNode : public AudioNode {
19 DEFINE_WRAPPERTYPEINFO(); 20 DEFINE_WRAPPERTYPEINFO();
20 21
21 public: 22 public:
22 static IIRFilterNode* Create(BaseAudioContext&, 23 static IIRFilterNode* Create(BaseAudioContext&,
23 const Vector<double>& feedforward, 24 const Vector<double>& feedforward,
24 const Vector<double>& feedback, 25 const Vector<double>& feedback,
25 ExceptionState&); 26 ExceptionState&);
26 27
27 static IIRFilterNode* Create(BaseAudioContext*, 28 static IIRFilterNode* Create(BaseAudioContext*,
28 const IIRFilterOptions&, 29 const IIRFilterOptions&,
29 ExceptionState&); 30 ExceptionState&);
30 31
31 DECLARE_VIRTUAL_TRACE(); 32 DECLARE_VIRTUAL_TRACE();
32 33
33 // Get the magnitude and phase response of the filter at the given 34 // Get the magnitude and phase response of the filter at the given
34 // set of frequencies (in Hz). The phase response is in radians. 35 // set of frequencies (in Hz). The phase response is in radians.
35 void getFrequencyResponse(const DOMFloat32Array* frequency_hz, 36 void getFrequencyResponse(NotShared<const DOMFloat32Array> frequency_hz,
36 DOMFloat32Array* mag_response, 37 NotShared<DOMFloat32Array> mag_response,
37 DOMFloat32Array* phase_response, 38 NotShared<DOMFloat32Array> phase_response,
38 ExceptionState&); 39 ExceptionState&);
39 40
40 private: 41 private:
41 IIRFilterNode(BaseAudioContext&, 42 IIRFilterNode(BaseAudioContext&,
42 const Vector<double>& denominator, 43 const Vector<double>& denominator,
43 const Vector<double>& numerator); 44 const Vector<double>& numerator);
44 45
45 IIRProcessor* IirProcessor() const; 46 IIRProcessor* IirProcessor() const;
46 }; 47 };
47 48
48 } // namespace blink 49 } // namespace blink
49 50
50 #endif // IIRFilterNode_h 51 #endif // IIRFilterNode_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698