OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // Common IPC messages used for child processes. | 5 // Common IPC messages used for child processes. |
6 // Multiply-included message file, hence no include guard. | 6 // Multiply-included message file, hence no include guard. |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
64 | 64 |
65 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 65 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
66 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 66 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
67 | 67 |
68 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 68 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
69 IPC_STRUCT_TRAITS_MEMBER(id) | 69 IPC_STRUCT_TRAITS_MEMBER(id) |
70 IPC_STRUCT_TRAITS_MEMBER(type) | 70 IPC_STRUCT_TRAITS_MEMBER(type) |
71 IPC_STRUCT_TRAITS_MEMBER(handle) | 71 IPC_STRUCT_TRAITS_MEMBER(handle) |
72 #if defined(OS_MACOSX) | 72 #if defined(OS_MACOSX) |
73 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) | 73 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) |
| 74 #elif defined(USE_OZONE) |
| 75 IPC_STRUCT_TRAITS_MEMBER(stride) |
| 76 IPC_STRUCT_TRAITS_MEMBER(device_handle) |
74 #endif | 77 #endif |
75 IPC_STRUCT_TRAITS_END() | 78 IPC_STRUCT_TRAITS_END() |
76 | 79 |
77 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format, | 80 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format, |
78 gfx::GpuMemoryBuffer::FORMAT_LAST) | 81 gfx::GpuMemoryBuffer::FORMAT_LAST) |
79 | 82 |
80 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage, | 83 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage, |
81 gfx::GpuMemoryBuffer::USAGE_LAST) | 84 gfx::GpuMemoryBuffer::USAGE_LAST) |
82 | 85 |
83 #undef IPC_MESSAGE_EXPORT | 86 #undef IPC_MESSAGE_EXPORT |
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
205 IPC_SYNC_MESSAGE_CONTROL2_1( | 208 IPC_SYNC_MESSAGE_CONTROL2_1( |
206 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 209 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
207 uint32 /* size */, | 210 uint32 /* size */, |
208 content::DiscardableSharedMemoryId, | 211 content::DiscardableSharedMemoryId, |
209 base::SharedMemoryHandle) | 212 base::SharedMemoryHandle) |
210 | 213 |
211 // Informs the browser that the child deleted a block of discardable shared | 214 // Informs the browser that the child deleted a block of discardable shared |
212 // memory. | 215 // memory. |
213 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 216 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
214 content::DiscardableSharedMemoryId) | 217 content::DiscardableSharedMemoryId) |
OLD | NEW |