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

Unified Diff: third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.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/ChannelSplitterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
index b4c87c43dd3c08d99f1d648d2642ff63162dda0f..35aafaca1cb9b43f460e4f7036ff48352cbd7df6 100644
--- a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
@@ -52,14 +52,14 @@ PassRefPtr<ChannelSplitterHandler> ChannelSplitterHandler::create(AudioNode& nod
void ChannelSplitterHandler::process(size_t framesToProcess)
{
AudioBus* source = input(0).bus();
- ASSERT(source);
- ASSERT_UNUSED(framesToProcess, framesToProcess == source->length());
+ DCHECK(source);
+ DCHECK_EQ(framesToProcess, source->length());
unsigned numberOfSourceChannels = source->numberOfChannels();
for (unsigned i = 0; i < numberOfOutputs(); ++i) {
AudioBus* destination = output(i).bus();
- ASSERT(destination);
+ DCHECK(destination);
if (i < numberOfSourceChannels) {
// Split the channel out if it exists in the source.

Powered by Google App Engine
This is Rietveld 408576698