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

Side by Side Diff: Source/modules/webaudio/AudioNodeInput.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 unified diff | Download patch
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010, Google Inc. All rights reserved. 2 * Copyright (C) 2010, Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions 5 * modification, are permitted provided that the following conditions
6 * are met: 6 * are met:
7 * 1. Redistributions of source code must retain the above copyright 7 * 1. Redistributions of source code must retain the above copyright
8 * notice, this list of conditions and the following disclaimer. 8 * notice, this list of conditions and the following disclaimer.
9 * 2. Redistributions in binary form must reproduce the above copyright 9 * 2. Redistributions in binary form must reproduce the above copyright
10 * notice, this list of conditions and the following disclaimer in the 10 * notice, this list of conditions and the following disclaimer in the
(...skipping 21 matching lines...) Expand all
32 32
33 namespace blink { 33 namespace blink {
34 34
35 class AudioNode; 35 class AudioNode;
36 class AudioNodeOutput; 36 class AudioNodeOutput;
37 37
38 // An AudioNodeInput represents an input to an AudioNode and can be connected fr om one or more AudioNodeOutputs. 38 // An AudioNodeInput represents an input to an AudioNode and can be connected fr om one or more AudioNodeOutputs.
39 // In the case of multiple connections, the input will act as a unity-gain summi ng junction, mixing all the outputs. 39 // In the case of multiple connections, the input will act as a unity-gain summi ng junction, mixing all the outputs.
40 // The number of channels of the input's bus is the maximum of the number of cha nnels of all its connections. 40 // The number of channels of the input's bus is the maximum of the number of cha nnels of all its connections.
41 41
42 class AudioNodeInput FINAL : public AudioSummingJunction { 42 class AudioNodeInput final : public AudioSummingJunction {
43 public: 43 public:
44 static AudioNodeInput* create(AudioNode&); 44 static AudioNodeInput* create(AudioNode&);
45 45
46 // AudioSummingJunction 46 // AudioSummingJunction
47 virtual void trace(Visitor*) OVERRIDE; 47 virtual void trace(Visitor*) override;
48 virtual void didUpdate() OVERRIDE; 48 virtual void didUpdate() override;
49 49
50 // Can be called from any thread. 50 // Can be called from any thread.
51 AudioNode& node() const { return *m_node; } 51 AudioNode& node() const { return *m_node; }
52 52
53 // Must be called with the context's graph lock. 53 // Must be called with the context's graph lock.
54 void connect(AudioNodeOutput&); 54 void connect(AudioNodeOutput&);
55 void disconnect(AudioNodeOutput&); 55 void disconnect(AudioNodeOutput&);
56 56
57 // disable() will take the output out of the active connections list and set aside in a disabled list. 57 // disable() will take the output out of the active connections list and set aside in a disabled list.
58 // enable() will put the output back into the active connections list. 58 // enable() will put the output back into the active connections list.
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
94 // Called from context's audio thread. 94 // Called from context's audio thread.
95 AudioBus* internalSummingBus(); 95 AudioBus* internalSummingBus();
96 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess); 96 void sumAllConnections(AudioBus* summingBus, size_t framesToProcess);
97 97
98 RefPtr<AudioBus> m_internalSummingBus; 98 RefPtr<AudioBus> m_internalSummingBus;
99 }; 99 };
100 100
101 } // namespace blink 101 } // namespace blink
102 102
103 #endif // AudioNodeInput_h 103 #endif // AudioNodeInput_h
OLDNEW
« no previous file with comments | « Source/modules/webaudio/AudioNode.h ('k') | Source/modules/webaudio/AudioParam.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698