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

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

Issue 2526953003: Add MediaGpuChannelManager::LookupChannel(). (Closed)
Patch Set: Implement MockGpuVideoAcceleratorFactories::GetCommandBufferRouteId(). Created 3 years, 11 months 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
« no previous file with comments | « media/mojo/interfaces/video_decoder.mojom ('k') | media/mojo/services/gpu_mojo_media_client.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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_
OLDNEW
« no previous file with comments | « media/mojo/interfaces/video_decoder.mojom ('k') | media/mojo/services/gpu_mojo_media_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698