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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioBus.cpp

Issue 2807593003: Revert of Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio (Closed)
Patch Set: Created 3 years, 8 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/platform/audio/AudioBus.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioBus.cpp b/third_party/WebKit/Source/platform/audio/AudioBus.cpp
index 5d59fc412a48c501355eecfdd1ae605941847137..2fbbb68638fb5097e14aa6d27d84ee559453eda9 100644
--- a/third_party/WebKit/Source/platform/audio/AudioBus.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioBus.cpp
@@ -49,7 +49,7 @@
PassRefPtr<AudioBus> AudioBus::create(unsigned numberOfChannels,
size_t length,
bool allocate) {
- DCHECK_LE(numberOfChannels, MaxBusChannels);
+ ASSERT(numberOfChannels <= MaxBusChannels);
if (numberOfChannels > MaxBusChannels)
return nullptr;
@@ -81,7 +81,7 @@
}
void AudioBus::resizeSmaller(size_t newLength) {
- DCHECK_LE(newLength, m_length);
+ ASSERT(newLength <= m_length);
if (newLength <= m_length)
m_length = newLength;
@@ -479,7 +479,7 @@
}
unsigned numberOfChannels = this->numberOfChannels();
- DCHECK_LE(numberOfChannels, MaxBusChannels);
+ ASSERT(numberOfChannels <= MaxBusChannels);
if (numberOfChannels > MaxBusChannels)
return;
@@ -615,8 +615,7 @@
bool mixToMono,
double newSampleRate) {
// sourceBus's sample-rate must be known.
- DCHECK(sourceBus);
- DCHECK(sourceBus->sampleRate());
+ ASSERT(sourceBus && sourceBus->sampleRate());
if (!sourceBus || !sourceBus->sampleRate())
return nullptr;
« no previous file with comments | « third_party/WebKit/Source/platform/audio/AudioArray.h ('k') | third_party/WebKit/Source/platform/audio/AudioChannel.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698