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

Unified Diff: media/audio/audio_output_device.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/audio_output_device.cc
diff --git a/media/audio/audio_output_device.cc b/media/audio/audio_output_device.cc
index ae88ddef593699471a3f16b92dd18455234abe6e..62032634d9236f3f0f6abac8bb211a1b8cdfff12 100644
--- a/media/audio/audio_output_device.cc
+++ b/media/audio/audio_output_device.cc
@@ -155,6 +155,10 @@ OutputDeviceInfo AudioOutputDevice::GetOutputDeviceInfo() {
device_status_, output_params_);
}
+bool AudioOutputDevice::OptimizedForHardwareParameters() {
+ return true;
+}
+
bool AudioOutputDevice::CurrentThreadIsRenderingThread() {
// Since this function is supposed to be called on the rendering thread,
// it's safe to access |audio_callback_| here. It will always be valid when

Powered by Google App Engine
This is Rietveld 408576698