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

Unified Diff: Source/modules/webaudio/MediaElementAudioSourceNode.cpp

Issue 438293003: Enable Oilpan by default for webaudio/ (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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
Index: Source/modules/webaudio/MediaElementAudioSourceNode.cpp
diff --git a/Source/modules/webaudio/MediaElementAudioSourceNode.cpp b/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
index 320ff8c537cec1da7e4bee4d6cc7c3141f363a60..e95100d2f5903f9a0fe758714b2ad6c75b9ff63f 100644
--- a/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
+++ b/Source/modules/webaudio/MediaElementAudioSourceNode.cpp
@@ -41,9 +41,9 @@ const unsigned maxSampleRate = 192000;
namespace blink {
-PassRefPtrWillBeRawPtr<MediaElementAudioSourceNode> MediaElementAudioSourceNode::create(AudioContext* context, HTMLMediaElement* mediaElement)
+MediaElementAudioSourceNode* MediaElementAudioSourceNode::create(AudioContext* context, HTMLMediaElement* mediaElement)
{
- return adoptRefWillBeNoop(new MediaElementAudioSourceNode(context, mediaElement));
+ return adoptRefCountedGarbageCollectedWillBeNoop(new MediaElementAudioSourceNode(context, mediaElement));
}
MediaElementAudioSourceNode::MediaElementAudioSourceNode(AudioContext* context, HTMLMediaElement* mediaElement)
@@ -145,18 +145,12 @@ void MediaElementAudioSourceNode::process(size_t numberOfFrames)
void MediaElementAudioSourceNode::lock()
{
-#if !ENABLE(OILPAN)
- ref();
-#endif
m_processLock.lock();
}
void MediaElementAudioSourceNode::unlock()
{
m_processLock.unlock();
-#if !ENABLE(OILPAN)
- deref();
-#endif
}
void MediaElementAudioSourceNode::trace(Visitor* visitor)
« no previous file with comments | « Source/modules/webaudio/MediaElementAudioSourceNode.h ('k') | Source/modules/webaudio/MediaStreamAudioDestinationNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698