Title: [102622] trunk/Source/WebCore
Revision
102622
Author
[email protected]
Date
2011-12-12 14:13:32 -0800 (Mon, 12 Dec 2011)

Log Message

Remove platform/audio/fftw
https://bugs.webkit.org/show_bug.cgi?id=73163

Reviewed by Eric Seidel.

The FFTW library is GPL, not LGPL, like WebKit.  This patch removes the
integration with the library so folks who use WebAudio don't
accidentially violate the GPL by linking in FFTW.

* GNUmakefile.am:
* WebCore.gyp/WebCore.gyp:
* WebCore.gypi:
* platform/audio/FFTFrame.h:
* platform/audio/FFTFrameStub.cpp:
* platform/audio/fftw: Removed.
* platform/audio/fftw/FFTFrameFFTW.cpp: Removed.

Modified Paths

Removed Paths

  • trunk/Source/WebCore/platform/audio/fftw/

Diff

Modified: trunk/Source/WebCore/ChangeLog (102621 => 102622)


--- trunk/Source/WebCore/ChangeLog	2011-12-12 22:09:26 UTC (rev 102621)
+++ trunk/Source/WebCore/ChangeLog	2011-12-12 22:13:32 UTC (rev 102622)
@@ -1,3 +1,22 @@
+2011-11-26  Adam Barth  <[email protected]>
+
+        Remove platform/audio/fftw
+        https://bugs.webkit.org/show_bug.cgi?id=73163
+
+        Reviewed by Eric Seidel.
+
+        The FFTW library is GPL, not LGPL, like WebKit.  This patch removes the
+        integration with the library so folks who use WebAudio don't
+        accidentially violate the GPL by linking in FFTW.
+
+        * GNUmakefile.am:
+        * WebCore.gyp/WebCore.gyp:
+        * WebCore.gypi:
+        * platform/audio/FFTFrame.h:
+        * platform/audio/FFTFrameStub.cpp:
+        * platform/audio/fftw: Removed.
+        * platform/audio/fftw/FFTFrameFFTW.cpp: Removed.
+
 2011-12-12  Kenneth Russell  <[email protected]>
 
         COMPILE_ASSERT in CSSStyleSelector.cpp doesn't compile on Windows

Modified: trunk/Source/WebCore/WebCore.gyp/WebCore.gyp (102621 => 102622)


--- trunk/Source/WebCore/WebCore.gyp/WebCore.gyp	2011-12-12 22:09:26 UTC (rev 102621)
+++ trunk/Source/WebCore/WebCore.gyp/WebCore.gyp	2011-12-12 22:13:32 UTC (rev 102622)
@@ -1095,11 +1095,6 @@
             'include_dirs+++': ['../dom'],
           },
         }],
-        ['OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {
-          'include_dirs': [
-            '<(chromium_src_dir)/third_party/fftw/api',
-          ],
-        }],
       ],
     },
     {
@@ -1308,14 +1303,6 @@
             'include_dirs++': ['../dom'],
           },
         }],
-        ['OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {
-          # This directory needs to be on the include path for multiple sub-targets of webcore.
-          'direct_dependent_settings': {
-            'include_dirs': [
-              '<(chromium_src_dir)/third_party/fftw/api',
-            ],
-          },
-        }],
         ['OS != "android" and "WTF_USE_WEBAUDIO_FFMPEG=1" in feature_defines', {
           # This directory needs to be on the include path for multiple sub-targets of webcore.
           'direct_dependent_settings': {
@@ -1943,23 +1930,6 @@
             'include_dirs+++': ['../dom'],
           },
         }],
