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

Unified Diff: third_party/WebKit/Source/platform/audio/ReverbInputBuffer.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/ReverbInputBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp b/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp
index 75fddbbabe26305e753bf392c7fd173ed851513c..ef1f7faebc946eb02004ff8e5ee4d52b45eebd47 100644
--- a/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp
+++ b/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp
@@ -36,7 +36,7 @@ ReverbInputBuffer::ReverbInputBuffer(size_t length)
void ReverbInputBuffer::write(const float* sourceP, size_t numberOfFrames) {
size_t bufferLength = m_buffer.size();
bool isCopySafe = m_writeIndex + numberOfFrames <= bufferLength;
- ASSERT(isCopySafe);
+ DCHECK(isCopySafe);
if (!isCopySafe)
return;
@@ -55,7 +55,7 @@ float* ReverbInputBuffer::directReadFrom(int* readIndex,
size_t bufferLength = m_buffer.size();
bool isPointerGood = readIndex && *readIndex >= 0 &&
*readIndex + numberOfFrames <= bufferLength;
- ASSERT(isPointerGood);
+ DCHECK(isPointerGood);
if (!isPointerGood) {
// Should never happen in practice but return pointer to start of buffer
// (avoid crash)

Powered by Google App Engine
This is Rietveld 408576698