summaryrefslogtreecommitdiff
path: root/chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h
diff options
context:
space:
mode:
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h')
-rw-r--r--chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h b/chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h
index 2db9eb1a637..f83258f9793 100644
--- a/chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h
+++ b/chromium/third_party/blink/renderer/modules/webaudio/deferred_task_handler.h
@@ -145,8 +145,8 @@ class MODULES_EXPORT DeferredTaskHandler final
// MUST NOT be used in the real-time audio context.
void OfflineLock();
- // Returns true if this thread owns the context's lock.
- bool IsGraphOwner();
+ // In DCHECK builds, fails if this thread does not own the context's lock.
+ void AssertGraphOwner() const { context_graph_mutex_.AssertAcquired(); }
class MODULES_EXPORT GraphAutoLocker {
STACK_ALLOCATED();