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

Unified Diff: third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h

Issue 2159403002: Replace ASSERT with DCHECK in WebAudio (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/BaseAudioContext.h
diff --git a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
index 585dec1f71edfef74b2d750455901d5eb155803e..2ec8a76502e77f6c57e3f8e6bcf1a90ba9fbe85f 100644
--- a/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
+++ b/third_party/WebKit/Source/modules/webaudio/BaseAudioContext.h
@@ -232,10 +232,10 @@ public:
void lock() { deferredTaskHandler().lock(); }
bool tryLock() { return deferredTaskHandler().tryLock(); }
void unlock() { deferredTaskHandler().unlock(); }
-#if ENABLE(ASSERT)
+
// Returns true if this thread owns the context's lock.
bool isGraphOwner() { return deferredTaskHandler().isGraphOwner(); }
-#endif
+
using AutoLocker = DeferredTaskHandler::AutoLocker;
// Returns the maximum numuber of channels we can support.

Powered by Google App Engine
This is Rietveld 408576698