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
3 // found in the LICENSE file.
4 
5 #ifndef MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
6 #define MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
7 
8 #include "media/base/bitstream_buffer.h"
9 #include "media/gpu/ipc/common/media_param_traits_macros.h"
10 
11 namespace IPC {
12 
13 template <>
14 struct ParamTraits<media::BitstreamBuffer> {
15   using param_type = media::BitstreamBuffer;
16   static void Write(base::Pickle* m, const param_type& p);
17   static bool Read(const base::Pickle* m,
18                    base::PickleIterator* iter,
19                    param_type* r);
20   static void Log(const param_type& p, std::string* l);
21 };
22 
23 }  // namespace IPC
24 
25 #endif  // MEDIA_GPU_IPC_COMMON_MEDIA_PARAM_TRAITS_H_
26