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

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

Issue 2103043007: Rename AbstractAudioContext to BaseAudioContext (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Use ASSERT(isGraphOwner()) instead of DCHECK Created 4 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
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 892c6829da9abf459c0c174edc6177f2671de627..b92edfcd349c9cf4c4533297a397c00233e07b2c 100644
--- a/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/AudioParam.cpp
@@ -39,7 +39,7 @@ namespace blink {
const double AudioParamHandler::DefaultSmoothingConstant = 0.05;
const double AudioParamHandler::SnapThreshold = 0.001;
-AudioParamHandler::AudioParamHandler(AbstractAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
+AudioParamHandler::AudioParamHandler(BaseAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
: AudioSummingJunction(context.deferredTaskHandler())
, m_paramType(paramType)
, m_intrinsicValue(defaultValue)
@@ -338,13 +338,13 @@ void AudioParamHandler::updateHistograms(float newValue)
// ----------------------------------------------------------------
-AudioParam::AudioParam(AbstractAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
+AudioParam::AudioParam(BaseAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
: m_handler(AudioParamHandler::create(context, paramType, defaultValue, minValue, maxValue))
, m_context(context)
{
}
-AudioParam* AudioParam::create(AbstractAudioContext& context, AudioParamType paramType, double defaultValue)
+AudioParam* AudioParam::create(BaseAudioContext& context, AudioParamType paramType, double defaultValue)
{
// Default nominal range is most negative float to most positive. This basically means any
// value is valid, except that floating-point infinities are excluded.
@@ -352,7 +352,7 @@ AudioParam* AudioParam::create(AbstractAudioContext& context, AudioParamType par
return new AudioParam(context, paramType, defaultValue, -limit, limit);
}
-AudioParam* AudioParam::create(AbstractAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
+AudioParam* AudioParam::create(BaseAudioContext& context, AudioParamType paramType, double defaultValue, float minValue, float maxValue)
{
DCHECK_LE(minValue, maxValue);
return new AudioParam(context, paramType, defaultValue, minValue, maxValue);

Powered by Google App Engine
This is Rietveld 408576698