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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioResampler.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/AudioResampler.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioResampler.cpp b/third_party/WebKit/Source/platform/audio/AudioResampler.cpp
index bc91c47ca04df1d428544b6cbcfa67c49868db3a..5171bcd6cf6fd5c854012274a1c1f7c680cb746e 100644
--- a/third_party/WebKit/Source/platform/audio/AudioResampler.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioResampler.cpp
@@ -63,7 +63,7 @@ void AudioResampler::configureChannels(unsigned numberOfChannels) {
void AudioResampler::process(AudioSourceProvider* provider,
AudioBus* destinationBus,
size_t framesToProcess) {
- ASSERT(provider);
+ DCHECK(provider);
if (!provider)
return;
@@ -72,7 +72,7 @@ void AudioResampler::process(AudioSourceProvider* provider,
// Make sure our configuration matches the bus we're rendering to.
bool channelsMatch = (destinationBus &&
destinationBus->numberOfChannels() == numberOfChannels);
- ASSERT(channelsMatch);
+ DCHECK(channelsMatch);
if (!channelsMatch)
return;
@@ -83,7 +83,7 @@ void AudioResampler::process(AudioSourceProvider* provider,
size_t framesNeeded;
float* fillPointer =
m_kernels[i]->getSourcePointer(framesToProcess, &framesNeeded);
- ASSERT(fillPointer);
+ DCHECK(fillPointer);
if (!fillPointer)
return;

Powered by Google App Engine
This is Rietveld 408576698