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

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

Issue 1865583002: Implement BaseAudioContext (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 3c31385daf9e8f442d5513b417182de02747c384..80ceff125313096fa3b8e7739238add71128b78a 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
@@ -35,10 +35,10 @@ namespace blink {
const double AudioParamHandler::DefaultSmoothingConstant = 0.05;
const double AudioParamHandler::SnapThreshold = 0.001;
-AbstractAudioContext* AudioParamHandler::context() const
+BaseAudioContext* AudioParamHandler::context() const
{
// TODO(tkent): We can remove this dangerous function by removing
- // AbstractAudioContext dependency from AudioParamTimeline.
+ // BaseAudioContext dependency from AudioParamTimeline.
ASSERT_WITH_SECURITY_IMPLICATION(deferredTaskHandler().isAudioThread());
return m_context;
}
@@ -198,13 +198,13 @@ void AudioParamHandler::disconnect(AudioNodeOutput& output)
// ----------------------------------------------------------------
-AudioParam::AudioParam(AbstractAudioContext& context, double defaultValue)
+AudioParam::AudioParam(BaseAudioContext& context, double defaultValue)
: m_handler(AudioParamHandler::create(context, defaultValue))
, m_context(context)
{
}
-AudioParam* AudioParam::create(AbstractAudioContext& context, double defaultValue)
+AudioParam* AudioParam::create(BaseAudioContext& context, double defaultValue)
{
return new AudioParam(context, defaultValue);
}

Powered by Google App Engine
This is Rietveld 408576698