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 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
70 IPC_STRUCT_TRAITS_MEMBER(handle) | 70 IPC_STRUCT_TRAITS_MEMBER(handle) |
71 IPC_STRUCT_TRAITS_MEMBER(global_id) | 71 IPC_STRUCT_TRAITS_MEMBER(global_id) |
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 #endif | 74 #endif |
75 #if defined(USE_X11) | 75 #if defined(USE_X11) |
76 IPC_STRUCT_TRAITS_MEMBER(pixmap) | 76 IPC_STRUCT_TRAITS_MEMBER(pixmap) |
77 #endif | 77 #endif |
78 IPC_STRUCT_TRAITS_END() | 78 IPC_STRUCT_TRAITS_END() |
79 | 79 |
| 80 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format, |
| 81 gfx::GpuMemoryBuffer::FORMAT_LAST) |
| 82 |
| 83 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage, |
| 84 gfx::GpuMemoryBuffer::USAGE_LAST) |
| 85 |
80 #undef IPC_MESSAGE_EXPORT | 86 #undef IPC_MESSAGE_EXPORT |
81 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 87 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
82 | 88 |
83 #define IPC_MESSAGE_START ChildProcessMsgStart | 89 #define IPC_MESSAGE_START ChildProcessMsgStart |
84 | 90 |
85 // Messages sent from the browser to the child process. | 91 // Messages sent from the browser to the child process. |
86 | 92 |
87 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 93 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
88 // process that it's safe to shutdown. | 94 // process that it's safe to shutdown. |
89 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 95 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 #if defined(USE_TCMALLOC) | 186 #if defined(USE_TCMALLOC) |
181 // Reply to ChildProcessMsg_GetTcmallocStats. | 187 // Reply to ChildProcessMsg_GetTcmallocStats. |
182 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 188 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
183 std::string /* output */) | 189 std::string /* output */) |
184 #endif | 190 #endif |
185 | 191 |
186 // Asks the browser to create a gpu memory buffer. | 192 // Asks the browser to create a gpu memory buffer. |
187 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 193 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
188 uint32 /* width */, | 194 uint32 /* width */, |
189 uint32 /* height */, | 195 uint32 /* height */, |
190 uint32 /* internalformat */, | 196 gfx::GpuMemoryBuffer::Format, |
191 uint32 /* usage */, | 197 gfx::GpuMemoryBuffer::Usage, |
192 gfx::GpuMemoryBufferHandle) | 198 gfx::GpuMemoryBufferHandle) |
193 | 199 |
194 // Informs the browser that the child deleted a gpu memory buffer. | 200 // Informs the browser that the child deleted a gpu memory buffer. |
195 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 201 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
196 gfx::GpuMemoryBufferType, | 202 gfx::GpuMemoryBufferType, |
197 gfx::GpuMemoryBufferId) | 203 gfx::GpuMemoryBufferId) |
OLD | NEW |