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_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ |
6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ | 6 #define MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
56 // |this| to connect to other services. It is guaranteed to outlive |this|. | 56 // |this| to connect to other services. It is guaranteed to outlive |this|. |
57 virtual void Initialize(service_manager::Connector* connector); | 57 virtual void Initialize(service_manager::Connector* connector); |
58 | 58 |
59 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder( | 59 virtual std::unique_ptr<AudioDecoder> CreateAudioDecoder( |
60 scoped_refptr<base::SingleThreadTaskRunner> task_runner); | 60 scoped_refptr<base::SingleThreadTaskRunner> task_runner); |
61 | 61 |
62 // TODO(sandersd): |output_cb| should not be required. | 62 // TODO(sandersd): |output_cb| should not be required. |
63 // See https://crbug.com/733828. | 63 // See https://crbug.com/733828. |
64 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( | 64 virtual std::unique_ptr<VideoDecoder> CreateVideoDecoder( |
65 scoped_refptr<base::SingleThreadTaskRunner> task_runner, | 65 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 66 MediaLog* media_log, |
66 mojom::CommandBufferIdPtr command_buffer_id, | 67 mojom::CommandBufferIdPtr command_buffer_id, |
67 OutputWithReleaseMailboxCB output_cb); | 68 OutputWithReleaseMailboxCB output_cb); |
68 | 69 |
69 // Returns the output sink used for rendering audio on |audio_device_id|. | 70 // Returns the output sink used for rendering audio on |audio_device_id|. |
70 // May be null if the RendererFactory doesn't need an audio sink. | 71 // May be null if the RendererFactory doesn't need an audio sink. |
71 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink( | 72 virtual scoped_refptr<AudioRendererSink> CreateAudioRendererSink( |
72 const std::string& audio_device_id); | 73 const std::string& audio_device_id); |
73 | 74 |
74 // Returns the output sink used for rendering video. | 75 // Returns the output sink used for rendering video. |
75 // May be null if the RendererFactory doesn't need a video sink. | 76 // May be null if the RendererFactory doesn't need a video sink. |
(...skipping 10 matching lines...) Expand all Loading... |
86 virtual std::unique_ptr<CdmFactory> CreateCdmFactory( | 87 virtual std::unique_ptr<CdmFactory> CreateCdmFactory( |
87 service_manager::mojom::InterfaceProvider* host_interfaces); | 88 service_manager::mojom::InterfaceProvider* host_interfaces); |
88 | 89 |
89 protected: | 90 protected: |
90 MojoMediaClient(); | 91 MojoMediaClient(); |
91 }; | 92 }; |
92 | 93 |
93 } // namespace media | 94 } // namespace media |
94 | 95 |
95 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ | 96 #endif // MEDIA_MOJO_SERVICES_MOJO_MEDIA_CLIENT_H_ |
OLD | NEW |