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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.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/AudioDestinationNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
index b54d9b00f1ebc5c598b4e0f0718c004c1d99bf39..f4a86ca65181ee9dc233c803168a815022438191 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioDestinationNode.cpp
@@ -41,7 +41,7 @@ AudioDestinationHandler::AudioDestinationHandler(AudioNode& node, float sampleRa
AudioDestinationHandler::~AudioDestinationHandler()
{
- ASSERT(!isInitialized());
+ DCHECK(!isInitialized());
}
void AudioDestinationHandler::render(AudioBus* sourceBus, AudioBus* destinationBus, size_t numberOfFrames)
@@ -57,7 +57,7 @@ void AudioDestinationHandler::render(AudioBus* sourceBus, AudioBus* destinationB
//
// TODO(hongchan): because the context can go away while rendering, so this
// check cannot guarantee the safe execution of the following steps.
- ASSERT(context());
+ DCHECK(context());
if (!context())
return;
@@ -78,7 +78,7 @@ void AudioDestinationHandler::render(AudioBus* sourceBus, AudioBus* destinationB
if (sourceBus)
m_localAudioInputProvider.set(sourceBus);
- ASSERT(numberOfInputs() >= 1);
+ DCHECK_GE(numberOfInputs(), 1u);
if (numberOfInputs() < 1) {
destinationBus->zero();
return;

Powered by Google App Engine
This is Rietveld 408576698