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

Side by Side Diff: third_party/WebKit/Source/platform/audio/DirectConvolver.h

Issue 2795943002: Rewrite references to "wtf/" to "platform/wtf/" in platform/audio. (Closed)
Patch Set: 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 /* 1 /*
2 * Copyright (C) 2012 Intel Inc. All rights reserved. 2 * Copyright (C) 2012 Intel Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 7 *
8 * 1. Redistributions of source code must retain the above copyright 8 * 1. Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * 2. Redistributions in binary form must reproduce the above copyright 10 * 2. Redistributions in binary form must reproduce the above copyright
(...skipping 13 matching lines...) Expand all
24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 24 * ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF 25 * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 26 * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
27 */ 27 */
28 28
29 #ifndef DirectConvolver_h 29 #ifndef DirectConvolver_h
30 #define DirectConvolver_h 30 #define DirectConvolver_h
31 31
32 #include "platform/PlatformExport.h" 32 #include "platform/PlatformExport.h"
33 #include "platform/audio/AudioArray.h" 33 #include "platform/audio/AudioArray.h"
34 #include "wtf/Allocator.h" 34 #include "platform/wtf/Allocator.h"
35 #include "wtf/Noncopyable.h" 35 #include "platform/wtf/Noncopyable.h"
36 36
37 namespace blink { 37 namespace blink {
38 38
39 class PLATFORM_EXPORT DirectConvolver { 39 class PLATFORM_EXPORT DirectConvolver {
40 USING_FAST_MALLOC(DirectConvolver); 40 USING_FAST_MALLOC(DirectConvolver);
41 WTF_MAKE_NONCOPYABLE(DirectConvolver); 41 WTF_MAKE_NONCOPYABLE(DirectConvolver);
42 42
43 public: 43 public:
44 DirectConvolver(size_t inputBlockSize); 44 DirectConvolver(size_t inputBlockSize);
45 45
46 void process(AudioFloatArray* convolutionKernel, 46 void process(AudioFloatArray* convolutionKernel,
47 const float* sourceP, 47 const float* sourceP,
48 float* destP, 48 float* destP,
49 size_t framesToProcess); 49 size_t framesToProcess);
50 50
51 void reset(); 51 void reset();
52 52
53 private: 53 private:
54 size_t m_inputBlockSize; 54 size_t m_inputBlockSize;
55 55
56 AudioFloatArray m_buffer; 56 AudioFloatArray m_buffer;
57 }; 57 };
58 58
59 } // namespace blink 59 } // namespace blink
60 60
61 #endif // DirectConvolver_h 61 #endif // DirectConvolver_h
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698