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

Unified Diff: media/mojo/services/service_factory_impl.cc

Issue 1899363002: Finish plumbing MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: 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/services/service_factory_impl.cc
diff --git a/media/mojo/services/service_factory_impl.cc b/media/mojo/services/service_factory_impl.cc
index cb41cd4d80cb29366cc5736ed548df07e039c09d..ed418f54b013223f86036e0c81e6d71bda114339 100644
--- a/media/mojo/services/service_factory_impl.cc
+++ b/media/mojo/services/service_factory_impl.cc
@@ -23,6 +23,10 @@
#include "media/mojo/services/mojo_cdm_service.h"
#endif // defined(ENABLE_MOJO_CDM)
+#if defined(ENABLE_MOJO_VIDEO_DECODER)
+#include "media/mojo/services/mojo_video_decoder_service.h"
+#endif // defined(ENABLE_MOJO_VIDEO_DECODER)
+
namespace media {
ServiceFactoryImpl::ServiceFactoryImpl(
@@ -105,6 +109,13 @@ void ServiceFactoryImpl::CreateCdm(
#endif // defined(ENABLE_MOJO_CDM)
}
+void ServiceFactoryImpl::CreateVideoDecoder(
+ mojo::InterfaceRequest<interfaces::VideoDecoder> request) {
+#if defined(ENABLE_MOJO_VIDEO_DECODER)
+ new MojoVideoDecoderService(std::move(request), mojo_media_client_);
+#endif // defined(ENABLE_MOJO_AUDIO_DECODER)
+}
+
#if defined(ENABLE_MOJO_RENDERER)
RendererFactory* ServiceFactoryImpl::GetRendererFactory() {
if (!renderer_factory_) {

Powered by Google App Engine
This is Rietveld 408576698