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

Unified Diff: third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp

Issue 1820403002: Implement Automations for PannerNode and AutioListener (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase UseCounter.h Created 4 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/modules/webaudio/AbstractAudioContext.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
index c06e0f313b3e05e5522b98f37e393674c471479c..c8bd6223a10f7b9541fa05f55267b279ab1392c3 100644
--- a/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AbstractAudioContext.cpp
@@ -138,7 +138,7 @@ void AbstractAudioContext::initialize()
return;
FFTFrame::initialize();
- m_listener = AudioListener::create();
+ m_listener = AudioListener::create(*this);
if (m_destinationNode.get()) {
m_destinationNode->handler().initialize();
@@ -833,6 +833,9 @@ void AbstractAudioContext::handlePreRenderTasks()
// Check to see if source nodes can be stopped because the end time has passed.
handleStoppableSourceNodes();
+ // Update the dirty state of the listener.
+ listener()->updateState();
+
unlock();
}
}

Powered by Google App Engine
This is Rietveld 408576698