Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1176)

Side by Side Diff: media/mojo/services/gpu_mojo_media_client.h

Issue 2382103002: media: Add GpuMojoMediaClient. (Closed)
Patch Set: Add GpuMojoMediaClient. Created 4 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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 MediaGpuChannelManager;
18
19 class GpuMojoMediaClient : public MojoMediaClient {
20 public:
21 GpuMojoMediaClient(
22 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner,
23 MediaGpuChannelManager* media_gpu_channel_manager);
24 ~GpuMojoMediaClient() final;
25
26 // MojoMediaClient implementation.
27 std::unique_ptr<AudioDecoder> CreateAudioDecoder(
28 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final;
29 std::unique_ptr<VideoDecoder> CreateVideoDecoder(
30 scoped_refptr<base::SingleThreadTaskRunner> task_runner) final;
31 std::unique_ptr<CdmFactory> CreateCdmFactory(
32 service_manager::mojom::InterfaceProvider* interface_provider) final;
33
34 private:
35 scoped_refptr<base::SingleThreadTaskRunner> media_task_runner_;
36 MediaGpuChannelManager* media_gpu_channel_manager_;
37
38 DISALLOW_COPY_AND_ASSIGN(GpuMojoMediaClient);
39 };
40
41 } // namespace media
42
43 #endif // MEDIA_MOJO_SERVICES_GPU_MOJO_MEDIA_CLIENT_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698