OLD | NEW |
---|---|
(Empty) | |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | |
2 // Use of this source code is governed by a BSD-style license that can be | |
3 // found in the LICENSE file. | |
4 | |
5 #ifndef MEDIA_FILTERS_DEFAULT_RENDERER_FACTORY_H_ | |
6 #define MEDIA_FILTERS_DEFAULT_RENDERER_FACTORY_H_ | |
7 | |
8 #include "base/callback.h" | |
9 #include "media/base/media_export.h" | |
10 #include "media/base/renderer_factory.h" | |
11 | |
12 namespace media { | |
13 | |
14 class AudioHardwareConfig; | |
15 class AudioRendererSink; | |
16 class GpuVideoAcceleratorFactories; | |
17 class MediaLog; | |
18 | |
19 // The default factory class for creating RendererImpl. | |
20 class MEDIA_EXPORT DefaultRendererFactory : public RendererFactory { | |
gunsch
2014/12/09 04:26:09
naming nit: aren't specific implementations of int
xhwang
2014/12/09 18:05:52
Hmm, I don't think we are following this model in
gunsch
2014/12/09 18:08:29
Ah yeah, I guess that's not really consistent code
| |
21 public: | |
22 DefaultRendererFactory( | |
23 const scoped_refptr<MediaLog>& media_log, | |
24 const scoped_refptr<GpuVideoAcceleratorFactories>& gpu_factories, | |
25 const AudioHardwareConfig& audio_hardware_config); | |
26 ~DefaultRendererFactory() final; | |
27 | |
28 scoped_ptr<Renderer> CreateRenderer( | |
29 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | |
30 AudioRendererSink* audio_renderer_sink) final; | |
31 | |
32 private: | |
33 scoped_refptr<MediaLog> media_log_; | |
34 | |
35 // Factories for supporting video accelerators. May be null. | |
36 scoped_refptr<GpuVideoAcceleratorFactories> gpu_factories_; | |
37 | |
38 const AudioHardwareConfig& audio_hardware_config_; | |
39 | |
40 DISALLOW_COPY_AND_ASSIGN(DefaultRendererFactory); | |
41 }; | |
42 | |
43 } // namespace media | |
44 | |
45 #endif // MEDIA_FILTERS_DEFAULT_RENDERER_FACTORY_H_ | |
OLD | NEW |