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

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

Issue 2389253002: reflow comments in modules/{webaudio,vr} (Closed)
Patch Set: . Created 4 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 802f746540bfe60820c164cd0abb9ee8a86a616a..920678225ca55b9c22d8908fa4de6b3d7bce0f17 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp
@@ -113,8 +113,8 @@ ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) {
if (destination())
stopRendering();
- // Since we don't have any way of knowing when the hardware actually stops, we'll just
- // resolve the promise now.
+ // Since we don't have any way of knowing when the hardware actually stops,
+ // we'll just resolve the promise now.
resolver->resolve();
}
@@ -141,8 +141,8 @@ ScriptPromise AudioContext::resumeContext(ScriptState* scriptState) {
startRendering();
}
- // Save the resolver which will get resolved when the destination node starts pulling on the
- // graph again.
+ // Save the resolver which will get resolved when the destination node starts
+ // pulling on the graph again.
{
AutoLocker locker(this);
m_resumeResolvers.append(resolver);
@@ -153,8 +153,8 @@ ScriptPromise AudioContext::resumeContext(ScriptState* scriptState) {
ScriptPromise AudioContext::closeContext(ScriptState* scriptState) {
if (isContextClosed()) {
- // We've already closed the context previously, but it hasn't yet been resolved, so just
- // create a new promise and reject it.
+ // We've already closed the context previously, but it hasn't yet been
+ // resolved, so just create a new promise and reject it.
return ScriptPromise::rejectWithDOMException(
scriptState,
DOMException::create(InvalidStateError,
@@ -168,10 +168,11 @@ ScriptPromise AudioContext::closeContext(ScriptState* scriptState) {
m_closeResolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = m_closeResolver->promise();
- // Stop the audio context. This will stop the destination node from pulling audio anymore. And
- // since we have disconnected the destination from the audio graph, and thus has no references,
- // the destination node can GCed if JS has no references. uninitialize() will also resolve the Promise
- // created here.
+ // Stop the audio context. This will stop the destination node from pulling
+ // audio anymore. And since we have disconnected the destination from the
+ // audio graph, and thus has no references, the destination node can GCed if
+ // JS has no references. uninitialize() will also resolve the Promise created
+ // here.
uninitialize();
return promise;

Powered by Google App Engine
This is Rietveld 408576698