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

Side by Side Diff: media/mojo/clients/mojo_decoder_factory.h

Issue 2966643002: media: Plumb MediaLog to MojoVideoDecoderService. (Closed)
Patch Set: Swap client/service directory. Created 3 years, 5 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/clients/BUILD.gn ('k') | media/mojo/clients/mojo_decoder_factory.cc » ('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 #ifndef MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_ 5 #ifndef MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_
6 #define MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_ 6 #define MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
10 #include "media/base/decoder_factory.h" 10 #include "media/base/decoder_factory.h"
11 #include "services/service_manager/public/interfaces/interface_provider.mojom.h" 11 #include "services/service_manager/public/interfaces/interface_provider.mojom.h"
12 12
13 namespace media { 13 namespace media {
14 14
15 class MojoDecoderFactory : public DecoderFactory { 15 class MojoDecoderFactory : public DecoderFactory {
16 public: 16 public:
17 explicit MojoDecoderFactory( 17 explicit MojoDecoderFactory(
18 service_manager::mojom::InterfaceProvider* interface_provider); 18 service_manager::mojom::InterfaceProvider* interface_provider);
19 ~MojoDecoderFactory() final; 19 ~MojoDecoderFactory() final;
20 20
21 void CreateAudioDecoders( 21 void CreateAudioDecoders(
22 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 22 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
23 std::vector<std::unique_ptr<AudioDecoder>>* audio_decoders) final; 23 std::vector<std::unique_ptr<AudioDecoder>>* audio_decoders) final;
24 24
25 void CreateVideoDecoders( 25 void CreateVideoDecoders(
26 scoped_refptr<base::SingleThreadTaskRunner> task_runner, 26 scoped_refptr<base::SingleThreadTaskRunner> task_runner,
27 GpuVideoAcceleratorFactories* gpu_factories, 27 GpuVideoAcceleratorFactories* gpu_factories,
28 MediaLog* media_log,
28 std::vector<std::unique_ptr<VideoDecoder>>* video_decoders) final; 29 std::vector<std::unique_ptr<VideoDecoder>>* video_decoders) final;
29 30
30 private: 31 private:
31 service_manager::mojom::InterfaceProvider* interface_provider_; 32 service_manager::mojom::InterfaceProvider* interface_provider_;
32 33
33 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory); 34 DISALLOW_COPY_AND_ASSIGN(MojoDecoderFactory);
34 }; 35 };
35 36
36 } // namespace media 37 } // namespace media
37 38
38 #endif // MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_ 39 #endif // MEDIA_MOJO_CLIENTS_MOJO_DECODER_FACTORY_H_
OLDNEW
« no previous file with comments | « media/mojo/clients/BUILD.gn ('k') | media/mojo/clients/mojo_decoder_factory.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698