Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1417)

Unified Diff: Source/modules/webaudio/AudioDestinationNode.h

Issue 635233004: Replace FINAL and OVERRIDE with their C++11 counterparts in Source/modules (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/AudioNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioDestinationNode.h
diff --git a/Source/modules/webaudio/AudioDestinationNode.h b/Source/modules/webaudio/AudioDestinationNode.h
index e870deacaa9a9bbb1489662bf5c5d6b75ff572f1..cb6e820fa46ce4f3485c10a73aa9e22380a60b92 100644
--- a/Source/modules/webaudio/AudioDestinationNode.h
+++ b/Source/modules/webaudio/AudioDestinationNode.h
@@ -43,12 +43,12 @@ public:
virtual ~AudioDestinationNode();
// AudioNode
- virtual void dispose() OVERRIDE;
- virtual void process(size_t) OVERRIDE FINAL { } // we're pulled by hardware so this is never called
+ virtual void dispose() override;
+ virtual void process(size_t) override final { } // we're pulled by hardware so this is never called
// The audio hardware calls render() to get the next render quantum of audio into destinationBus.
// It will optionally give us local/live audio input in sourceBus (if it's not 0).
- virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE FINAL;
+ virtual void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) override final;
size_t currentSampleFrame() const { return m_currentSampleFrame; }
double currentTime() const { return currentSampleFrame() / static_cast<double>(sampleRate()); }
@@ -60,7 +60,7 @@ public:
protected:
// LocalAudioInputProvider allows us to expose an AudioSourceProvider for local/live audio input.
// If there is local/live audio input, we call set() with the audio input data every render quantum.
- class LocalAudioInputProvider FINAL : public AudioSourceProvider {
+ class LocalAudioInputProvider final : public AudioSourceProvider {
public:
LocalAudioInputProvider()
: m_sourceBus(AudioBus::create(2, AudioNode::ProcessingSizeInFrames)) // FIXME: handle non-stereo local input.
@@ -74,7 +74,7 @@ protected:
}
// AudioSourceProvider.
- virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) OVERRIDE
+ virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) override
{
bool isGood = destinationBus && destinationBus->length() == numberOfFrames && m_sourceBus->length() == numberOfFrames;
ASSERT(isGood);
@@ -86,8 +86,8 @@ protected:
RefPtr<AudioBus> m_sourceBus;
};
- virtual double tailTime() const OVERRIDE FINAL { return 0; }
- virtual double latencyTime() const OVERRIDE FINAL { return 0; }
+ virtual double tailTime() const override final { return 0; }
+ virtual double latencyTime() const override final { return 0; }
// Counts the number of sample-frames processed by the destination.
size_t m_currentSampleFrame;
« no previous file with comments | « Source/modules/webaudio/AudioContext.h ('k') | Source/modules/webaudio/AudioNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698