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

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

Issue 1227783004: Fix virtual/override/final usage in Source/modules/. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: rebase Created 5 years, 5 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 142ee084e4dcf33e042f448fb9d55c34eb478e3a..6c6b793a672218a3e0233876d9e2d8725e18569c 100644
--- a/Source/modules/webaudio/AudioDestinationNode.h
+++ b/Source/modules/webaudio/AudioDestinationNode.h
@@ -39,14 +39,14 @@ class AudioContext;
class AudioDestinationHandler : public AudioHandler, public AudioIOCallback {
public:
AudioDestinationHandler(AudioNode&, float sampleRate);
- virtual ~AudioDestinationHandler();
+ ~AudioDestinationHandler() override;
// AudioHandler
- virtual void process(size_t) override final { } // we're pulled by hardware so this is never called
+ void process(size_t) 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;
+ void render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames) final;
size_t currentSampleFrame() const { return acquireLoad(&m_currentSampleFrame); }
double currentTime() const { return currentSampleFrame() / static_cast<double>(sampleRate()); }
@@ -73,7 +73,7 @@ protected:
}
// AudioSourceProvider.
- virtual void provideInput(AudioBus* destinationBus, size_t numberOfFrames) override
+ void provideInput(AudioBus* destinationBus, size_t numberOfFrames) override
{
bool isGood = destinationBus && destinationBus->length() == numberOfFrames && m_sourceBus->length() == numberOfFrames;
ASSERT(isGood);
« 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