| Index: media/mojo/services/media_type_converters.h
|
| diff --git a/media/mojo/services/media_type_converters.h b/media/mojo/services/media_type_converters.h
|
| index 0133a9986310b40cac18babebac8fb8b977b08d3..92450c8d6f38a18ec5d73e3f2dfdd2ea36f68db2 100644
|
| --- a/media/mojo/services/media_type_converters.h
|
| +++ b/media/mojo/services/media_type_converters.h
|
| @@ -12,10 +12,12 @@
|
| #include "mojo/public/cpp/bindings/type_converter.h"
|
|
|
| namespace media {
|
| +class AudioBuffer;
|
| class AudioDecoderConfig;
|
| class DecoderBuffer;
|
| class DecryptConfig;
|
| class VideoDecoderConfig;
|
| +class VideoFrame;
|
| struct CdmConfig;
|
| struct CdmKeyInformation;
|
| struct SubsampleEntry;
|
| @@ -112,6 +114,32 @@ struct TypeConverter<media::CdmConfig, media::interfaces::CdmConfigPtr> {
|
| static media::CdmConfig Convert(const media::interfaces::CdmConfigPtr& input);
|
| };
|
|
|
| +template <>
|
| +struct TypeConverter<media::interfaces::AudioBufferPtr,
|
| + scoped_refptr<media::AudioBuffer>> {
|
| + static media::interfaces::AudioBufferPtr Convert(
|
| + const scoped_refptr<media::AudioBuffer>& input);
|
| +};
|
| +template <>
|
| +struct TypeConverter<scoped_refptr<media::AudioBuffer>,
|
| + media::interfaces::AudioBufferPtr> {
|
| + static scoped_refptr<media::AudioBuffer> Convert(
|
| + const media::interfaces::AudioBufferPtr& input);
|
| +};
|
| +
|
| +template <>
|
| +struct TypeConverter<media::interfaces::VideoFramePtr,
|
| + scoped_refptr<media::VideoFrame>> {
|
| + static media::interfaces::VideoFramePtr Convert(
|
| + const scoped_refptr<media::VideoFrame>& input);
|
| +};
|
| +template <>
|
| +struct TypeConverter<scoped_refptr<media::VideoFrame>,
|
| + media::interfaces::VideoFramePtr> {
|
| + static scoped_refptr<media::VideoFrame> Convert(
|
| + const media::interfaces::VideoFramePtr& input);
|
| +};
|
| +
|
| } // namespace mojo
|
|
|
| #endif // MEDIA_MOJO_SERVICES_MEDIA_TYPE_CONVERTERS_H_
|
|
|