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

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: Windows needs some more headers, apaprently. 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
« no previous file with comments | « media/mojo/services/service_factory_impl.h ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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)
« no previous file with comments | « media/mojo/services/service_factory_impl.h ('k') | media/mojo/services/test_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698