Chromium Code Reviews| Index: third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
| diff --git a/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp b/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
| index c19aad88290b1589553c8f3d3c496300fdd52c26..616f3b3744295f03d85c5bd87e93de4f1f26c1ce 100644 |
| --- a/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
| +++ b/third_party/WebKit/Source/modules/webaudio/ChannelMergerNode.cpp |
| @@ -66,12 +66,12 @@ void ChannelMergerHandler::process(size_t framesToProcess) |
| ASSERT_UNUSED(framesToProcess, framesToProcess == output.bus()->length()); |
| unsigned numberOfOutputChannels = output.numberOfChannels(); |
| - ASSERT(numberOfInputs() == numberOfOutputChannels); |
| + DCHECK_EQ(numberOfInputs(), numberOfOutputChannels); |
| // Merge multiple inputs into one output. |
| for (unsigned i = 0; i < numberOfOutputChannels; ++i) { |
| AudioNodeInput& input = this->input(i); |
| - ASSERT(input.numberOfChannels() == 1); |
| + DCHECK_EQ(static_cast<int>(input.numberOfChannels()), 1); |
|
Raymond Toy
2016/07/25 16:56:52
DCHECK_EQ(..., 1U)
|
| AudioChannel* outputChannel = output.bus()->channel(i); |
| if (input.isConnected()) { |
| @@ -93,7 +93,7 @@ void ChannelMergerHandler::process(size_t framesToProcess) |
| void ChannelMergerHandler::setChannelCount(unsigned long channelCount, ExceptionState& exceptionState) |
| { |
| - ASSERT(isMainThread()); |
| + DCHECK(isMainThread()); |
| BaseAudioContext::AutoLocker locker(context()); |
| // channelCount must be 1. |
| @@ -106,7 +106,7 @@ void ChannelMergerHandler::setChannelCount(unsigned long channelCount, Exception |
| void ChannelMergerHandler::setChannelCountMode(const String& mode, ExceptionState& exceptionState) |
| { |
| - ASSERT(isMainThread()); |
| + DCHECK(isMainThread()); |
| BaseAudioContext::AutoLocker locker(context()); |
| // channcelCountMode must be 'explicit'. |