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

Unified Diff: third_party/WebKit/Source/platform/audio/ReverbAccumulationBuffer.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/ReverbAccumulationBuffer.cpp
diff --git a/third_party/WebKit/Source/platform/audio/ReverbAccumulationBuffer.cpp b/third_party/WebKit/Source/platform/audio/ReverbAccumulationBuffer.cpp
index 7c4ff6ee2043ae701b3e43d65b5907c7e9a7e68b..c83fc532a8d6580840692550d0fa42b8a725741a 100644
--- a/third_party/WebKit/Source/platform/audio/ReverbAccumulationBuffer.cpp
+++ b/third_party/WebKit/Source/platform/audio/ReverbAccumulationBuffer.cpp
@@ -42,7 +42,7 @@ void ReverbAccumulationBuffer::readAndClear(float* destination,
bool isCopySafe =
m_readIndex <= bufferLength && numberOfFrames <= bufferLength;
- ASSERT(isCopySafe);
+ DCHECK(isCopySafe);
if (!isCopySafe)
return;
@@ -91,7 +91,7 @@ int ReverbAccumulationBuffer::accumulate(float* source,
bool isSafe = writeIndex <= bufferLength &&
numberOfFrames1 + writeIndex <= bufferLength &&
numberOfFrames2 <= bufferLength;
- ASSERT(isSafe);
+ DCHECK(isSafe);
if (!isSafe)
return 0;
« no previous file with comments | « third_party/WebKit/Source/platform/audio/Reverb.cpp ('k') | third_party/WebKit/Source/platform/audio/ReverbConvolver.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698