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

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

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 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
Index: Source/modules/webaudio/DeferredTaskHandler.h
diff --git a/Source/modules/webaudio/DeferredTaskHandler.h b/Source/modules/webaudio/DeferredTaskHandler.h
index 9bc3eba6e2a05e83d4ab703454678dbd61602572..f2d7e1336152482c56b7c48e1ac8dc8dd3feac6b 100644
--- a/Source/modules/webaudio/DeferredTaskHandler.h
+++ b/Source/modules/webaudio/DeferredTaskHandler.h
@@ -37,22 +37,22 @@
namespace blink {
-class AudioContext;
+class AbstractAudioContext;
class AudioHandler;
class AudioNodeOutput;
class AudioSummingJunction;
// DeferredTaskHandler manages the major part of pre- and post- rendering tasks,
// and provides a lock mechanism against the audio rendering graph. A
-// DeferredTaskHandler object is created when an AudioContext object is created.
+// DeferredTaskHandler object is created when an AbstractAudioContext object is created.
//
-// DeferredTaskHandler outlives the AudioContext only if all of the following
+// DeferredTaskHandler outlives the AbstractAudioContext only if all of the following
// conditions match:
// - An audio rendering thread is running,
// - It is requested to stop,
// - The audio rendering thread calls requestToDeleteHandlersOnMainThread(),
// - It posts a task of deleteHandlersOnMainThread(), and
-// - GC happens and it collects the AudioContext before the task execution.
+// - GC happens and it collects the AbstractAudioContext before the task execution.
//
class MODULES_EXPORT DeferredTaskHandler final : public ThreadSafeRefCounted<DeferredTaskHandler> {
public:
@@ -62,7 +62,7 @@ public:
void handleDeferredTasks();
void contextWillBeDestroyed();
- // AudioContext can pull node(s) at the end of each render quantum even when
+ // AbstractAudioContext can pull node(s) at the end of each render quantum even when
// they are not connected to any downstream nodes. These two methods are
// called by the nodes who want to add/remove themselves into/from the
// automatic pull lists.
@@ -117,7 +117,7 @@ public:
{
m_handler.lock();
}
- explicit AutoLocker(AudioContext*);
+ explicit AutoLocker(AbstractAudioContext*);
~AutoLocker() { m_handler.unlock(); }
« no previous file with comments | « Source/modules/webaudio/DefaultAudioDestinationNode.cpp ('k') | Source/modules/webaudio/DeferredTaskHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698