Chromium Code Reviews| Index: media/mojo/services/gpu_mojo_media_client.h |
| diff --git a/media/mojo/services/gpu_mojo_media_client.h b/media/mojo/services/gpu_mojo_media_client.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..db8aba34b0ca7be8a0850a93464c92c8278ae9ae |
| --- /dev/null |
| +++ b/media/mojo/services/gpu_mojo_media_client.h |
| @@ -0,0 +1,38 @@ |
| +// Copyright 2016 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |
| +#define MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |
| + |
| +#include <memory> |
| + |
| +#include "base/macros.h" |
| +#include "base/memory/ref_counted.h" |
| +#include "base/single_thread_task_runner.h" |
| +#include "media/mojo/services/mojo_media_client.h" |
| + |
| +namespace media { |
| + |
| +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
|
| + public: |
| + GpuMojoMediaClient( |
| + scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner); |
|
xhwang
2016/04/20 21:09:27
explicit
|
| + ~GpuMojoMediaClient() final; |
| + |
| + // MojoMediaClient implementation. |
| + std::unique_ptr<AudioDecoder> CreateAudioDecoder( |
| + scoped_refptr<base::SingleThreadTaskRunner> task_runner) final; |
| + std::unique_ptr<VideoDecoder> CreateVideoDecoder() final; |
| + std::unique_ptr<CdmFactory> CreateCdmFactory( |
| + shell::mojom::InterfaceProvider* interface_provider) final; |
| + |
| + private: |
| + scoped_refptr<base::SingleThreadTaskRunner> gpu_task_runner_; |
|
xhwang
2016/04/20 21:09:27
Add a comment why we need this.
|
| + |
| + DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient); |
| +}; |
| + |
| +} // namespace media |
| + |
| +#endif // MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_ |