| 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
|
|
|