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

Unified Diff: media/audio/null_audio_sink.cc

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: Build fix. Rebase. 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/null_audio_sink.cc
diff --git a/media/audio/null_audio_sink.cc b/media/audio/null_audio_sink.cc
index 6d40c93e2b67a28a71aaf7840977a6258408972f..43221998047be13c71ea127f65ffba6792998295 100644
--- a/media/audio/null_audio_sink.cc
+++ b/media/audio/null_audio_sink.cc
@@ -79,6 +79,10 @@ OutputDeviceInfo NullAudioSink::GetOutputDeviceInfo() {
return OutputDeviceInfo();
}
+bool NullAudioSink::CurrentThreadIsRenderingThread() {
+ return task_runner_->BelongsToCurrentThread();
+}
+
void NullAudioSink::SwitchOutputDevice(const std::string& device_id,
const url::Origin& security_origin,
const OutputDeviceStatusCB& callback) {

Powered by Google App Engine
This is Rietveld 408576698