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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioContext.cpp

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/AudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp
index 0522b8441337523cc796ba652ce99c5050f08af5..3ba837169a67f16031c31faad6e048cbb5266303 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp
@@ -130,6 +130,15 @@ ScriptPromise AudioContext::resumeContext(ScriptState* scriptState)
return promise;
}
+ScriptPromise AudioContext::suspendContext(ScriptState* scriptState, double suspendTime)
+{
+ // This CANNOT be called on AudioContext; it is to implement the pure
+ // virtual interface from AbstractAudioContext.
+ RELEASE_ASSERT_NOT_REACHED();
+
+ return ScriptPromise();
Raymond Toy 2015/10/16 23:32:36 Although not reachable, maybe return a rejected pr
hongchan 2015/10/19 20:08:12 Done.
+}
+
ScriptPromise AudioContext::closeContext(ScriptState* scriptState)
{
if (isContextClosed()) {

Powered by Google App Engine
This is Rietveld 408576698