-        ['os_posix == 1 and OS != "mac" and OS != "android" and "WTF_USE_WEBAUDIO_FFTW=1" in feature_defines', {
-          # FIXME: (kbr) figure out how to make these dependencies
-          # work in a cross-platform way. Attempts to use
-          # "link_settings" and "libraries" in conjunction with the
-          # msvs-specific settings didn't work so far.
-          'all_dependent_settings': {
-            'ldflags': [
-              # FIXME: (kbr) build the FFTW into PRODUCT_DIR using GYP.
-              '-Lthird_party/fftw/.libs',
-            ],
-            'link_settings': {
-              'libraries': [
-                '-lfftw3f'
-              ],
-            },
-          },
-        }],
         ['enable_svg!=0', {
           'dependencies': [
             'webcore_svg',

Modified: trunk/Source/WebCore/WebCore.gypi (102621 => 102622)


--- trunk/Source/WebCore/WebCore.gypi	2011-12-12 22:09:26 UTC (rev 102621)
+++ trunk/Source/WebCore/WebCore.gypi	2011-12-12 22:13:32 UTC (rev 102622)
@@ -3226,7 +3226,6 @@
             'platform/audio/ZeroPole.cpp',
             'platform/audio/ZeroPole.h',
             'platform/audio/chromium/AudioBusChromium.cpp',
-            'platform/audio/fftw/FFTFrameFFTW.cpp',
             'platform/audio/mac/AudioBusMac.mm',
             'platform/audio/mac/AudioDestinationMac.cpp',
             'platform/audio/mac/AudioDestinationMac.h',

Modified: trunk/Source/WebCore/platform/audio/FFTFrame.h (102621 => 102622)


--- trunk/Source/WebCore/platform/audio/FFTFrame.h	2011-12-12 22:09:26 UTC (rev 102621)
+++ trunk/Source/WebCore/platform/audio/FFTFrame.h	2011-12-12 22:13:32 UTC (rev 102622)
@@ -47,10 +47,6 @@
 #include "mkl_dfti.h"
 #endif // USE(WEBAUDIO_MKL)
 
-#if USE(WEBAUDIO_FFTW)
-#include "fftw3.h"
-#endif // USE(WEBAUDIO_FFTW)
-
 #if USE(WEBAUDIO_FFMPEG)
 struct RDFTContext;
 #endif // USE(WEBAUDIO_FFMPEG)
@@ -150,30 +146,6 @@
     AudioFloatArray m_imagData;
 #endif // USE(WEBAUDIO_FFMPEG)
 
-#if USE(WEBAUDIO_FFTW)
-    fftwf_plan m_forwardPlan;
-    fftwf_plan m_backwardPlan;
-
-    enum Direction {
-        Forward,
-        Backward
-    };
-
-    // Both the real and imaginary data are stored here.
-    // The real data is stored first, followed by three float values of padding.
-    // The imaginary data is stored after the padding and is 16-byte aligned (if m_data itself is aligned).
-    // The reason we don't use separate arrays for real and imaginary is because the FFTW plans are shared
-    // between FFTFrame instances and require that the real and imaginary data pointers be the same distance apart.
-    AudioFloatArray m_data;
-
-    static Mutex *s_planLock;
-    static fftwf_plan* fftwForwardPlans;
-    static fftwf_plan* fftwBackwardPlans;
-
-    static fftwf_plan fftwPlanForSize(unsigned fftSize, Direction,
-                                      float*, float*, float*);
-#endif // USE(WEBAUDIO_FFTW)
-
 #endif // !USE_ACCELERATE_FFT
 };
 

Modified: trunk/Source/WebCore/platform/audio/FFTFrameStub.cpp (102621 => 102622)


--- trunk/Source/WebCore/platform/audio/FFTFrameStub.cpp	2011-12-12 22:09:26 UTC (rev 102621)
+++ trunk/Source/WebCore/platform/audio/FFTFrameStub.cpp	2011-12-12 22:13:32 UTC (rev 102622)
@@ -29,7 +29,7 @@
 
 #if ENABLE(WEB_AUDIO)
 
-#if !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FFTW) && !USE(WEBAUDIO_FFMPEG)
+#if !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FFMPEG)
 
 #include "FFTFrame.h"
 
@@ -102,6 +102,6 @@
 
 } // namespace WebCore
 
-#endif // !OS(DARWIN) && !USE(WEBAUDIO_MKL) && !USE(WEBAUDIO_FFTW)
+#endif // !OS(DARWIN) && !USE(WEBAUDIO_MKL)
 
 #endif // ENABLE(WEB_AUDIO)
_______________________________________________
webkit-changes mailing list
[email protected]
http://lists.webkit.org/mailman/listinfo.cgi/webkit-changes

Reply via email to