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

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

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase Created 4 years, 4 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/WaveShaperNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
index e4d9ba1e094d483e6aca15a411df168e28104339..44c9f628a280bbe51e596c5d0fcd7a09d18bbae6 100644
--- a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
@@ -59,7 +59,7 @@ WaveShaperProcessor* WaveShaperNode::getWaveShaperProcessor() const
void WaveShaperNode::setCurve(DOMFloat32Array* curve, ExceptionState& exceptionState)
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (curve && curve->length() < 2) {
exceptionState.throwDOMException(
@@ -90,7 +90,7 @@ DOMFloat32Array* WaveShaperNode::curve()
void WaveShaperNode::setOversample(const String& type)
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
// This is to synchronize with the changes made in
// AudioBasicProcessorNode::checkNumberOfChannelsForInput() where we can

Powered by Google App Engine
This is Rietveld 408576698