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

Unified Diff: third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.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/AudioDSPKernelProcessor.cpp
diff --git a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
index 4223908e0f24f8425783c7a950ebdcfbb1b6a7a6..dcea22668f92f9fd7d421778e1bafcad238c6961 100644
--- a/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
+++ b/third_party/WebKit/Source/platform/audio/AudioDSPKernelProcessor.cpp
@@ -44,7 +44,7 @@ void AudioDSPKernelProcessor::initialize() {
return;
MutexLocker locker(m_processLock);
- ASSERT(!m_kernels.size());
+ DCHECK(!m_kernels.size());
// Create processing kernels, one per channel.
for (unsigned i = 0; i < numberOfChannels(); ++i)
@@ -81,7 +81,7 @@ void AudioDSPKernelProcessor::process(const AudioBus* source,
bool channelCountMatches =
source->numberOfChannels() == destination->numberOfChannels() &&
source->numberOfChannels() == m_kernels.size();
- ASSERT(channelCountMatches);
+ DCHECK(channelCountMatches);
if (!channelCountMatches)
return;
@@ -112,7 +112,7 @@ void AudioDSPKernelProcessor::processOnlyAudioParams(size_t framesToProcess) {
// Resets filter state
void AudioDSPKernelProcessor::reset() {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (!isInitialized())
return;
@@ -130,13 +130,13 @@ void AudioDSPKernelProcessor::setNumberOfChannels(unsigned numberOfChannels) {
if (numberOfChannels == m_numberOfChannels)
return;
- ASSERT(!isInitialized());
+ DCHECK(!isInitialized());
if (!isInitialized())
m_numberOfChannels = numberOfChannels;
}
double AudioDSPKernelProcessor::tailTime() const {
- ASSERT(!isMainThread());
+ DCHECK(!isMainThread());
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
// It is expected that all the kernels have the same tailTime.
@@ -148,7 +148,7 @@ double AudioDSPKernelProcessor::tailTime() const {
}
double AudioDSPKernelProcessor::latencyTime() const {
- ASSERT(!isMainThread());
+ DCHECK(!isMainThread());
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
// It is expected that all the kernels have the same latencyTime.

Powered by Google App Engine
This is Rietveld 408576698