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

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: 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/WaveShaperNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp b/third_party/WebKit/Source/modules/webaudio/WaveShaperNode.cpp
index c0046ed6be52bd0d75837b9971810c644c701c62..5f6b5f17a8f0c471e11f08f69efdeb13e091d723 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(
@@ -81,7 +81,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