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

Unified Diff: media/base/audio_decoder.h

Issue 2837613004: media: Support better decoder switching (Closed)
Patch Set: Mock*Decoder name Created 3 years, 7 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
« no previous file with comments | « no previous file | media/base/audio_decoder_config.h » ('j') | media/filters/decoder_stream.cc » ('J')
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_decoder.h
diff --git a/media/base/audio_decoder.h b/media/base/audio_decoder.h
index cea6f3481e1cbd4cb8d8906789b359c7b53cc3f2..da477072233633a860196713fef569372b260e70 100644
--- a/media/base/audio_decoder.h
+++ b/media/base/audio_decoder.h
@@ -43,7 +43,11 @@ class MEDIA_EXPORT AudioDecoder {
// depends on |this|.
virtual ~AudioDecoder();
- // Returns the name of the decoder for logging purpose.
+ // Returns the name of the decoder for logging and decoder selection purposes.
+ // This name should be available immediately after construction (e.g. before
+ // Initialize() is called). It should also be stable in the sense that the
+ // name does not change across multiple constructions.
+ // TODO(xhwang): Rename this method since the name is not only for display.
virtual std::string GetDisplayName() const = 0;
// Initializes an AudioDecoder with |config|, executing the |init_cb| upon
« no previous file with comments | « no previous file | media/base/audio_decoder_config.h » ('j') | media/filters/decoder_stream.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698