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

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

Issue 1911133002: Remove connection from AudioParamHandler to AudioContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/AudioParam.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp b/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
index 9e494295098ff1dd98dd3165cfd0f13f8a219003..c474744e9102ac5de5f0c395a064f54068bee852 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
@@ -35,12 +35,9 @@ namespace blink {
const double AudioParamHandler::DefaultSmoothingConstant = 0.05;
const double AudioParamHandler::SnapThreshold = 0.001;
-AbstractAudioContext* AudioParamHandler::context() const
+AudioDestinationHandler* AudioParamHandler::context() const
{
- // TODO(tkent): We can remove this dangerous function by removing
- // AbstractAudioContext dependency from AudioParamTimeline.
- ASSERT_WITH_SECURITY_IMPLICATION(deferredTaskHandler().isAudioThread());
- return m_context;
+ return &m_destination;
}
float AudioParamHandler::value()

Powered by Google App Engine
This is Rietveld 408576698