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

Side by Side Diff: Source/modules/webaudio/MediaElementAudioSourceNode.cpp

Issue 614373007: Oilpan: Remove adoptRefCountedGarbageCollected (Closed) Base URL: svn://svn.chromium.org/blink/trunk
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 | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2011, Google Inc. All rights reserved. 2 * Copyright (C) 2011, 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 22 matching lines...) Expand all
33 #include "modules/webaudio/AudioNodeOutput.h" 33 #include "modules/webaudio/AudioNodeOutput.h"
34 #include "platform/Logging.h" 34 #include "platform/Logging.h"
35 #include "platform/audio/AudioUtilities.h" 35 #include "platform/audio/AudioUtilities.h"
36 #include "platform/graphics/media/MediaPlayer.h" 36 #include "platform/graphics/media/MediaPlayer.h"
37 #include "wtf/Locker.h" 37 #include "wtf/Locker.h"
38 38
39 namespace blink { 39 namespace blink {
40 40
41 MediaElementAudioSourceNode* MediaElementAudioSourceNode::create(AudioContext* c ontext, HTMLMediaElement* mediaElement) 41 MediaElementAudioSourceNode* MediaElementAudioSourceNode::create(AudioContext* c ontext, HTMLMediaElement* mediaElement)
42 { 42 {
43 return adoptRefCountedGarbageCollectedWillBeNoop(new MediaElementAudioSource Node(context, mediaElement)); 43 return new MediaElementAudioSourceNode(context, mediaElement);
44 } 44 }
45 45
46 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement) 46 MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement)
47 : AudioSourceNode(context, context->sampleRate()) 47 : AudioSourceNode(context, context->sampleRate())
48 , m_mediaElement(mediaElement) 48 , m_mediaElement(mediaElement)
49 , m_sourceNumberOfChannels(0) 49 , m_sourceNumberOfChannels(0)
50 , m_sourceSampleRate(0) 50 , m_sourceSampleRate(0)
51 { 51 {
52 // Default to stereo. This could change depending on what the media element 52 // Default to stereo. This could change depending on what the media element
53 // .src is set to. 53 // .src is set to.
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 void MediaElementAudioSourceNode::trace(Visitor* visitor) 152 void MediaElementAudioSourceNode::trace(Visitor* visitor)
153 { 153 {
154 visitor->trace(m_mediaElement); 154 visitor->trace(m_mediaElement);
155 AudioSourceNode::trace(visitor); 155 AudioSourceNode::trace(visitor);
156 AudioSourceProviderClient::trace(visitor); 156 AudioSourceProviderClient::trace(visitor);
157 } 157 }
158 158
159 } // namespace blink 159 } // namespace blink
160 160
161 #endif // ENABLE(WEB_AUDIO) 161 #endif // ENABLE(WEB_AUDIO)
OLDNEW
« no previous file with comments | « Source/modules/webaudio/GainNode.h ('k') | Source/modules/webaudio/MediaStreamAudioDestinationNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698