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

Unified Diff: Source/modules/webaudio/OfflineAudioDestinationNode.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
« no previous file with comments | « Source/modules/webaudio/OfflineAudioDestinationNode.h ('k') | Source/modules/webaudio/OscillatorNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/OfflineAudioDestinationNode.cpp
diff --git a/Source/modules/webaudio/OfflineAudioDestinationNode.cpp b/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
index 2c9746aef921b27f59e13d6158e47351c610ec23..11da9795e4cf972a1fcbed453aa202951df33f0a 100644
--- a/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
+++ b/Source/modules/webaudio/OfflineAudioDestinationNode.cpp
@@ -38,13 +38,6 @@
namespace blink {
-#if !ENABLE(OILPAN)
-// We need a dedicated specialization for OfflineAudioDestinationNode because it
-// doesn't inherit from RefCounted.
-template<> struct CrossThreadCopierBase<false, false, false, PassRefPtr<OfflineAudioDestinationNode> > : public CrossThreadCopierPassThrough<PassRefPtr<OfflineAudioDestinationNode> > {
-};
-#endif
-
const size_t renderQuantumSize = 128;
OfflineAudioDestinationNode::OfflineAudioDestinationNode(AudioContext* context, AudioBuffer* renderTarget)
@@ -95,7 +88,7 @@ void OfflineAudioDestinationNode::startRendering()
if (!m_startedRendering) {
m_startedRendering = true;
m_renderThread = adoptPtr(blink::Platform::current()->createThread("Offline Audio Renderer"));
- m_renderThread->postTask(new Task(bind(&OfflineAudioDestinationNode::offlineRender, PassRefPtrWillBeRawPtr<OfflineAudioDestinationNode>(this))));
+ m_renderThread->postTask(new Task(bind(&OfflineAudioDestinationNode::offlineRender, this)));
}
}
@@ -145,7 +138,7 @@ void OfflineAudioDestinationNode::offlineRender()
// Our work is done. Let the AudioContext know.
if (context()->executionContext())
- context()->executionContext()->postTask(createCrossThreadTask(&OfflineAudioDestinationNode::notifyComplete, PassRefPtrWillBeRawPtr<OfflineAudioDestinationNode>(this)));
+ context()->executionContext()->postTask(createCrossThreadTask(&OfflineAudioDestinationNode::notifyComplete, this));
}
void OfflineAudioDestinationNode::notifyComplete()
« no previous file with comments | « Source/modules/webaudio/OfflineAudioDestinationNode.h ('k') | Source/modules/webaudio/OscillatorNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698