Changeset 87173 in webkit


Ignore:
Timestamp:
May 24, 2011 11:16:51 AM (13 years ago)
Author:
Philippe Normand
Message:

2011-05-24 Zan Dobersek <zandobersek@gmail.com> and Philippe Normand <pnormand@igalia.com>

Reviewed by Kenneth Russell.

Enable FloatArray usage outside WebGL guards
https://bugs.webkit.org/show_bug.cgi?id=61356

  • webaudio/AudioBuffer.cpp:
  • webaudio/AudioBuffer.idl:
  • webaudio/RealtimeAnalyser.cpp:
  • webaudio/RealtimeAnalyser.h:
  • webaudio/RealtimeAnalyserNode.h:
  • webaudio/RealtimeAnalyserNode.idl:
Location:
trunk/Source/WebCore
Files:
7 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebCore/ChangeLog

    r87172 r87173  
     12011-05-24  Zan Dobersek  <zandobersek@gmail.com> and Philippe Normand  <pnormand@igalia.com>
     2
     3        Reviewed by Kenneth Russell.
     4
     5        Enable FloatArray usage outside WebGL guards
     6        https://bugs.webkit.org/show_bug.cgi?id=61356
     7
     8        * webaudio/AudioBuffer.cpp:
     9        * webaudio/AudioBuffer.idl:
     10        * webaudio/RealtimeAnalyser.cpp:
     11        * webaudio/RealtimeAnalyser.h:
     12        * webaudio/RealtimeAnalyserNode.h:
     13        * webaudio/RealtimeAnalyserNode.idl:
     14
    1152011-05-24  Adam Klein  <adamk@chromium.org>
    216
  • trunk/Source/WebCore/webaudio/AudioBuffer.cpp

    r76600 r87173  
    2929#include "config.h"
    3030
    31 #if ENABLE(WEB_AUDIO) & ENABLE(WEBGL)
     31#if ENABLE(WEB_AUDIO)
    3232
    3333#include "AudioBuffer.h"
     
    108108} // namespace WebCore
    109109
    110 #endif // ENABLE(WEB_AUDIO) & ENABLE(WEBGL)
     110#endif // ENABLE(WEB_AUDIO)
  • trunk/Source/WebCore/webaudio/AudioBuffer.idl

    r76600 r87173  
    2929module audio {
    3030    interface [
    31         Conditional=WEB_AUDIO & WEBGL
     31        Conditional=WEB_AUDIO
    3232    ] AudioBuffer {
    3333        readonly attribute long length; // in sample-frames
  • trunk/Source/WebCore/webaudio/RealtimeAnalyser.cpp

    r76600 r87173  
    3232#include "AudioUtilities.h"
    3333#include "FFTFrame.h"
    34 
    35 #if ENABLE(WEBGL)
    3634#include "Float32Array.h"
    3735#include "Uint8Array.h"
    38 #endif
    3936
    4037#include <algorithm>
     
    194191}
    195192
    196 #if ENABLE(WEBGL)
    197 
    198193void RealtimeAnalyser::getFloatFrequencyData(Float32Array* destinationArray)
    199194{
     
    295290}
    296291
    297 #endif // WEBGL
    298 
    299292} // namespace WebCore
    300293
  • trunk/Source/WebCore/webaudio/RealtimeAnalyser.h

    r76600 r87173  
    3434class AudioBus;
    3535class FFTFrame;
    36 
    37 #if ENABLE(WEBGL)
    3836class Float32Array;
    3937class Uint8Array;
    40 #endif
    4138
    4239class RealtimeAnalyser {
     
    6259    float smoothingTimeConstant() const { return static_cast<float>(m_smoothingTimeConstant); }
    6360
    64 #if ENABLE(WEBGL)
    6561    void getFloatFrequencyData(Float32Array*);
    6662    void getByteFrequencyData(Uint8Array*);
    6763    void getByteTimeDomainData(Uint8Array*);
    68 #endif
    6964
    7065    // The audio thread writes input data here.
  • trunk/Source/WebCore/webaudio/RealtimeAnalyserNode.h

    r76600 r87173  
    6060    float smoothingTimeConstant() const { return m_analyser.smoothingTimeConstant(); }
    6161
    62 #if ENABLE(WEBGL)
    6362    void getFloatFrequencyData(Float32Array* array) { m_analyser.getFloatFrequencyData(array); }
    6463    void getByteFrequencyData(Uint8Array* array) { m_analyser.getByteFrequencyData(array); }
    6564    void getByteTimeDomainData(Uint8Array* array) { m_analyser.getByteTimeDomainData(array); }
    66 #endif
    6765
    6866private:
  • trunk/Source/WebCore/webaudio/RealtimeAnalyserNode.idl

    r76600 r87173  
    4040        // Copies the current frequency data into the passed array.
    4141        // If the array has fewer elements than the frequencyBinCount, the excess elements will be dropped.
    42         [Conditional=WEBGL] void getFloatFrequencyData(in Float32Array array);
    43         [Conditional=WEBGL] void getByteFrequencyData(in Uint8Array array);
     42        void getFloatFrequencyData(in Float32Array array);
     43        void getByteFrequencyData(in Uint8Array array);
    4444
    4545        // Real-time waveform data
    46         [Conditional=WEBGL] void getByteTimeDomainData(in Uint8Array array);
     46        void getByteTimeDomainData(in Uint8Array array);
    4747    };
    4848}
Note: See TracChangeset for help on using the changeset viewer.