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

Unified Diff: third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.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/ChannelSplitterNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
index 0b6d7157376bfc4e68ad7b37dc4f3216448d5de8..b4c87c43dd3c08d99f1d648d2642ff63162dda0f 100644
--- a/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ChannelSplitterNode.cpp
@@ -26,9 +26,9 @@
#include "bindings/core/v8/ExceptionMessages.h"
#include "bindings/core/v8/ExceptionState.h"
#include "core/dom/ExceptionCode.h"
-#include "modules/webaudio/AbstractAudioContext.h"
#include "modules/webaudio/AudioNodeInput.h"
#include "modules/webaudio/AudioNodeOutput.h"
+#include "modules/webaudio/BaseAudioContext.h"
namespace blink {
@@ -74,13 +74,13 @@ void ChannelSplitterHandler::process(size_t framesToProcess)
// ----------------------------------------------------------------
-ChannelSplitterNode::ChannelSplitterNode(AbstractAudioContext& context, unsigned numberOfOutputs)
+ChannelSplitterNode::ChannelSplitterNode(BaseAudioContext& context, unsigned numberOfOutputs)
: AudioNode(context)
{
setHandler(ChannelSplitterHandler::create(*this, context.sampleRate(), numberOfOutputs));
}
-ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context, ExceptionState& exceptionState)
+ChannelSplitterNode* ChannelSplitterNode::create(BaseAudioContext& context, ExceptionState& exceptionState)
{
DCHECK(isMainThread());
@@ -88,7 +88,7 @@ ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context,
return create(context, 6, exceptionState);
}
-ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context, unsigned numberOfOutputs, ExceptionState& exceptionState)
+ChannelSplitterNode* ChannelSplitterNode::create(BaseAudioContext& context, unsigned numberOfOutputs, ExceptionState& exceptionState)
{
DCHECK(isMainThread());
@@ -97,7 +97,7 @@ ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context,
return nullptr;
}
- if (!numberOfOutputs || numberOfOutputs > AbstractAudioContext::maxNumberOfChannels()) {
+ if (!numberOfOutputs || numberOfOutputs > BaseAudioContext::maxNumberOfChannels()) {
exceptionState.throwDOMException(
IndexSizeError,
ExceptionMessages::indexOutsideRange<size_t>(
@@ -105,7 +105,7 @@ ChannelSplitterNode* ChannelSplitterNode::create(AbstractAudioContext& context,
numberOfOutputs,
1,
ExceptionMessages::InclusiveBound,
- AbstractAudioContext::maxNumberOfChannels(),
+ BaseAudioContext::maxNumberOfChannels(),
ExceptionMessages::InclusiveBound));
return nullptr;
}

Powered by Google App Engine
This is Rietveld 408576698