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..cb67fb9cb681838cf110dd16eb4fca12a0625962 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(static_cast<int>(numberOfInputs()), 1); |
Raymond Toy
2016/07/25 16:56:52
I think this is better written as
DCHECK_GE(numbe
HyungwookLee
2016/07/26 00:42:40
Done.
|
if (numberOfInputs() < 1) { |
destinationBus->zero(); |
return; |