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

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

Issue 221243002: Move many calls of lazyInitialize() from AudioContext to AudioNode. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix comments 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
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioContext.h
diff --git a/Source/modules/webaudio/AudioContext.h b/Source/modules/webaudio/AudioContext.h
index 5fe579dfa8adf1334405816f859f0b20c6dfdb90..51ac3ef2afa69a2e7a7fbfe4cde9b9b286344531 100644
--- a/Source/modules/webaudio/AudioContext.h
+++ b/Source/modules/webaudio/AudioContext.h
@@ -85,6 +85,8 @@ public:
virtual ~AudioContext();
bool isInitialized() const;
+ // The constructor of an AudioNode must call this to initialize the context.
+ void lazyInitialize();
bool isOfflineContext() { return m_isOfflineContext; }
@@ -245,7 +247,6 @@ protected:
private:
void constructCommon();
- void lazyInitialize();
void uninitialize();
// ExecutionContext calls stop twice.
@@ -258,6 +259,7 @@ private:
void scheduleNodeDeletion();
static void deleteMarkedNodesDispatch(void* userData);
+ // Set to true when the destination node has been initialized and is ready to process data.
bool m_isInitialized;
bool m_isAudioThreadFinished;
« no previous file with comments | « no previous file | Source/modules/webaudio/AudioContext.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698