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

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

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/DefaultAudioDestinationNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
index 4efdff8a4eac5d6bed54ece5bacf7e3bd6acc9c7..e1ec4ad8ff1e0698a9ae6870c7cbe345f56040cf 100644
--- a/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/DefaultAudioDestinationNode.cpp
@@ -47,7 +47,7 @@ PassRefPtr<DefaultAudioDestinationHandler> DefaultAudioDestinationHandler::creat
DefaultAudioDestinationHandler::~DefaultAudioDestinationHandler()
{
- ASSERT(!isInitialized());
+ DCHECK(!isInitialized());
}
void DefaultAudioDestinationHandler::dispose()
@@ -58,7 +58,7 @@ void DefaultAudioDestinationHandler::dispose()
void DefaultAudioDestinationHandler::initialize()
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (isInitialized())
return;
@@ -68,7 +68,7 @@ void DefaultAudioDestinationHandler::initialize()
void DefaultAudioDestinationHandler::uninitialize()
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (!isInitialized())
return;
@@ -88,18 +88,18 @@ void DefaultAudioDestinationHandler::createDestination()
void DefaultAudioDestinationHandler::startRendering()
{
- ASSERT(isInitialized());
+ DCHECK(isInitialized());
if (isInitialized()) {
- ASSERT(!m_destination->isPlaying());
+ DCHECK(!m_destination->isPlaying());
m_destination->start();
}
}
void DefaultAudioDestinationHandler::stopRendering()
{
- ASSERT(isInitialized());
+ DCHECK(isInitialized());
if (isInitialized()) {
- ASSERT(m_destination->isPlaying());
+ DCHECK(m_destination->isPlaying());
m_destination->stop();
}
}
@@ -115,7 +115,7 @@ void DefaultAudioDestinationHandler::setChannelCount(unsigned long channelCount,
// send to the audio hardware. It can only be set depending on the maximum number of
// channels supported by the hardware.
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (!maxChannelCount() || channelCount > maxChannelCount()) {
exceptionState.throwDOMException(

Powered by Google App Engine
This is Rietveld 408576698