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

Unified Diff: media/mojo/common/media_type_converters.h

Issue 1896883002: Mojo interfaces needed for switching audio rendering stream creation and closing from IPC to Mojo (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: remove content files Created 4 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/mojo/common/media_type_converters.h
diff --git a/media/mojo/common/media_type_converters.h b/media/mojo/common/media_type_converters.h
index 10b4d3e249273e7ccf5527ab3b693f4da8547835..f7c090dce19a7fd8df822237a9c6ecbbdb75ed90 100644
--- a/media/mojo/common/media_type_converters.h
+++ b/media/mojo/common/media_type_converters.h
@@ -15,6 +15,7 @@
namespace media {
class AudioBuffer;
class AudioDecoderConfig;
+class AudioParameters;
class DecoderBuffer;
class DecryptConfig;
class EncryptionScheme;
@@ -30,6 +31,20 @@ struct SubsampleEntry;
namespace mojo {
template <>
+struct TypeConverter<media::interfaces::AudioOutputStreamParametersPtr,
+ media::AudioParameters> {
+ static media::interfaces::AudioOutputStreamParametersPtr Convert(
+ const media::AudioParameters& input);
+};
+
+template <>
+struct TypeConverter<media::AudioParameters,
+ media::interfaces::AudioOutputStreamParametersPtr> {
+ static media::AudioParameters Convert(
+ const media::interfaces::AudioOutputStreamParametersPtr& input);
+};
+
+template <>
struct TypeConverter<media::interfaces::EncryptionSchemePtr,
media::EncryptionScheme> {
static media::interfaces::EncryptionSchemePtr Convert(

Powered by Google App Engine
This is Rietveld 408576698