OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 // Singly or multiply-included shared traits file depending upon circumstances. | 5 // Singly or multiply-included shared traits file depending upon circumstances. |
6 // This allows the use of IPC serialization macros in more than one IPC message | 6 // This allows the use of IPC serialization macros in more than one IPC message |
7 // file. | 7 // file. |
8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ | 8 #ifndef UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ | 9 #define UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
10 | 10 |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
44 #elif defined(OS_MACOSX) | 44 #elif defined(OS_MACOSX) |
45 IPC_STRUCT_TRAITS_MEMBER(mach_port) | 45 IPC_STRUCT_TRAITS_MEMBER(mach_port) |
46 #endif | 46 #endif |
47 IPC_STRUCT_TRAITS_END() | 47 IPC_STRUCT_TRAITS_END() |
48 | 48 |
49 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) | 49 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) |
50 IPC_STRUCT_TRAITS_MEMBER(id) | 50 IPC_STRUCT_TRAITS_MEMBER(id) |
51 IPC_STRUCT_TRAITS_END() | 51 IPC_STRUCT_TRAITS_END() |
52 | 52 |
53 #if defined(USE_OZONE) | 53 #if defined(USE_OZONE) |
54 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapPlane) | |
55 IPC_STRUCT_TRAITS_MEMBER(stride) | |
56 IPC_STRUCT_TRAITS_MEMBER(offset) | |
57 IPC_STRUCT_TRAITS_MEMBER(modifier) | |
58 IPC_STRUCT_TRAITS_END() | |
59 | |
60 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle) | 54 IPC_STRUCT_TRAITS_BEGIN(gfx::NativePixmapHandle) |
61 IPC_STRUCT_TRAITS_MEMBER(fds) | 55 IPC_STRUCT_TRAITS_MEMBER(fds) |
62 IPC_STRUCT_TRAITS_MEMBER(planes) | 56 IPC_STRUCT_TRAITS_MEMBER(strides_and_offsets) |
63 IPC_STRUCT_TRAITS_END() | 57 IPC_STRUCT_TRAITS_END() |
64 #endif | 58 #endif |
65 | 59 |
66 #undef IPC_MESSAGE_EXPORT | 60 #undef IPC_MESSAGE_EXPORT |
67 #define IPC_MESSAGE_EXPORT | 61 #define IPC_MESSAGE_EXPORT |
68 | 62 |
69 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ | 63 #endif // UI_GFX_IPC_GFX_PARAM_TRAITS_MACROS_H_ |
OLD | NEW |