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

Unified Diff: Source/modules/webaudio/AsyncAudioDecoder.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/AsyncAudioDecoder.h ('k') | Source/modules/webaudio/AudioBasicProcessorNode.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AsyncAudioDecoder.cpp
diff --git a/Source/modules/webaudio/AsyncAudioDecoder.cpp b/Source/modules/webaudio/AsyncAudioDecoder.cpp
index fc678cb62426d24eca2d0c19595a31a9f12ac534..a9d22d24daab1451cfbe9ca403b4b6736b16b664 100644
--- a/Source/modules/webaudio/AsyncAudioDecoder.cpp
+++ b/Source/modules/webaudio/AsyncAudioDecoder.cpp
@@ -80,11 +80,11 @@ void AsyncAudioDecoder::notifyComplete(ArrayBuffer* audioData, AudioBufferCallba
OwnPtr<AudioBufferCallback> errorCallbackPtr = adoptPtr(errorCallback);
RefPtr<AudioBus> audioBusRef = adoptRef(audioBus);
- RefPtrWillBeRawPtr<AudioBuffer> audioBuffer = AudioBuffer::createFromAudioBus(audioBus);
- if (audioBuffer.get() && successCallback)
- successCallback->handleEvent(audioBuffer.get());
+ AudioBuffer* audioBuffer = AudioBuffer::createFromAudioBus(audioBus);
+ if (audioBuffer && successCallback)
+ successCallback->handleEvent(audioBuffer);
else if (errorCallback)
- errorCallback->handleEvent(audioBuffer.get());
+ errorCallback->handleEvent(audioBuffer);
}
} // namespace blink
« no previous file with comments | « Source/modules/webaudio/AsyncAudioDecoder.h ('k') | Source/modules/webaudio/AudioBasicProcessorNode.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698