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

Unified Diff: Source/modules/webaudio/PannerNode.cpp

Issue 231023005: Replace string comparing to enum comparing. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Fix nit Created 6 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/PannerNode.cpp
diff --git a/Source/modules/webaudio/PannerNode.cpp b/Source/modules/webaudio/PannerNode.cpp
index 0bef552ba1b4be0158dedf52151673f46e96eae1..d7a5156ae63b8255a49de7b5d35b8eac05a92dfe 100644
--- a/Source/modules/webaudio/PannerNode.cpp
+++ b/Source/modules/webaudio/PannerNode.cpp
@@ -127,8 +127,8 @@ void PannerNode::process(size_t framesToProcess)
// The audio thread can't block on this lock, so we call tryLock() instead.
MutexTryLocker tryLocker(m_processLock);
if (tryLocker.locked()) {
- // HRTFDatabase should be loaded before proceeding for offline audio context when panningModel() is "HRTF".
- if (panningModel() == "HRTF" && !m_hrtfDatabaseLoader->isLoaded()) {
+ // HRTFDatabase should be loaded before proceeding for offline audio context when the panning model is HRTF.
+ if (m_panningModel == HRTF && !m_hrtfDatabaseLoader->isLoaded()) {
if (context()->isOfflineContext()) {
m_hrtfDatabaseLoader->waitForLoaderThreadCompletion();
} else {
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698