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

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

Issue 1140723003: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Bring 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
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webaudio/DeferredTaskHandler.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/DeferredTaskHandler.h
diff --git a/Source/modules/webaudio/DeferredTaskHandler.h b/Source/modules/webaudio/DeferredTaskHandler.h
index b145642b82ea96eb3bd9de6e5d1ab3f3de8955c8..c653ccb43fd27ab2116eee4c5d0f16c26506b731 100644
--- a/Source/modules/webaudio/DeferredTaskHandler.h
+++ b/Source/modules/webaudio/DeferredTaskHandler.h
@@ -108,8 +108,15 @@ public:
bool isAudioThread() const { return currentThread() == acquireLoad(&m_audioThread); }
void lock();
+
+ // This must be used only for OfflineAudioContext. It allows the regular
+ // lock (instead of tryLock) in offline audio rendering and it is okay to
+ // lock the offline audio render thread because it is not real-time thread.
+ void offlineContextLock();
+
bool tryLock();
void unlock();
+
#if ENABLE(ASSERT)
// Returns true if this thread owns the context's lock.
bool isGraphOwner();
« no previous file with comments | « Source/modules/webaudio/AudioNode.cpp ('k') | Source/modules/webaudio/DeferredTaskHandler.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698