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 CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_ | 5 #ifndef MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
6 #define CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_ | 6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
7 | 7 |
8 #include "content/common/gpu/media/gpu_jpeg_decode_accelerator.h" | |
9 #include "ipc/ipc_listener.h" | 8 #include "ipc/ipc_listener.h" |
10 #include "ipc/ipc_sender.h" | 9 #include "ipc/ipc_sender.h" |
| 10 #include "media/gpu/ipc/service/gpu_jpeg_decode_accelerator.h" |
11 #include "media/video/video_decode_accelerator.h" | 11 #include "media/video/video_decode_accelerator.h" |
12 | 12 |
13 namespace media { | 13 namespace media { |
14 struct CreateVideoEncoderParams; | 14 struct CreateVideoEncoderParams; |
15 } | 15 } |
16 | 16 |
17 namespace gpu { | 17 namespace gpu { |
18 class GpuChannel; | 18 class GpuChannel; |
19 class GpuCommandBufferStub; | 19 class GpuCommandBufferStub; |
20 } | 20 } |
21 | 21 |
22 namespace content { | 22 namespace media { |
23 | 23 |
24 class MediaChannelDispatchHelper; | 24 class MediaChannelDispatchHelper; |
25 | 25 |
26 class MediaChannel : public IPC::Listener, public IPC::Sender { | 26 class MediaChannel : public IPC::Listener, public IPC::Sender { |
27 public: | 27 public: |
28 explicit MediaChannel(gpu::GpuChannel* channel); | 28 explicit MediaChannel(gpu::GpuChannel* channel); |
29 ~MediaChannel() override; | 29 ~MediaChannel() override; |
30 | 30 |
31 // IPC::Sender implementation: | 31 // IPC::Sender implementation: |
32 bool Send(IPC::Message* msg) override; | 32 bool Send(IPC::Message* msg) override; |
(...skipping 12 matching lines...) Expand all Loading... |
45 IPC::Message* reply_message); | 45 IPC::Message* reply_message); |
46 void OnCreateVideoEncoder(int32_t command_buffer_route_id, | 46 void OnCreateVideoEncoder(int32_t command_buffer_route_id, |
47 const media::CreateVideoEncoderParams& params, | 47 const media::CreateVideoEncoderParams& params, |
48 IPC::Message* reply_message); | 48 IPC::Message* reply_message); |
49 | 49 |
50 gpu::GpuChannel* const channel_; | 50 gpu::GpuChannel* const channel_; |
51 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; | 51 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; |
52 DISALLOW_COPY_AND_ASSIGN(MediaChannel); | 52 DISALLOW_COPY_AND_ASSIGN(MediaChannel); |
53 }; | 53 }; |
54 | 54 |
55 } // namespace content | 55 } // namespace media |
56 | 56 |
57 #endif // CONTENT_COMMON_GPU_MEDIA_MEDIA_CHANNEL_H_ | 57 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
OLD | NEW |