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

Unified Diff: media/audio/audio_device_thread.h

Issue 2038053002: Change audio render thread checking to use new AudioRendererSink::BelongsToRendererThread() (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Using the new BelongsTo...() function for thread checking. Created 4 years, 6 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: media/audio/audio_device_thread.h
diff --git a/media/audio/audio_device_thread.h b/media/audio/audio_device_thread.h
index 61e5e8724ddc24b289c01c364e3491b137779462..a1c9d89d5b5422b05e8bf4a769537962be7850eb 100644
--- a/media/audio/audio_device_thread.h
+++ b/media/audio/audio_device_thread.h
@@ -97,6 +97,9 @@ class MEDIA_EXPORT AudioDeviceThread {
// Returns true if the thread is stopped or stopping.
bool IsStopped();
+ // Returns true if called on the device thread, otherwise false.
+ bool BelongsToRenderingThread();
+
private:
// Our own private SimpleThread override. We implement this in a
// private class so that we get the following benefits:

Powered by Google App Engine
This is Rietveld 408576698