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 MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ | 5 #ifndef MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ | 6 #define MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
7 | 7 |
8 #include <memory> | 8 #include <memory> |
9 | 9 |
10 #include "ipc/ipc_listener.h" | 10 #include "ipc/ipc_listener.h" |
(...skipping 24 matching lines...) Expand all Loading... |
35 | 35 |
36 private: | 36 private: |
37 friend class MediaChannelDispatchHelper; | 37 friend class MediaChannelDispatchHelper; |
38 | 38 |
39 // IPC::Listener implementation: | 39 // IPC::Listener implementation: |
40 bool OnMessageReceived(const IPC::Message& message) override; | 40 bool OnMessageReceived(const IPC::Message& message) override; |
41 | 41 |
42 // Message handlers. | 42 // Message handlers. |
43 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg); | 43 void OnCreateJpegDecoder(int32_t route_id, IPC::Message* reply_msg); |
44 void OnCreateVideoDecoder(int32_t command_buffer_route_id, | 44 void OnCreateVideoDecoder(int32_t command_buffer_route_id, |
45 const media::VideoDecodeAccelerator::Config& config, | 45 const VideoDecodeAccelerator::Config& config, |
46 int32_t route_id, | 46 int32_t route_id, |
47 IPC::Message* reply_message); | 47 IPC::Message* reply_message); |
48 void OnCreateVideoEncoder(int32_t command_buffer_route_id, | 48 void OnCreateVideoEncoder(int32_t command_buffer_route_id, |
49 const media::CreateVideoEncoderParams& params, | 49 const CreateVideoEncoderParams& params, |
50 IPC::Message* reply_message); | 50 IPC::Message* reply_message); |
51 | 51 |
52 gpu::GpuChannel* const channel_; | 52 gpu::GpuChannel* const channel_; |
53 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; | 53 std::unique_ptr<GpuJpegDecodeAccelerator> jpeg_decoder_; |
54 DISALLOW_COPY_AND_ASSIGN(MediaChannel); | 54 DISALLOW_COPY_AND_ASSIGN(MediaChannel); |
55 }; | 55 }; |
56 | 56 |
57 } // namespace media | 57 } // namespace media |
58 | 58 |
59 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ | 59 #endif // MEDIA_GPU_IPC_SERVICE_MEDIA_CHANNEL_H_ |
OLD | NEW |