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

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: Adding missing pre/post render tasks + Fixing minor nits 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..3e3c7b3d0c4643b60b1d66f81b386f850085ccb4 100644
--- a/Source/modules/webaudio/DeferredTaskHandler.h
+++ b/Source/modules/webaudio/DeferredTaskHandler.h
@@ -108,8 +108,14 @@ public:
bool isAudioThread() const { return currentThread() == acquireLoad(&m_audioThread); }
void lock();
+
+ // This allows the regular lock in offline audio rendering. It is okay to
+ // lock the offline audio render thread because it is not real-time thread.
Raymond Toy 2015/07/17 15:44:03 Nit: Add comment this must only be used for offlin
hongchan 2015/07/17 15:51:17 Done.
+ 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