Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 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 | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | |
| 6 #define MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | |
| 7 | |
| 8 #include <memory> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 #include "base/memory/ref_counted.h" | |
| 12 #include "base/single_thread_task_runner.h" | |
| 13 #include "media/mojo/services/mojo_media_client.h" | |
| 14 | |
| 15 namespace media { | |
| 16 | |
| 17 class GpuMojoMediaClient : public MojoMediaClient { | |
|
xhwang
2016/04/20 21:09:27
Do you need some more gpu stuff in this client? Sh
sandersd (OOO until July 31)
2016/04/20 21:16:07
We will need some more, yes. It probably should go
| |
| 18 public: | |
| 19 GpuMojoMediaClient( | |
| 20 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner); | |
|
xhwang
2016/04/20 21:09:27
explicit
| |
| 21 ~GpuMojoMediaClient() final; | |
| 22 | |
| 23 // MojoMediaClient implementation. | |
| 24 std::unique_ptr<AudioDecoder> CreateAudioDecoder( | |
| 25 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; | |
| 26 std::unique_ptr<VideoDecoder> CreateVideoDecoder() final; | |
| 27 std::unique_ptr<CdmFactory> CreateCdmFactory( | |
| 28 shell::mojom::InterfaceProvider* interface_provider) final; | |
| 29 | |
| 30 private: | |
| 31 scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; | |
|
xhwang
2016/04/20 21:09:27
Add a comment why we need this.
| |
| 32 | |
| 33 DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient); | |
| 34 }; | |
| 35 | |
| 36 } // namespace media | |
| 37 | |
| 38 #endif // MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ | |
| OLD | NEW |