| Index: third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
|
| diff --git a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
|
| index 10d9283668e155d91e5f701f5008eb32890010fe..2ea23fc65f11b0e4dc070c979bdd703d647beea8 100644
|
| --- a/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
|
| +++ b/third_party/WebKit/Source/modules/webaudio/AudioScheduledSourceNode.cpp
|
| @@ -47,11 +47,11 @@ AudioScheduledSourceHandler::AudioScheduledSourceHandler(NodeType nodeType, Audi
|
| void AudioScheduledSourceHandler::updateSchedulingInfo(
|
| size_t quantumFrameSize, AudioBus* outputBus, size_t& quantumFrameOffset, size_t& nonSilentFramesToProcess)
|
| {
|
| - ASSERT(outputBus);
|
| + DCHECK(outputBus);
|
| if (!outputBus)
|
| return;
|
|
|
| - ASSERT(quantumFrameSize == ProcessingSizeInFrames);
|
| + DCHECK_EQ(quantumFrameSize, ProcessingSizeInFrames);
|
| if (quantumFrameSize != ProcessingSizeInFrames)
|
| return;
|
|
|
| @@ -110,7 +110,7 @@ void AudioScheduledSourceHandler::updateSchedulingInfo(
|
| size_t framesToZero = quantumFrameSize - zeroStartFrame;
|
|
|
| bool isSafe = zeroStartFrame < quantumFrameSize && framesToZero <= quantumFrameSize && zeroStartFrame + framesToZero <= quantumFrameSize;
|
| - ASSERT(isSafe);
|
| + DCHECK(isSafe);
|
|
|
| if (isSafe) {
|
| if (framesToZero > nonSilentFramesToProcess)
|
| @@ -130,7 +130,7 @@ void AudioScheduledSourceHandler::updateSchedulingInfo(
|
|
|
| void AudioScheduledSourceHandler::start(double when, ExceptionState& exceptionState)
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
|
|
| context()->recordUserGestureState();
|
|
|
| @@ -169,7 +169,7 @@ void AudioScheduledSourceHandler::start(double when, ExceptionState& exceptionSt
|
|
|
| void AudioScheduledSourceHandler::stop(double when, ExceptionState& exceptionState)
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
|
|
| if (playbackState() == UNSCHEDULED_STATE) {
|
| exceptionState.throwDOMException(
|
| @@ -218,7 +218,7 @@ void AudioScheduledSourceHandler::finish()
|
|
|
| void AudioScheduledSourceHandler::notifyEnded()
|
| {
|
| - ASSERT(isMainThread());
|
| + DCHECK(isMainThread());
|
| if (node())
|
| node()->dispatchEvent(Event::create(EventTypeNames::ended));
|
| }
|
|
|