Index: media/mojo/services/service_factory_impl.cc |
diff --git a/media/mojo/services/service_factory_impl.cc b/media/mojo/services/service_factory_impl.cc |
index ad060be56203f1f5ffc2a297fc366cdf21bdbf7a..ce1f2194a92a8160d74bad0afeec95e42d45012a 100644 |
--- a/media/mojo/services/service_factory_impl.cc |
+++ b/media/mojo/services/service_factory_impl.cc |
@@ -5,6 +5,7 @@ |
#include "media/mojo/services/service_factory_impl.h" |
#include "base/logging.h" |
+#include "base/message_loop/message_loop.h" |
#include "media/base/media_log.h" |
#include "media/mojo/services/mojo_media_client.h" |
#include "services/shell/public/interfaces/interface_provider.mojom.h" |
@@ -13,6 +14,10 @@ |
#include "media/mojo/services/mojo_audio_decoder_service.h" |
#endif // defined(ENABLE_MOJO_AUDIO_DECODER) |
+#if defined(ENABLE_MOJO_VIDEO_DECODER) |
+#include "media/mojo/services/mojo_video_decoder_service.h" |
+#endif // defined(ENABLE_MOJO_VIDEO_DECODER) |
+ |
#if defined(ENABLE_MOJO_RENDERER) |
#include "media/base/renderer_factory.h" |
#include "media/mojo/services/mojo_renderer_service.h" |
@@ -68,6 +73,13 @@ void ServiceFactoryImpl::CreateAudioDecoder( |
#endif // defined(ENABLE_MOJO_AUDIO_DECODER) |
} |
+void ServiceFactoryImpl::CreateVideoDecoder( |
+ mojom::VideoDecoderRequest request) { |
+#if defined(ENABLE_MOJO_VIDEO_DECODER) |
+ new MojoVideoDecoderService(std::move(request), mojo_media_client_); |
+#endif // defined(ENABLE_MOJO_VIDEO_DECODER) |
+} |
+ |
void ServiceFactoryImpl::CreateRenderer( |
mojo::InterfaceRequest<mojom::Renderer> request) { |
#if defined(ENABLE_MOJO_RENDERER) |