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

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

Issue 1818233003: Merge WTF::initializeMainThread into WTF::initialize (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google 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 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 11 matching lines...) Expand all
22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 22 * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
23 */ 23 */
24 24
25 #include "modules/webaudio/ConvolverNode.h" 25 #include "modules/webaudio/ConvolverNode.h"
26 #include "bindings/core/v8/ExceptionState.h" 26 #include "bindings/core/v8/ExceptionState.h"
27 #include "core/dom/ExceptionCode.h" 27 #include "core/dom/ExceptionCode.h"
28 #include "modules/webaudio/AudioBuffer.h" 28 #include "modules/webaudio/AudioBuffer.h"
29 #include "modules/webaudio/AudioNodeInput.h" 29 #include "modules/webaudio/AudioNodeInput.h"
30 #include "modules/webaudio/AudioNodeOutput.h" 30 #include "modules/webaudio/AudioNodeOutput.h"
31 #include "platform/audio/Reverb.h" 31 #include "platform/audio/Reverb.h"
32 #include "wtf/MainThread.h"
33 32
34 // Note about empirical tuning: 33 // Note about empirical tuning:
35 // The maximum FFT size affects reverb performance and accuracy. 34 // The maximum FFT size affects reverb performance and accuracy.
36 // If the reverb is single-threaded and processes entirely in the real-time audi o thread, 35 // If the reverb is single-threaded and processes entirely in the real-time audi o thread,
37 // it's important not to make this too high. In this case 8192 is a good value. 36 // it's important not to make this too high. In this case 8192 is a good value.
38 // But, the Reverb object is multi-threaded, so we want this as high as possible without losing too much accuracy. 37 // But, the Reverb object is multi-threaded, so we want this as high as possible without losing too much accuracy.
39 // Very large FFTs will have worse phase errors. Given these constraints 32768 i s a good compromise. 38 // Very large FFTs will have worse phase errors. Given these constraints 32768 i s a good compromise.
40 const size_t MaxFFTSize = 32768; 39 const size_t MaxFFTSize = 32768;
41 40
42 namespace blink { 41 namespace blink {
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 return convolverHandler().normalize(); 196 return convolverHandler().normalize();
198 } 197 }
199 198
200 void ConvolverNode::setNormalize(bool normalize) 199 void ConvolverNode::setNormalize(bool normalize)
201 { 200 {
202 convolverHandler().setNormalize(normalize); 201 convolverHandler().setNormalize(normalize);
203 } 202 }
204 203
205 } // namespace blink 204 } // namespace blink
206 205
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698