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

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

Issue 205173002: Move webaudio to oilpan (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: WIP 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2012, Google Inc. All rights reserved. 2 * Copyright (C) 2012, 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 179 matching lines...) Expand 10 before | Expand all | Expand 10 after
190 } 190 }
191 } 191 }
192 192
193 void AudioScheduledSourceNode::notifyEndedDispatch(void* userData) 193 void AudioScheduledSourceNode::notifyEndedDispatch(void* userData)
194 { 194 {
195 OwnPtr<NotifyEndedTask> task = adoptPtr(static_cast<NotifyEndedTask*>(userDa ta)); 195 OwnPtr<NotifyEndedTask> task = adoptPtr(static_cast<NotifyEndedTask*>(userDa ta));
196 196
197 task->notifyEnded(); 197 task->notifyEnded();
198 } 198 }
199 199
200 AudioScheduledSourceNode::NotifyEndedTask::NotifyEndedTask(PassRefPtr<AudioSched uledSourceNode> sourceNode) 200 AudioScheduledSourceNode::NotifyEndedTask::NotifyEndedTask(PassRefPtrWillBeRawPt r<AudioScheduledSourceNode> sourceNode)
201 : m_scheduledNode(sourceNode) 201 : m_scheduledNode(sourceNode)
202 { 202 {
203 } 203 }
204 204
205 void AudioScheduledSourceNode::NotifyEndedTask::notifyEnded() 205 void AudioScheduledSourceNode::NotifyEndedTask::notifyEnded()
206 { 206 {
207 RefPtr<Event> event = Event::create(EventTypeNames::ended); 207 RefPtr<Event> event = Event::create(EventTypeNames::ended);
208 event->setTarget(m_scheduledNode); 208 event->setTarget(adoptRefWillBeNoop(m_scheduledNode.get()));
haraken 2014/03/27 11:44:05 Why do you need to call adoptRef?
keishi 2014/04/03 06:53:19 My mistake. removed.
209 m_scheduledNode->dispatchEvent(event.get()); 209 m_scheduledNode->dispatchEvent(event.get());
210 } 210 }
211 211
212 } // namespace WebCore 212 } // namespace WebCore
213 213
214 #endif // ENABLE(WEB_AUDIO) 214 #endif // ENABLE(WEB_AUDIO)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698