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

Unified Diff: third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.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/HRTFDatabaseLoader.cpp
diff --git a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
index a6b92e2559ddd740ddd761b71fe5dfd2053ef811..ff73e2142aaed83b9ba838927ef5ba2cab75111f 100644
--- a/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
+++ b/third_party/WebKit/Source/platform/audio/HRTFDatabaseLoader.cpp
@@ -48,7 +48,7 @@ static LoaderMap& getLoaderMap() {
PassRefPtr<HRTFDatabaseLoader>
HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(float sampleRate) {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
RefPtr<HRTFDatabaseLoader> loader = getLoaderMap().at(sampleRate);
if (loader) {
@@ -64,12 +64,12 @@ HRTFDatabaseLoader::createAndLoadAsynchronouslyIfNecessary(float sampleRate) {
HRTFDatabaseLoader::HRTFDatabaseLoader(float sampleRate)
: m_databaseSampleRate(sampleRate) {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
}
HRTFDatabaseLoader::~HRTFDatabaseLoader() {
- ASSERT(isMainThread());
- ASSERT(!m_thread);
+ DCHECK(isMainThread());
+ DCHECK(!m_thread);
getLoaderMap().erase(m_databaseSampleRate);
}
@@ -85,7 +85,7 @@ void HRTFDatabaseLoader::loadTask() {
}
void HRTFDatabaseLoader::loadAsynchronously() {
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
// m_hrtfDatabase and m_thread should both be unset because this should be a
// new HRTFDatabaseLoader object that was just created by
« no previous file with comments | « third_party/WebKit/Source/platform/audio/HRTFDatabase.cpp ('k') | third_party/WebKit/Source/platform/audio/HRTFElevation.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698