OLD | NEW |
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 "base/single_thread_task_runner.h" | 7 #include "base/single_thread_task_runner.h" |
8 #include "media/mojo/interfaces/audio_decoder.mojom.h" | 8 #include "media/mojo/interfaces/audio_decoder.mojom.h" |
9 #include "media/mojo/services/mojo_audio_decoder.h" | 9 #include "media/mojo/services/mojo_audio_decoder.h" |
10 #include "media/mojo/services/mojo_video_decoder.h" | 10 #include "media/mojo/services/mojo_video_decoder.h" |
11 #include "mojo/shell/public/cpp/connect.h" | 11 #include "services/shell/public/cpp/connect.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 | 14 |
15 MojoDecoderFactory::MojoDecoderFactory( | 15 MojoDecoderFactory::MojoDecoderFactory( |
16 mojo::shell::mojom::InterfaceProvider* interface_provider) | 16 mojo::shell::mojom::InterfaceProvider* interface_provider) |
17 : interface_provider_(interface_provider) { | 17 : interface_provider_(interface_provider) { |
18 DCHECK(interface_provider_); | 18 DCHECK(interface_provider_); |
19 } | 19 } |
20 | 20 |
21 MojoDecoderFactory::~MojoDecoderFactory() {} | 21 MojoDecoderFactory::~MojoDecoderFactory() {} |
(...skipping 14 matching lines...) Expand all Loading... |
36 void MojoDecoderFactory::CreateVideoDecoders( | 36 void MojoDecoderFactory::CreateVideoDecoders( |
37 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 37 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
38 ScopedVector<VideoDecoder>* video_decoders) { | 38 ScopedVector<VideoDecoder>* video_decoders) { |
39 #if defined(ENABLE_MOJO_VIDEO_DECODER) | 39 #if defined(ENABLE_MOJO_VIDEO_DECODER) |
40 // TODO(sandersd): Connect to mojo video decoder service and pass it here. | 40 // TODO(sandersd): Connect to mojo video decoder service and pass it here. |
41 video_decoders->push_back(new media::MojoVideoDecoder()); | 41 video_decoders->push_back(new media::MojoVideoDecoder()); |
42 #endif | 42 #endif |
43 } | 43 } |
44 | 44 |
45 } // namespace media | 45 } // namespace media |
OLD | NEW |