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

Unified Diff: Source/modules/webaudio/AudioScheduledSourceNode.h

Issue 398293003: WebAudio: Remove AudioSchedulesSourceNode::NotifyEndedTask (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Check if executionContext is null Created 6 years, 5 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 | « no previous file | Source/modules/webaudio/AudioScheduledSourceNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioScheduledSourceNode.h
diff --git a/Source/modules/webaudio/AudioScheduledSourceNode.h b/Source/modules/webaudio/AudioScheduledSourceNode.h
index 3942ecd35899112ba2a3660c3aebf01e2796b488..b54e1bb4366b5ad68d3314b01c0d329348881d50 100644
--- a/Source/modules/webaudio/AudioScheduledSourceNode.h
+++ b/Source/modules/webaudio/AudioScheduledSourceNode.h
@@ -54,17 +54,6 @@ public:
FINISHED_STATE = 3
};
- // This helper class handles the lifetime of an AudioScheduledSourceNode with an onended event
- // listener. This keeps the node alive until the event listener is processed.
- class NotifyEndedTask {
- public:
- NotifyEndedTask(PassRefPtr<AudioScheduledSourceNode> scheduledNode);
- void notifyEnded();
-
- private:
- RefPtr<AudioScheduledSourceNode> m_scheduledNode;
- };
-
AudioScheduledSourceNode(AudioContext*, float sampleRate);
// Scheduling.
@@ -96,7 +85,7 @@ protected:
// Called when we have no more sound to play or the noteOff() time has been reached.
virtual void finish();
- static void notifyEndedDispatch(void*);
+ void notifyEnded();
PlaybackState m_playbackState;
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioScheduledSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698