Changeset 102622 in webkit
- Timestamp:
- Dec 12, 2011 2:13:32 PM (12 years ago)
- Location:
- trunk/Source/WebCore
- Files:
-
- 1 deleted
- 5 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebCore/ChangeLog
r102621 r102622 1 2011-11-26 Adam Barth <abarth@webkit.org> 2 3 Remove platform/audio/fftw 4 https://bugs.webkit.org/show_bug.cgi?id=73163 5 6 Reviewed by Eric Seidel. 7 8 The FFTW library is GPL, not LGPL, like WebKit. This patch removes the 9 integration with the library so folks who use WebAudio don't 10 accidentially violate the GPL by linking in FFTW. 11 12 * GNUmakefile.am: 13 * WebCore.gyp/WebCore.gyp: 14 * WebCore.gypi: 15 * platform/audio/FFTFrame.h: 16 * platform/audio/FFTFrameStub.cpp: 17 * platform/audio/fftw: Removed. 18 * platform/audio/fftw/FFTFrameFFTW.cpp: Removed. 19 1 20 2011-12-12 Kenneth Russell <kbr@google.com> 2 21 -
trunk/Source/WebCore/WebCore.gyp/WebCore.gyp
r102572 r102622 1096 1096 }, 1097 1097 }], 1098 ['OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {1099 'include_dirs': [1100 '<(chromium_src_dir)/third_party/fftw/api',1101 ],1102 }],1103 1098 ], 1104 1099 }, … … 1309 1304 }, 1310 1305 }], 1311 ['OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {1312 # This directory needs to be on the include path for multiple sub-targets of webcore.1313 'direct_dependent_settings': {1314 'include_dirs': [1315 '<(chromium_src_dir)/third_party/fftw/api',1316 ],1317 },1318 }],1319 1306 ['OS != "android" and "WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', { 1320 1307 # This directory needs to be on the include path for multiple sub-targets of webcore. … … 1944 1931 }, 1945 1932 }], 1946 ['os_posix == 1 and OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {1947 # FIXME: (kbr) figure out how to make these dependencies1948 # work in a cross-platform way. Attempts to use1949 # "link_settings" and "libraries" in conjunction with the1950 # msvs-specific settings didn't work so far.1951 'all_dependent_settings': {1952 'ldflags': [1953 # FIXME: (kbr) build the FFTW into PRODUCT_DIR using GYP.1954 '-Lthird_party/fftw/.libs',1955 ],1956 'link_settings': {1957 'libraries': [1958 '-lfftw3f'1959 ],1960 },1961 },1962 }],1963 1933 ['enable_svg!=0', { 1964 1934 'dependencies': [ -
trunk/Source/WebCore/WebCore.gypi
r102572 r102622 3227 3227 'platform/audio/ZeroPole.h', 3228 3228 'platform/audio/chromium/AudioBusChromium.cpp', 3229 'platform/audio/fftw/FFTFrameFFTW.cpp',3230 3229 'platform/audio/mac/AudioBusMac.mm', 3231 3230 'platform/audio/mac/AudioDestinationMac.cpp', -
trunk/Source/WebCore/platform/audio/FFTFrame.h
r95901 r102622 47 47 #include "mkl_dfti.h" 48 48 #endif // USE(WEBAUDIO_MKL) 49 50 #if USE(WEBAUDIO_FFTW)51 #include "fftw3.h"52 #endif // USE(WEBAUDIO_FFTW)53 49 54 50 #if USE(WEBAUDIO_FFMPEG) … … 151 147 #endif // USE(WEBAUDIO_FFMPEG) 152 148 153 #if USE(WEBAUDIO_FFTW)154 fftwf_plan m_forwardPlan;155 fftwf_plan m_backwardPlan;156 157 enum Direction {158 Forward,159 Backward160 };161 162 // Both the real and imaginary data are stored here.163 // The real data is stored first, followed by three float values of padding.164 // The imaginary data is stored after the padding and is 16-byte aligned (if m_data itself is aligned).165 // The reason we don't use separate arrays for real and imaginary is because the FFTW plans are shared166 // between FFTFrame instances and require that the real and imaginary data pointers be the same distance apart.167 AudioFloatArray m_data;168 169 static Mutex *s_planLock;170 static fftwf_plan* fftwForwardPlans;171 static fftwf_plan* fftwBackwardPlans;172 173 static fftwf_plan fftwPlanForSize(unsigned fftSize, Direction,174 float*, float*, float*);175 #endif // USE(WEBAUDIO_FFTW)176 177 149 #endif // !USE_ACCELERATE_FFT 178 150 }; -
trunk/Source/WebCore/platform/audio/FFTFrameStub.cpp
r95901 r102622 30 30 #if ENABLE(WEB_AUDIO) 31 31 32 #if !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FF TW) && !USE(WEBAUDIO_FFMPEG)32 #if !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FFMPEG) 33 33 34 34 #include "FFTFrame.h" … … 103 103 } // namespace WebCore 104 104 105 #endif // !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FFTW)105 #endif // !OS(DARWIN) && !USE(WEBAUDIO_MKL) 106 106 107 107 #endif // ENABLE(WEB_AUDIO)
Note: See TracChangeset
for help on using the changeset viewer.