mirror of
https://gitlab.winehq.org/wine/wine-gecko.git
synced 2024-09-13 09:24:08 -07:00
Bug 1117038 - Mark virtual overridden functions as MOZ_OVERRIDE in Web Audio; r=padenot
This commit is contained in:
parent
50e550fea1
commit
4076832081
@ -53,7 +53,7 @@ public:
|
||||
}
|
||||
void SetSmoothingTimeConstant(double aValue, ErrorResult& aRv);
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "AnalyserNode";
|
||||
}
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
NS_ERROR("Bad AudioBufferSourceNodeEngine TimelineParameter");
|
||||
}
|
||||
}
|
||||
virtual void SetStreamTimeParameter(uint32_t aIndex, StreamTime aParam)
|
||||
virtual void SetStreamTimeParameter(uint32_t aIndex, StreamTime aParam) MOZ_OVERRIDE
|
||||
{
|
||||
switch (aIndex) {
|
||||
case AudioBufferSourceNode::STOP: mStop = aParam; break;
|
||||
@ -100,7 +100,7 @@ public:
|
||||
NS_ERROR("Bad AudioBufferSourceNodeEngine StreamTimeParameter");
|
||||
}
|
||||
}
|
||||
virtual void SetDoubleParameter(uint32_t aIndex, double aParam)
|
||||
virtual void SetDoubleParameter(uint32_t aIndex, double aParam) MOZ_OVERRIDE
|
||||
{
|
||||
switch (aIndex) {
|
||||
case AudioBufferSourceNode::START:
|
||||
@ -117,7 +117,7 @@ public:
|
||||
NS_ERROR("Bad AudioBufferSourceNodeEngine double parameter.");
|
||||
};
|
||||
}
|
||||
virtual void SetInt32Parameter(uint32_t aIndex, int32_t aParam)
|
||||
virtual void SetInt32Parameter(uint32_t aIndex, int32_t aParam) MOZ_OVERRIDE
|
||||
{
|
||||
switch (aIndex) {
|
||||
case AudioBufferSourceNode::SAMPLE_RATE: mBufferSampleRate = aParam; break;
|
||||
@ -134,7 +134,7 @@ public:
|
||||
NS_ERROR("Bad AudioBufferSourceNodeEngine Int32Parameter");
|
||||
}
|
||||
}
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer)
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer) MOZ_OVERRIDE
|
||||
{
|
||||
mBuffer = aBuffer;
|
||||
}
|
||||
@ -427,7 +427,7 @@ public:
|
||||
virtual void ProcessBlock(AudioNodeStream* aStream,
|
||||
const AudioChunk& aInput,
|
||||
AudioChunk* aOutput,
|
||||
bool* aFinished)
|
||||
bool* aFinished) MOZ_OVERRIDE
|
||||
{
|
||||
if (!mBuffer || !mBufferEnd) {
|
||||
aOutput->SetNull(WEBAUDIO_BLOCK_SIZE);
|
||||
|
@ -92,7 +92,7 @@ public:
|
||||
|
||||
virtual void NotifyMainThreadStateChanged() MOZ_OVERRIDE;
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "AudioBufferSourceNode";
|
||||
}
|
||||
|
@ -262,7 +262,7 @@ private:
|
||||
|
||||
size_t SizeOfIncludingThis(mozilla::MallocSizeOf aMallocSizeOf) const;
|
||||
NS_IMETHOD CollectReports(nsIHandleReportCallback* aHandleReport,
|
||||
nsISupports* aData, bool aAnonymize);
|
||||
nsISupports* aData, bool aAnonymize) MOZ_OVERRIDE;
|
||||
|
||||
friend struct ::mozilla::WebAudioDecodeJob;
|
||||
|
||||
|
@ -59,7 +59,7 @@ public:
|
||||
void OfflineShutdown();
|
||||
|
||||
// nsIDOMEventListener - by proxy
|
||||
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent);
|
||||
NS_IMETHOD HandleEvent(nsIDOMEvent* aEvent) MOZ_OVERRIDE;
|
||||
|
||||
AudioChannel MozAudioChannelType() const;
|
||||
void SetMozAudioChannelType(AudioChannel aValue, ErrorResult& aRv);
|
||||
@ -76,7 +76,7 @@ public:
|
||||
|
||||
void CreateAudioChannelAgent();
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "AudioDestinationNode";
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
const Float32Array& aMagResponse,
|
||||
const Float32Array& aPhaseResponse);
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "BiquadFilterNode";
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
|
||||
virtual uint16_t NumberOfInputs() const MOZ_OVERRIDE { return mInputCount; }
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "ChannelMergerNode";
|
||||
}
|
||||
|
@ -26,7 +26,7 @@ public:
|
||||
|
||||
virtual uint16_t NumberOfOutputs() const MOZ_OVERRIDE { return mOutputCount; }
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "ChannelSplitterNode";
|
||||
}
|
||||
|
@ -73,7 +73,7 @@ public:
|
||||
NS_ERROR("Bad ConvolverNodeEngine DoubleParameter");
|
||||
}
|
||||
}
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer)
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer) MOZ_OVERRIDE
|
||||
{
|
||||
mBuffer = aBuffer;
|
||||
AdjustReverb();
|
||||
@ -104,7 +104,7 @@ public:
|
||||
virtual void ProcessBlock(AudioNodeStream* aStream,
|
||||
const AudioChunk& aInput,
|
||||
AudioChunk* aOutput,
|
||||
bool* aFinished)
|
||||
bool* aFinished) MOZ_OVERRIDE
|
||||
{
|
||||
if (!mReverb) {
|
||||
*aOutput = aInput;
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
AudioNode::SetChannelCountModeValue(aMode, aRv);
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "ConvolverNode";
|
||||
}
|
||||
|
@ -47,7 +47,7 @@ public:
|
||||
{
|
||||
}
|
||||
|
||||
virtual DelayNodeEngine* AsDelayNodeEngine()
|
||||
virtual DelayNodeEngine* AsDelayNodeEngine() MOZ_OVERRIDE
|
||||
{
|
||||
return this;
|
||||
}
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
return mDelay;
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "DelayNode";
|
||||
}
|
||||
|
@ -56,7 +56,7 @@ public:
|
||||
return mRelease;
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "DynamicsCompressorNode";
|
||||
}
|
||||
|
@ -61,7 +61,7 @@ public:
|
||||
virtual void ProcessBlock(AudioNodeStream* aStream,
|
||||
const AudioChunk& aInput,
|
||||
AudioChunk* aOutput,
|
||||
bool* aFinished)
|
||||
bool* aFinished) MOZ_OVERRIDE
|
||||
{
|
||||
MOZ_ASSERT(mSource == aStream, "Invalid source stream");
|
||||
|
||||
|
@ -30,7 +30,7 @@ public:
|
||||
return mGain;
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "GainNode";
|
||||
}
|
||||
|
@ -20,7 +20,7 @@ public:
|
||||
|
||||
virtual JSObject* WrapObject(JSContext* aCx) MOZ_OVERRIDE;
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "MediaElementAudioSourceNode";
|
||||
}
|
||||
|
@ -34,7 +34,7 @@ public:
|
||||
return mDOMStream;
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "MediaStreamAudioDestinationNode";
|
||||
}
|
||||
|
@ -54,7 +54,7 @@ public:
|
||||
|
||||
virtual uint16_t NumberOfInputs() const MOZ_OVERRIDE { return 0; }
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "MediaStreamAudioSourceNode";
|
||||
}
|
||||
|
@ -116,7 +116,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void SetStreamTimeParameter(uint32_t aIndex, StreamTime aParam)
|
||||
virtual void SetStreamTimeParameter(uint32_t aIndex, StreamTime aParam) MOZ_OVERRIDE
|
||||
{
|
||||
switch (aIndex) {
|
||||
case START: mStart = aParam; break;
|
||||
@ -126,7 +126,7 @@ public:
|
||||
}
|
||||
}
|
||||
|
||||
virtual void SetInt32Parameter(uint32_t aIndex, int32_t aParam)
|
||||
virtual void SetInt32Parameter(uint32_t aIndex, int32_t aParam) MOZ_OVERRIDE
|
||||
{
|
||||
switch (aIndex) {
|
||||
case TYPE:
|
||||
@ -183,7 +183,7 @@ public:
|
||||
// End index switch.
|
||||
}
|
||||
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer)
|
||||
virtual void SetBuffer(already_AddRefed<ThreadSharedFloatArrayBufferList> aBuffer) MOZ_OVERRIDE
|
||||
{
|
||||
MOZ_ASSERT(mCustomLength, "Custom buffer sent before length");
|
||||
mCustom = aBuffer;
|
||||
|
@ -80,7 +80,7 @@ public:
|
||||
|
||||
virtual void NotifyMainThreadStateChanged() MOZ_OVERRIDE;
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "OscillatorNode";
|
||||
}
|
||||
|
@ -195,7 +195,7 @@ public:
|
||||
void FindConnectedSources();
|
||||
void FindConnectedSources(AudioNode* aNode, nsTArray<AudioBufferSourceNode*>& aSources, std::set<AudioNode*>& aSeenNodes);
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "PannerNode";
|
||||
}
|
||||
|
@ -88,7 +88,7 @@ public:
|
||||
|
||||
using DOMEventTargetHelper::DispatchTrustedEvent;
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "ScriptProcessorNode";
|
||||
}
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
NS_DECL_ISUPPORTS_INHERITED
|
||||
NS_DECL_CYCLE_COLLECTION_CLASS_INHERITED(StereoPannerNode, AudioNode)
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "StereoPannerNode";
|
||||
}
|
||||
|
@ -217,7 +217,7 @@ public:
|
||||
virtual void ProcessBlock(AudioNodeStream* aStream,
|
||||
const AudioChunk& aInput,
|
||||
AudioChunk* aOutput,
|
||||
bool* aFinished)
|
||||
bool* aFinished) MOZ_OVERRIDE
|
||||
{
|
||||
uint32_t channelCount = aInput.mChannelData.Length();
|
||||
if (!mCurve.Length() || !channelCount) {
|
||||
|
@ -48,7 +48,7 @@ public:
|
||||
return AudioNode::SizeOfExcludingThis(aMallocSizeOf);
|
||||
}
|
||||
|
||||
virtual const char* NodeType() const
|
||||
virtual const char* NodeType() const MOZ_OVERRIDE
|
||||
{
|
||||
return "WaveShaperNode";
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user