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

Unified Diff: media/base/audio_renderer_sink.h

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/base/audio_renderer_sink.h
diff --git a/media/base/audio_renderer_sink.h b/media/base/audio_renderer_sink.h
index 4052112bab555b6703c90962422323f5cbeff0e4..3c9f0c2c8daa70b4da8083039ae3bae55e4bb0a6 100644
--- a/media/base/audio_renderer_sink.h
+++ b/media/base/audio_renderer_sink.h
@@ -73,6 +73,9 @@ class AudioRendererSink
// Must never be called on the IO thread.
virtual OutputDeviceInfo GetOutputDeviceInfo() = 0;
+ // Returns |true| if a source with hardware parameters is preferable.
+ virtual bool OptimizedForHardwareParameters() = 0;
DaleCurtis 2017/05/01 22:55:08 Sorry, this should be IsOptimizedForHardwareParame
flim-chromium 2017/05/15 15:15:57 Done.
+
// If DCHECKs are enabled, this function returns true if called on rendering
// thread, otherwise false. With DCHECKs disabled, it returns true. Thus, it
// is intended to be used for DCHECKing.

Powered by Google App Engine
This is Rietveld 408576698