OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 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 | 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_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ | 5 #ifndef MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ |
6 #define MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ | 6 #define MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ |
7 | 7 |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/macros.h" | 9 #include "base/macros.h" |
10 #include "media/base/media_export.h" | 10 #include "media/base/media_export.h" |
(...skipping 12 matching lines...) Expand all Loading... |
23 public: | 23 public: |
24 DefaultRendererFactory(const scoped_refptr<MediaLog>& media_log, | 24 DefaultRendererFactory(const scoped_refptr<MediaLog>& media_log, |
25 GpuVideoAcceleratorFactories* gpu_factories, | 25 GpuVideoAcceleratorFactories* gpu_factories, |
26 const AudioHardwareConfig& audio_hardware_config); | 26 const AudioHardwareConfig& audio_hardware_config); |
27 ~DefaultRendererFactory() final; | 27 ~DefaultRendererFactory() final; |
28 | 28 |
29 scoped_ptr<Renderer> CreateRenderer( | 29 scoped_ptr<Renderer> CreateRenderer( |
30 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, | 30 const scoped_refptr<base::SingleThreadTaskRunner>& media_task_runner, |
31 const scoped_refptr<base::TaskRunner>& worker_task_runner, | 31 const scoped_refptr<base::TaskRunner>& worker_task_runner, |
32 AudioRendererSink* audio_renderer_sink, | 32 AudioRendererSink* audio_renderer_sink, |
33 VideoRendererSink* video_renderer_sink) final; | 33 VideoRendererSink* video_renderer_sink, |
| 34 const RequestSurfaceCB& request_surface_cb) final; |
34 | 35 |
35 private: | 36 private: |
36 scoped_refptr<MediaLog> media_log_; | 37 scoped_refptr<MediaLog> media_log_; |
37 | 38 |
38 // Factories for supporting video accelerators. May be null. | 39 // Factories for supporting video accelerators. May be null. |
39 GpuVideoAcceleratorFactories* gpu_factories_; | 40 GpuVideoAcceleratorFactories* gpu_factories_; |
40 | 41 |
41 const AudioHardwareConfig& audio_hardware_config_; | 42 const AudioHardwareConfig& audio_hardware_config_; |
42 | 43 |
43 DISALLOW_COPY_AND_ASSIGN(DefaultRendererFactory); | 44 DISALLOW_COPY_AND_ASSIGN(DefaultRendererFactory); |
44 }; | 45 }; |
45 | 46 |
46 } // namespace media | 47 } // namespace media |
47 | 48 |
48 #endif // MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ | 49 #endif // MEDIA_RENDERERS_DEFAULT_RENDERER_FACTORY_H_ |
OLD | NEW |