| 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 #ifndef MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | 5 #ifndef MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |
| 6 #define MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | 6 #define MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |
| 7 | 7 |
| 8 #include <memory> | 8 #include <memory> |
| 9 | 9 |
| 10 #include "base/macros.h" | 10 #include "base/macros.h" |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 // is expected to be the GPU main thread task runner. | 23 // is expected to be the GPU main thread task runner. |
| 24 GpuMojoMediaClient( | 24 GpuMojoMediaClient( |
| 25 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner, | 25 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner, |
| 26 base::WeakPtr<MediaGpuChannelManager> media_gpu_channel_manager); | 26 base::WeakPtr<MediaGpuChannelManager> media_gpu_channel_manager); |
| 27 ~GpuMojoMediaClient() final; | 27 ~GpuMojoMediaClient() final; |
| 28 | 28 |
| 29 // MojoMediaClient implementation. | 29 // MojoMediaClient implementation. |
| 30 std::unique_ptr<AudioDecoder> CreateAudioDecoder( | 30 std::unique_ptr<AudioDecoder> CreateAudioDecoder( |
| 31 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; | 31 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; |
| 32 std::unique_ptr<VideoDecoder> CreateVideoDecoder( | 32 std::unique_ptr<VideoDecoder> CreateVideoDecoder( |
| 33 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; | 33 scoped_refptr<base::SingleThreadTaskRunner> task_runner, |
| 34 mojom::CommandBufferIdPtr command_buffer_id) final; |
| 34 std::unique_ptr<CdmFactory> CreateCdmFactory( | 35 std::unique_ptr<CdmFactory> CreateCdmFactory( |
| 35 service_manager::mojom::InterfaceProvider* interface_provider) final; | 36 service_manager::mojom::InterfaceProvider* interface_provider) final; |
| 36 | 37 |
| 37 private: | 38 private: |
| 38 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; | 39 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; |
| 39 base::WeakPtr<MediaGpuChannelManager> media_gpu_channel_manager_; | 40 base::WeakPtr<MediaGpuChannelManager> media_gpu_channel_manager_; |
| 40 | 41 |
| 41 DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient); | 42 DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient); |
| 42 }; | 43 }; |
| 43 | 44 |
| 44 } // namespace media | 45 } // namespace media |
| 45 | 46 |
| 46 #endif // MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | 47 #endif // MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |
| OLD | NEW |