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

Unified Diff: media/audio/null_audio_sink.cc

Issue 2836293002: Introduce AudioRendererSink::IsOptimizedForHardwareParameters (Closed)
Patch Set: revert preferred_params and add OptimizedForHardwareParameters Created 3 years, 8 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 78dfbc90d9913888b3f7541eb0d8fcfed5a0414f..63d714a4104f1ce4c01e935dcba1efa0de5987e7 100644
--- a/media/audio/null_audio_sink.cc
+++ b/media/audio/null_audio_sink.cc
@@ -79,6 +79,10 @@ OutputDeviceInfo NullAudioSink::GetOutputDeviceInfo() {
return OutputDeviceInfo(OUTPUT_DEVICE_STATUS_OK);
}
+bool NullAudioSink::OptimizedForHardwareParameters() {
+ return true;
DaleCurtis 2017/05/01 22:55:08 Ditto, false.
flim-chromium 2017/05/15 15:15:57 Done.
+}
+
bool NullAudioSink::CurrentThreadIsRenderingThread() {
return task_runner_->BelongsToCurrentThread();
}

Powered by Google App Engine
This is Rietveld 408576698