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

Side by Side Diff: media/mojo/services/mojo_decoder_factory.cc

Issue 1800953002: Add MojoVideoDecoder. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments. Created 4 years, 9 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 unified diff | Download patch
« no previous file with comments | « media/mojo/services/mojo_decoder_factory.h ('k') | media/mojo/services/mojo_video_decoder.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/mojo/services/mojo_decoder_factory.h" 5 #include "media/mojo/services/mojo_decoder_factory.h"
6 6
7 #include "media/mojo/interfaces/service_factory.mojom.h"
8 #include "media/mojo/services/mojo_audio_decoder.h" 7 #include "media/mojo/services/mojo_audio_decoder.h"
8 #include "media/mojo/services/mojo_video_decoder.h"
9 9
10 namespace media { 10 namespace media {
11 11
12 MojoDecoderFactory::MojoDecoderFactory( 12 MojoDecoderFactory::MojoDecoderFactory(
13 interfaces::ServiceFactory* service_factory) 13 mojo::shell::mojom::InterfaceProvider* interface_provider)
14 : service_factory_(service_factory) { 14 : interface_provider_(interface_provider) {
15 DCHECK(service_factory_); 15 DCHECK(interface_provider_);
16 } 16 }
17 17
18 MojoDecoderFactory::~MojoDecoderFactory() {} 18 MojoDecoderFactory::~MojoDecoderFactory() {}
19 19
20 void MojoDecoderFactory::CreateAudioDecoders( 20 void MojoDecoderFactory::CreateAudioDecoders(
21 ScopedVector<AudioDecoder>* audio_decoders) { 21 ScopedVector<AudioDecoder>* audio_decoders) {
22 #if defined(ENABLE_MOJO_AUDIO_DECODER)
22 // TODO(xhwang): Connect to mojo audio decoder service and pass it here. 23 // TODO(xhwang): Connect to mojo audio decoder service and pass it here.
23 audio_decoders->push_back(new media::MojoAudioDecoder()); 24 audio_decoders->push_back(new media::MojoAudioDecoder());
25 #endif
26 }
27
28 void MojoDecoderFactory::CreateVideoDecoders(
29 ScopedVector<VideoDecoder>* video_decoders) {
30 #if defined(ENABLE_MOJO_VIDEO_DECODER)
31 // TODO(sandersd): Connect to mojo video decoder service and pass it here.
32 video_decoders->push_back(new media::MojoVideoDecoder());
33 #endif
24 } 34 }
25 35
26 } // namespace media 36 } // namespace media
OLDNEW
« no previous file with comments | « media/mojo/services/mojo_decoder_factory.h ('k') | media/mojo/services/mojo_video_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698