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

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

Issue 1214463003: Split "Online" and "Offline" AudioContext processing (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Bring to ToT Created 5 years, 5 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 | « Source/modules/webaudio/AudioParam.h ('k') | Source/modules/webaudio/AudioParamTimeline.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/AudioParam.cpp
diff --git a/Source/modules/webaudio/AudioParam.cpp b/Source/modules/webaudio/AudioParam.cpp
index c584a265efaf2bf4bf8dbc0ebafc2e4d24498507..2d2eb9e133499f337487d4afde7eb6928352bf79 100644
--- a/Source/modules/webaudio/AudioParam.cpp
+++ b/Source/modules/webaudio/AudioParam.cpp
@@ -38,10 +38,10 @@ namespace blink {
const double AudioParamHandler::DefaultSmoothingConstant = 0.05;
const double AudioParamHandler::SnapThreshold = 0.001;
-AudioContext* AudioParamHandler::context() const
+AbstractAudioContext* AudioParamHandler::context() const
{
// TODO(tkent): We can remove this dangerous function by removing
- // AudioContext dependency from AudioParamTimeline.
+ // AbstractAudioContext dependency from AudioParamTimeline.
ASSERT_WITH_SECURITY_IMPLICATION(deferredTaskHandler().isAudioThread());
return &m_context;
}
@@ -194,13 +194,13 @@ void AudioParamHandler::disconnect(AudioNodeOutput& output)
// ----------------------------------------------------------------
-AudioParam::AudioParam(AudioContext& context, double defaultValue)
+AudioParam::AudioParam(AbstractAudioContext& context, double defaultValue)
: m_handler(AudioParamHandler::create(context, defaultValue))
, m_context(context)
{
}
-AudioParam* AudioParam::create(AudioContext& context, double defaultValue)
+AudioParam* AudioParam::create(AbstractAudioContext& context, double defaultValue)
{
return new AudioParam(context, defaultValue);
}
« no previous file with comments | « Source/modules/webaudio/AudioParam.h ('k') | Source/modules/webaudio/AudioParamTimeline.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698