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_COMMON_MEDIA_PARAM_TRAITS_H_ | 5 #ifndef MEDIA_CAPTURE_IPC_CAPTURE_PARAM_TRAITS_H_ |
6 #define MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_ | 6 #define MEDIA_CAPTURE_IPC_CAPTURE_PARAM_TRAITS_H_ |
7 | 7 |
8 #include "media/base/bitstream_buffer.h" | 8 #include "ipc/ipc_message.h" |
9 #include "media/gpu/ipc/common/media_param_traits_macros.h" | 9 #include "ipc/ipc_param_traits.h" |
| 10 #include "media/capture/ipc/capture_param_traits_macros.h" |
| 11 |
| 12 namespace media { |
| 13 struct VideoCaptureFormat; |
| 14 } |
10 | 15 |
11 namespace IPC { | 16 namespace IPC { |
12 | 17 |
13 template <> | 18 template <> |
14 struct ParamTraits<media::BitstreamBuffer> { | 19 struct ParamTraits<media::VideoCaptureFormat> { |
15 using param_type = media::BitstreamBuffer; | 20 typedef media::VideoCaptureFormat param_type; |
16 static void GetSize(base::PickleSizer* s, const param_type& p); | 21 static void GetSize(base::PickleSizer* s, const param_type& p); |
17 static void Write(base::Pickle* m, const param_type& p); | 22 static void Write(base::Pickle* m, const param_type& p); |
18 static bool Read(const base::Pickle* m, | 23 static bool Read(const base::Pickle* m, |
19 base::PickleIterator* iter, | 24 base::PickleIterator* iter, |
20 param_type* r); | 25 param_type* r); |
21 static void Log(const param_type& p, std::string* l); | 26 static void Log(const param_type& p, std::string* l); |
22 }; | 27 }; |
23 | 28 |
24 } // namespace IPC | 29 } // namespace IPC |
25 | 30 |
26 #endif // MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_ | 31 #endif // MEDIA_CAPTURE_IPC_CAPTURE_PARAM_TRAITS_H_ |
OLD | NEW |