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

Unified Diff: third_party/WebKit/Source/modules/webaudio/ConvolverNode.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/ConvolverNode.cpp
diff --git a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
index b85db60f4694a18014aa2616ce6c2a429494d502..70054e847f5591d88ca46530f79bbe8d215b3083 100644
--- a/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
+++ b/third_party/WebKit/Source/modules/webaudio/ConvolverNode.cpp
@@ -70,7 +70,7 @@ ConvolverHandler::~ConvolverHandler()
void ConvolverHandler::process(size_t framesToProcess)
{
AudioBus* outputBus = output(0).bus();
- ASSERT(outputBus);
+ DCHECK(outputBus);
// Synchronize with possible dynamic changes to the impulse response.
MutexTryLocker tryLocker(m_processLock);
@@ -92,7 +92,7 @@ void ConvolverHandler::process(size_t framesToProcess)
void ConvolverHandler::setBuffer(AudioBuffer* buffer, ExceptionState& exceptionState)
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
if (!buffer)
return;
@@ -141,7 +141,7 @@ void ConvolverHandler::setBuffer(AudioBuffer* buffer, ExceptionState& exceptionS
AudioBuffer* ConvolverHandler::buffer()
{
- ASSERT(isMainThread());
+ DCHECK(isMainThread());
return m_buffer.get();
}

Powered by Google App Engine
This is Rietveld 408576698