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

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

Issue 2803073002: Convert RELEASE_ASSERT()/ASSERT(...) to CHECK()/DCHECK_op(...) in platform/audio (Closed)
Patch Set: Removing DCHECK_IS_ON from FFTFrameOpenMAXDLAndroid.cpp 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 ef1f7faebc946eb02004ff8e5ee4d52b45eebd47..8838bdd264b4e17b1f140bd3f02a4656830bc2ff 100644
--- a/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp
+++ b/third_party/WebKit/Source/platform/audio/ReverbInputBuffer.cpp
@@ -44,7 +44,7 @@ void ReverbInputBuffer::write(const float* sourceP, size_t numberOfFrames) {
sizeof(float) * numberOfFrames);
m_writeIndex += numberOfFrames;
- ASSERT(m_writeIndex <= bufferLength);
+ DCHECK_LE(m_writeIndex, bufferLength);
if (m_writeIndex >= bufferLength)
m_writeIndex = 0;

Powered by Google App Engine
This is Rietveld 408576698