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

Unified Diff: media/mojo/services/mojo_decoder_factory.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/mojo_decoder_factory.h ('k') | media/mojo/services/mojo_media_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/mojo/services/mojo_decoder_factory.cc
diff --git a/media/mojo/services/mojo_decoder_factory.cc b/media/mojo/services/mojo_decoder_factory.cc
index 660a7f9d828ed4601af874cc3b99b2f15301d61b..35d0fd7b2990eb4bc0735ebc4144aca0c6d337f1 100644
--- a/media/mojo/services/mojo_decoder_factory.cc
+++ b/media/mojo/services/mojo_decoder_factory.cc
@@ -29,16 +29,20 @@ void MojoDecoderFactory::CreateAudioDecoders(
&audio_decoder_ptr);
audio_decoders->push_back(
- new media::MojoAudioDecoder(task_runner, std::move(audio_decoder_ptr)));
+ new MojoAudioDecoder(task_runner, std::move(audio_decoder_ptr)));
#endif
}
void MojoDecoderFactory::CreateVideoDecoders(
scoped_refptr<base::SingleThreadTaskRunner> task_runner,
+ GpuVideoAcceleratorFactories* gpu_factories,
ScopedVector<VideoDecoder>* video_decoders) {
#if defined(ENABLE_MOJO_VIDEO_DECODER)
- // TODO(sandersd): Connect to mojo video decoder service and pass it here.
- video_decoders->push_back(new media::MojoVideoDecoder());
+ mojom::VideoDecoderPtr remote_decoder;
+ shell::GetInterface<mojom::VideoDecoder>(interface_provider_,
+ &remote_decoder);
+ video_decoders->push_back(new MojoVideoDecoder(task_runner, gpu_factories,
+ std::move(remote_decoder)));
#endif
}
« no previous file with comments | « media/mojo/services/mojo_decoder_factory.h ('k') | media/mojo/services/mojo_media_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698