Backed out changeset 016fa89e49b0 (bug 905409) on a CLOSED TREE

This commit is contained in:
Wes Kocher 2013-08-14 17:21:45 -07:00
Родитель 22b906442c
Коммит be220c4f15
44 изменённых файлов: 74 добавлений и 51 удалений

Просмотреть файл

@ -7,12 +7,14 @@
#include "AudioBuffer.h"
#include "mozilla/dom/AudioBufferBinding.h"
#include "nsContentUtils.h"
#include "AudioContext.h"
#include "jsfriendapi.h"
#include "mozilla/ErrorResult.h"
#include "AudioSegment.h"
#include "nsIScriptError.h"
#include "nsPIDOMWindow.h"
#include "AudioChannelFormat.h"
#include "mozilla/PodOperations.h"
#include "AudioNodeEngine.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -14,6 +14,8 @@
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "AudioContext.h"
#include "AudioSegment.h"
#include "AudioNodeEngine.h"
struct JSContext;
class JSObject;
@ -21,12 +23,9 @@ class JSObject;
namespace mozilla {
class ErrorResult;
class ThreadSharedFloatArrayBufferList;
namespace dom {
class AudioContext;
/**
* An AudioBuffer keeps its data either in the mJSChannels objects, which
* are Float32Arrays, or in mSharedChannels if the mJSChannels objects have

Просмотреть файл

@ -10,7 +10,7 @@
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "AudioDestinationNode.h"
#include "AudioParamTimeline.h"
#include "PannerNode.h"
#include "speex/speex_resampler.h"
#include <limits>

Просмотреть файл

@ -9,12 +9,12 @@
#include "AudioNode.h"
#include "AudioBuffer.h"
#include "AudioParam.h"
#include "mozilla/dom/BindingUtils.h"
namespace mozilla {
namespace dom {
class AudioParam;
class AudioBufferSourceNode : public AudioNode,
public MainThreadMediaStreamListener
{

Просмотреть файл

@ -9,7 +9,9 @@
#include "EnableWebAudioCheck.h"
#include "MediaBufferDecoder.h"
#include "MediaStreamGraph.h"
#include "mozilla/Attributes.h"
#include "mozilla/dom/AudioContextBinding.h"
#include "mozilla/dom/TypedArray.h"
#include "nsAutoPtr.h"
#include "nsCOMPtr.h"
@ -17,6 +19,7 @@
#include "nsDOMEventTargetHelper.h"
#include "nsHashKeys.h"
#include "nsTHashtable.h"
#include "StreamBuffer.h"
// X11 has a #define for CurrentTime. Unbelievable :-(.
// See content/media/DOMMediaStream.h for more fun!
@ -30,10 +33,8 @@ class nsPIDOMWindow;
namespace mozilla {
class DOMMediaStream;
class ErrorResult;
class MediaStream;
class MediaStreamGraph;
struct WebAudioDecodeJob;
namespace dom {
@ -54,6 +55,7 @@ class HTMLMediaElement;
class MediaElementAudioSourceNode;
class MediaStreamAudioDestinationNode;
class MediaStreamAudioSourceNode;
class OfflineRenderSuccessCallback;
class PannerNode;
class ScriptProcessorNode;
class WaveShaperNode;

Просмотреть файл

@ -6,6 +6,7 @@
#include "AudioListener.h"
#include "AudioContext.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AudioListenerBinding.h"
namespace mozilla {

Просмотреть файл

@ -23,6 +23,8 @@ namespace mozilla {
namespace dom {
class AudioContext;
class AudioListener MOZ_FINAL : public nsWrapperCache,
public EnableWebAudioCheck
{

Просмотреть файл

@ -5,6 +5,7 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "AudioNode.h"
#include "AudioContext.h"
#include "mozilla/ErrorResult.h"
#include "AudioNodeStream.h"

Просмотреть файл

@ -10,21 +10,24 @@
#include "nsDOMEventTargetHelper.h"
#include "mozilla/dom/AudioNodeBinding.h"
#include "nsCycleCollectionParticipant.h"
#include "mozilla/Attributes.h"
#include "EnableWebAudioCheck.h"
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "AudioContext.h"
#include "AudioParamTimeline.h"
#include "MediaStreamGraph.h"
#include "WebAudioUtils.h"
struct JSContext;
namespace mozilla {
class ErrorResult;
namespace dom {
class AudioContext;
class AudioBufferSourceNode;
class AudioParam;
class AudioParamTimeline;
struct ThreeDPoint;
template<class T>

Просмотреть файл

@ -5,10 +5,11 @@
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#include "AudioParam.h"
#include "nsIDOMWindow.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/dom/AudioParamBinding.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "AudioContext.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -10,13 +10,16 @@
#include "AudioParamTimeline.h"
#include "nsWrapperCache.h"
#include "nsCycleCollectionParticipant.h"
#include "nsCOMPtr.h"
#include "EnableWebAudioCheck.h"
#include "nsAutoPtr.h"
#include "AudioNode.h"
#include "mozilla/dom/TypedArray.h"
#include "mozilla/Util.h"
#include "WebAudioUtils.h"
struct JSContext;
class nsIDOMWindow;
namespace mozilla {

Просмотреть файл

@ -6,7 +6,6 @@
#include "AudioProcessingEvent.h"
#include "mozilla/dom/AudioProcessingEventBinding.h"
#include "AudioContext.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -11,7 +11,6 @@
#include "WebAudioUtils.h"
#include "blink/Biquad.h"
#include "mozilla/Preferences.h"
#include "AudioParamTimeline.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -8,6 +8,7 @@
#include "mozilla/dom/ChannelMergerNodeBinding.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "mozilla/PodOperations.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -8,6 +8,7 @@
#include "mozilla/dom/ChannelSplitterNodeBinding.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "mozilla/PodOperations.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -9,7 +9,9 @@
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"
#include "blink/Reverb.h"
#include "PlayingRefChangeHandler.h"
#include <cmath>
#include "nsMathUtils.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -9,12 +9,11 @@
#include "AudioNode.h"
#include "AudioBuffer.h"
#include "PlayingRefChangeHandler.h"
namespace mozilla {
namespace dom {
template <class T> class PlayingRefChangeHandler;
class ConvolverNode : public AudioNode
{
public:

Просмотреть файл

@ -11,7 +11,6 @@
#include "AudioDestinationNode.h"
#include "WebAudioUtils.h"
#include "DelayProcessor.h"
#include "PlayingRefChangeHandler.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -9,12 +9,12 @@
#include "AudioNode.h"
#include "AudioParam.h"
#include "PlayingRefChangeHandler.h"
namespace mozilla {
namespace dom {
class AudioContext;
template <class T> class PlayingRefChangeHandler;
class DelayNode : public AudioNode
{

Просмотреть файл

@ -30,6 +30,8 @@
#include "FFTBlock.h"
#include "AudioNodeEngine.h"
#include <complex>
namespace mozilla {

Просмотреть файл

@ -8,7 +8,6 @@
#include "AbstractMediaDecoder.h"
#include "mozilla/Attributes.h"
#include "mozilla/ReentrantMonitor.h"
#include "mozilla/dom/AudioContextBinding.h"
#include <speex/speex_resampler.h>
#include "nsXPCOMCIDInternal.h"
#include "nsComponentManagerUtils.h"
@ -17,6 +16,8 @@
#include "DecoderTraits.h"
#include "AudioContext.h"
#include "AudioBuffer.h"
#include "nsIScriptGlobalObject.h"
#include "nsIScriptContext.h"
#include "nsIScriptObjectPrincipal.h"
#include "nsIScriptError.h"
#include "nsMimeTypes.h"

Просмотреть файл

@ -14,9 +14,11 @@
#include "nsString.h"
#include "nsTArray.h"
#include "mozilla/dom/TypedArray.h"
#include <utility>
namespace mozilla {
class MediaDecoderReader;
namespace dom {
class AudioBuffer;
class AudioContext;

Просмотреть файл

@ -6,6 +6,7 @@
#include "MediaElementAudioSourceNode.h"
#include "mozilla/dom/MediaElementAudioSourceNodeBinding.h"
#include "mozilla/dom/HTMLMediaElement.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -12,6 +12,8 @@
namespace mozilla {
namespace dom {
class HTMLMediaElement;
class MediaElementAudioSourceNode : public MediaStreamAudioSourceNode
{
public:

Просмотреть файл

@ -6,6 +6,7 @@
#include "MediaStreamAudioDestinationNode.h"
#include "nsIDocument.h"
#include "mozilla/dom/AudioStreamTrack.h"
#include "mozilla/dom/MediaStreamAudioDestinationNodeBinding.h"
#include "AudioNodeEngine.h"
#include "AudioNodeStream.h"

Просмотреть файл

@ -10,6 +10,8 @@
#include "AudioNode.h"
namespace mozilla {
class DOMMediaStream;
namespace dom {
class MediaStreamAudioDestinationNode : public AudioNode

Просмотреть файл

@ -6,7 +6,6 @@
#include "OfflineAudioCompletionEvent.h"
#include "mozilla/dom/OfflineAudioCompletionEventBinding.h"
#include "AudioContext.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -9,12 +9,11 @@
#include "nsDOMEvent.h"
#include "AudioBuffer.h"
#include "AudioContext.h"
namespace mozilla {
namespace dom {
class AudioContext;
class OfflineAudioCompletionEvent : public nsDOMEvent,
public EnableWebAudioCheck
{

Просмотреть файл

@ -10,7 +10,6 @@
#include "AudioListener.h"
#include "AudioBufferSourceNode.h"
#include "blink/HRTFPanner.h"
#include "blink/HRTFDatabaseLoader.h"
using WebCore::HRTFDatabaseLoader;
using WebCore::HRTFPanner;

Просмотреть файл

@ -8,6 +8,9 @@
#define PannerNode_h_
#include "AudioNode.h"
#include "AudioParam.h"
#include "mozilla/ErrorResult.h"
#include "mozilla/TypedEnum.h"
#include "mozilla/dom/PannerNodeBinding.h"
#include "ThreeDPoint.h"
#include "mozilla/WeakPtr.h"

Просмотреть файл

@ -11,9 +11,13 @@
#include "nsAutoPtr.h"
namespace mozilla {
class AudioNodeStream;
namespace dom {
class AudioContext;
class ScriptProcessorNodeEngine;
class SharedBuffers;
class ScriptProcessorNode : public AudioNode

Просмотреть файл

@ -8,8 +8,8 @@
#define WaveShaperNode_h_
#include "AudioNode.h"
#include "AudioParam.h"
#include "mozilla/dom/WaveShaperNodeBinding.h"
#include "mozilla/dom/TypedArray.h"
namespace mozilla {
namespace dom {

Просмотреть файл

@ -6,7 +6,6 @@
#include "WebAudioUtils.h"
#include "AudioNodeStream.h"
#include "AudioParamTimeline.h"
#include "blink/HRTFDatabaseLoader.h"
namespace mozilla {

Просмотреть файл

@ -10,18 +10,16 @@
#include <cmath>
#include <limits>
#include "mozilla/TypeTraits.h"
#include "mozilla/FloatingPoint.h"
#include "mozilla/Assertions.h"
#include "AudioParamTimeline.h"
#include "MediaSegment.h"
namespace mozilla {
class AudioNodeStream;
class MediaStream;
namespace dom {
class AudioParamTimeline;
struct WebAudioUtils {
// This is an arbitrary large number used to protect against OOMs.
// We can adjust it later if needed.

Просмотреть файл

@ -30,6 +30,7 @@
#include "Biquad.h"
#include <algorithm>
#include <stdio.h>
namespace WebCore {

Просмотреть файл

@ -27,6 +27,7 @@
*/
#include "HRTFDatabaseLoader.h"
#include "HRTFDatabase.h"
using namespace mozilla;

Просмотреть файл

@ -29,13 +29,11 @@
#ifndef HRTFDatabaseLoader_h
#define HRTFDatabaseLoader_h
#include "nsHashKeys.h"
#include "mozilla/RefPtr.h"
#include "mozilla/Mutex.h"
#include "HRTFDatabase.h"
template <class EntryType> class nsTHashtable;
template <class T> class nsAutoRef;
#include "nsTHashtable.h"
#include "mozilla/RefPtr.h"
#include "nsIThread.h"
#include "mozilla/Mutex.h"
namespace WebCore {

Просмотреть файл

@ -23,7 +23,6 @@
*/
#include "HRTFPanner.h"
#include "HRTFDatabaseLoader.h"
#include "FFTConvolver.h"
#include "HRTFDatabase.h"

Просмотреть файл

@ -26,6 +26,7 @@
#define HRTFPanner_h
#include "FFTConvolver.h"
#include "HRTFDatabaseLoader.h"
#include "DelayProcessor.h"
namespace mozilla {
@ -34,8 +35,6 @@ struct AudioChunk;
namespace WebCore {
class HRTFDatabaseLoader;
using mozilla::AudioChunk;
class HRTFPanner {

Просмотреть файл

@ -27,7 +27,6 @@
*/
#include "Reverb.h"
#include "ReverbConvolverStage.h"
#include <math.h>
#include "ReverbConvolver.h"

Просмотреть файл

@ -32,7 +32,6 @@
#include "ReverbConvolver.h"
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "AudioSegment.h"
namespace mozilla {
class ThreadSharedFloatArrayBufferList;
@ -40,9 +39,6 @@ class ThreadSharedFloatArrayBufferList;
namespace WebCore {
class DirectConvolver;
class FFTConvolver;
// Multi-channel convolution reverb with channel matrixing - one or more ReverbConvolver objects are used internally.
class Reverb {

Просмотреть файл

@ -27,7 +27,6 @@
*/
#include "ReverbConvolver.h"
#include "ReverbConvolverStage.h"
using namespace mozilla;

Просмотреть файл

@ -29,8 +29,14 @@
#ifndef ReverbConvolver_h
#define ReverbConvolver_h
#include "DirectConvolver.h"
#include "FFTConvolver.h"
#include "ReverbAccumulationBuffer.h"
#include "ReverbConvolverStage.h"
#include "ReverbInputBuffer.h"
#include "nsAutoPtr.h"
#include "nsTArray.h"
#include "nsCOMPtr.h"
#ifdef LOG
#undef LOG
#endif
@ -40,7 +46,7 @@
namespace WebCore {
class ReverbConvolverStage;
class AudioChannel;
class ReverbConvolver {
public:

Просмотреть файл

@ -29,9 +29,6 @@
#ifndef ReverbConvolverStage_h
#define ReverbConvolverStage_h
#include "DirectConvolver.h"
#include "FFTConvolver.h"
#include "nsTArray.h"
#include "mozilla/FFTBlock.h"
@ -41,6 +38,8 @@ using mozilla::FFTBlock;
class ReverbAccumulationBuffer;
class ReverbConvolver;
class FFTConvolver;
class DirectConvolver;
// A ReverbConvolverStage represents the convolution associated with a sub-section of a large impulse response.
// It incorporates a delay line to account for the offset of the sub-section within the larger impulse response.