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

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

Issue 1405413004: Implement suspend() and resume() for OfflineAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 2 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: third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
diff --git a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
index b145642b82ea96eb3bd9de6e5d1ab3f3de8955c8..afb2e5921cdb03792ad712ece1f12474ed807d40 100644
--- a/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
+++ b/third_party/WebKit/Source/modules/webaudio/DeferredTaskHandler.h
@@ -110,6 +110,11 @@ public:
void lock();
bool tryLock();
void unlock();
+
+ // This locks the audio render thread for OfflineAudioContext rendering.
+ // CANNOT be used in the real-time audio context.
Raymond Toy 2015/10/16 23:32:36 CANNOT -> MUST NOT.
hongchan 2015/10/19 20:08:12 Done.
+ void offlineLock();
+
#if ENABLE(ASSERT)
// Returns true if this thread owns the context's lock.
bool isGraphOwner();

Powered by Google App Engine
This is Rietveld 408576698