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

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: Created 4 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
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..46081ad768cdc777bb5105c6c1b54a87dce59c10 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::AudioParametersPtr,
+ media::AudioParameters> {
+ static media::interfaces::AudioParametersPtr Convert(
+ const media::AudioParameters& input);
+};
+
+template <>
+struct TypeConverter<media::AudioParameters,
+ media::interfaces::AudioParametersPtr> {
+ static media::AudioParameters Convert(
+ const media::interfaces::AudioParametersPtr& input);
+};
+
+template <>
struct TypeConverter<media::interfaces::EncryptionSchemePtr,
media::EncryptionScheme> {
static media::interfaces::EncryptionSchemePtr Convert(

Powered by Google App Engine
This is Rietveld 408576698