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 6e2f7a8b4ae9a916f0b29cbf86dfabebc77ca728..6eac6cee04cbfabedc12b3572d1f4e80f6fe86e6 100644 |
--- a/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
+++ b/third_party/WebKit/Source/modules/webaudio/AudioContext.cpp |
@@ -28,7 +28,7 @@ static unsigned s_contextId = 0; |
BaseAudioContext* AudioContext::create(Document& document, ExceptionState& exceptionState) |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
UseCounter::countCrossOriginIframe(document, UseCounter::AudioContextCrossOriginIframe); |
@@ -102,7 +102,7 @@ DEFINE_TRACE(AudioContext) |
ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
AutoLocker locker(this); |
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState); |
@@ -126,7 +126,7 @@ ScriptPromise AudioContext::suspendContext(ScriptState* scriptState) |
ScriptPromise AudioContext::resumeContext(ScriptState* scriptState) |
{ |
- ASSERT(isMainThread()); |
+ DCHECK(isMainThread()); |
if (isContextClosed()) { |
return ScriptPromise::rejectWithDOMException( |
@@ -187,7 +187,7 @@ void AudioContext::didClose() |
// are closed in their completion event. |
setContextState(Closed); |
- ASSERT(s_hardwareContextCount); |
+ DCHECK(s_hardwareContextCount); |
--s_hardwareContextCount; |
if (m_closeResolver) |
@@ -201,8 +201,8 @@ bool AudioContext::isContextClosed() const |
void AudioContext::stopRendering() |
{ |
- ASSERT(isMainThread()); |
- ASSERT(destination()); |
+ DCHECK(isMainThread()); |
+ DCHECK(destination()); |
if (contextState() == Running) { |
destination()->audioDestinationHandler().stopRendering(); |