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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include "gpu/config/gpu_info.h" | 8 #include "gpu/config/gpu_info.h" |
9 #include "gpu/ipc/common/gpu_param_traits_macros.h" | 9 #include "gpu/ipc/common/gpu_param_traits_macros.h" |
10 #include "ipc/ipc_message_macros.h" | 10 #include "ipc/ipc_message_macros.h" |
11 #include "ipc/param_traits_macros.h" | 11 #include "ipc/param_traits_macros.h" |
12 #include "media/base/bitstream_buffer.h" | 12 #include "media/base/bitstream_buffer.h" |
13 #include "media/gpu/ipc/common/media_param_traits.h" | 13 #include "media/gpu/ipc/common/media_param_traits.h" |
14 #include "media/video/jpeg_decode_accelerator.h" | 14 #include "media/video/jpeg_decode_accelerator.h" |
15 #include "media/video/video_decode_accelerator.h" | 15 #include "media/video/video_decode_accelerator.h" |
16 #include "media/video/video_encode_accelerator.h" | 16 #include "media/video/video_encode_accelerator.h" |
17 #include "ui/gfx/ipc/gfx_param_traits.h" | 17 #include "ui/gfx/ipc/gfx_param_traits.h" |
18 | 18 |
19 #define IPC_MESSAGE_START MediaMsgStart | 19 #define IPC_MESSAGE_START MediaMsgStart |
20 | 20 |
21 #ifndef MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ | 21 #ifndef MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ |
22 #define MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ | 22 #define MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ |
23 | 23 |
24 namespace IPC { | 24 namespace IPC { |
25 template <> | 25 template <> |
26 struct ParamTraits<media::BitstreamBuffer> { | 26 struct ParamTraits<media::BitstreamBuffer> { |
27 using param_type = media::BitstreamBuffer; | 27 using param_type = media::BitstreamBuffer; |
| 28 static void GetSize(base::PickleSizer* s, const param_type& p); |
28 static void Write(base::Pickle* m, const param_type& p); | 29 static void Write(base::Pickle* m, const param_type& p); |
29 static bool Read(const base::Pickle* m, | 30 static bool Read(const base::Pickle* m, |
30 base::PickleIterator* iter, | 31 base::PickleIterator* iter, |
31 param_type* r); | 32 param_type* r); |
32 static void Log(const param_type& p, std::string* l); | 33 static void Log(const param_type& p, std::string* l); |
33 }; | 34 }; |
34 | 35 |
35 } // namespace IPC | 36 } // namespace IPC |
36 | 37 |
37 #endif // MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ | 38 #endif // MEDIA_GPU_IPC_COMMON_MEDIA_MESSAGES_H_ |
(...skipping 192 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
230 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 231 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
231 | 232 |
232 //------------------------------------------------------------------------------ | 233 //------------------------------------------------------------------------------ |
233 // Accelerated JPEG Decoder Host Messages | 234 // Accelerated JPEG Decoder Host Messages |
234 // These messages are sent from the GPU process to Browser process. | 235 // These messages are sent from the GPU process to Browser process. |
235 // | 236 // |
236 // Report decode status. | 237 // Report decode status. |
237 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 238 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
238 int32_t, /* bitstream_buffer_id */ | 239 int32_t, /* bitstream_buffer_id */ |
239 media::JpegDecodeAccelerator::Error /* error */) | 240 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |