diff options
author | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
---|---|---|
committer | Lorry Tar Creator <lorry-tar-importer@lorry> | 2017-06-27 06:07:23 +0000 |
commit | 1bf1084f2b10c3b47fd1a588d85d21ed0eb41d0c (patch) | |
tree | 46dcd36c86e7fbc6e5df36deb463b33e9967a6f7 /Source/WebCore/Modules/webaudio/AudioSummingJunction.h | |
parent | 32761a6cee1d0dee366b885b7b9c777e67885688 (diff) | |
download | WebKitGtk-tarball-master.tar.gz |
webkitgtk-2.16.5HEADwebkitgtk-2.16.5master
Diffstat (limited to 'Source/WebCore/Modules/webaudio/AudioSummingJunction.h')
-rw-r--r-- | Source/WebCore/Modules/webaudio/AudioSummingJunction.h | 11 |
1 files changed, 4 insertions, 7 deletions
diff --git a/Source/WebCore/Modules/webaudio/AudioSummingJunction.h b/Source/WebCore/Modules/webaudio/AudioSummingJunction.h index b3b4f35fe..c94ff6d6a 100644 --- a/Source/WebCore/Modules/webaudio/AudioSummingJunction.h +++ b/Source/WebCore/Modules/webaudio/AudioSummingJunction.h @@ -22,8 +22,7 @@ * SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ -#ifndef AudioSummingJunction_h -#define AudioSummingJunction_h +#pragma once #include "AudioBus.h" #include <wtf/HashSet.h> @@ -38,11 +37,11 @@ class AudioNodeOutput; class AudioSummingJunction { public: - explicit AudioSummingJunction(AudioContext*); + explicit AudioSummingJunction(AudioContext&); virtual ~AudioSummingJunction(); // Can be called from any thread. - AudioContext* context() { return m_context.get(); } + AudioContext& context() { return m_context.get(); } // This must be called whenever we modify m_outputs. void changedOutputs(); @@ -61,7 +60,7 @@ public: virtual void didUpdate() = 0; protected: - RefPtr<AudioContext> m_context; + Ref<AudioContext> m_context; // m_outputs contains the AudioNodeOutputs representing current connections which are not disabled. // The rendering code should never use this directly, but instead uses m_renderingOutputs. @@ -82,5 +81,3 @@ protected: }; } // namespace WebCore - -#endif // AudioSummingJunction_h |