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

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

Issue 182763002: Add [WillBeGarbageCollected] to Event.idl (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 9 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/AudioProcessingEvent.cpp
diff --git a/Source/modules/webaudio/AudioProcessingEvent.cpp b/Source/modules/webaudio/AudioProcessingEvent.cpp
index 2be54a646101d6e2cf7aa2881605ef518fd9d36f..f33704648068b3e4d5b726f259d4c4d5712abcb9 100644
--- a/Source/modules/webaudio/AudioProcessingEvent.cpp
+++ b/Source/modules/webaudio/AudioProcessingEvent.cpp
@@ -30,14 +30,14 @@
namespace WebCore {
-PassRefPtr<AudioProcessingEvent> AudioProcessingEvent::create()
+PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create()
{
- return adoptRef(new AudioProcessingEvent);
+ return adoptRefWillBeRefCountedGarbageCollected(new AudioProcessingEvent);
}
-PassRefPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer)
+PassRefPtrWillBeRawPtr<AudioProcessingEvent> AudioProcessingEvent::create(PassRefPtr<AudioBuffer> inputBuffer, PassRefPtr<AudioBuffer> outputBuffer)
{
- return adoptRef(new AudioProcessingEvent(inputBuffer, outputBuffer));
+ return adoptRefWillBeRefCountedGarbageCollected(new AudioProcessingEvent(inputBuffer, outputBuffer));
}
AudioProcessingEvent::AudioProcessingEvent()
« no previous file with comments | « Source/modules/webaudio/AudioProcessingEvent.h ('k') | Source/modules/webaudio/OfflineAudioCompletionEvent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698