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

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

Issue 2803733002: Convert ASSERT(foo) to DCHECK(foo) in platform/audio (Closed)
Patch Set: Mechanical change from ASSERT(foo) to DCHECK(foo) 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/AudioChannel.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioChannel.cpp b/third_party/WebKit/Source/platform/audio/AudioChannel.cpp
index c9f2b1a6d444ebfbaf901cb93285b860354fb19c..751fc1dcd419f0ec16933246afb949d7c7017e3c 100644
--- a/third_party/WebKit/Source/platform/audio/AudioChannel.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioChannel.cpp
@@ -50,7 +50,7 @@ void AudioChannel::scale(float scale) {
void AudioChannel::copyFrom(const AudioChannel* sourceChannel) {
bool isSafe = (sourceChannel && sourceChannel->length() >= length());
- ASSERT(isSafe);
+ DCHECK(isSafe);
if (!isSafe)
return;
@@ -67,7 +67,7 @@ void AudioChannel::copyFromRange(const AudioChannel* sourceChannel,
// Check that range is safe for reading from sourceChannel.
bool isRangeSafe = sourceChannel && startFrame < endFrame &&
endFrame <= sourceChannel->length();
- ASSERT(isRangeSafe);
+ DCHECK(isRangeSafe);
if (!isRangeSafe)
return;
@@ -77,7 +77,7 @@ void AudioChannel::copyFromRange(const AudioChannel* sourceChannel,
// Check that this channel has enough space.
size_t rangeLength = endFrame - startFrame;
bool isRangeLengthSafe = rangeLength <= length();
- ASSERT(isRangeLengthSafe);
+ DCHECK(isRangeLengthSafe);
if (!isRangeLengthSafe)
return;
@@ -95,7 +95,7 @@ void AudioChannel::copyFromRange(const AudioChannel* sourceChannel,
void AudioChannel::sumFrom(const AudioChannel* sourceChannel) {
bool isSafe = sourceChannel && sourceChannel->length() >= length();
- ASSERT(isSafe);
+ DCHECK(isSafe);
if (!isSafe)
return;

Powered by Google App Engine
This is Rietveld 408576698