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 69 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
80 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) | 80 IPC_STRUCT_TRAITS_MEMBER(io_surface_id) |
81 #endif | 81 #endif |
82 #if defined(OS_ANDROID) | 82 #if defined(OS_ANDROID) |
83 IPC_STRUCT_TRAITS_MEMBER(surface_texture_id) | 83 IPC_STRUCT_TRAITS_MEMBER(surface_texture_id) |
84 #endif | 84 #endif |
85 #if defined(USE_X11) | 85 #if defined(USE_X11) |
86 IPC_STRUCT_TRAITS_MEMBER(pixmap) | 86 IPC_STRUCT_TRAITS_MEMBER(pixmap) |
87 #endif | 87 #endif |
88 IPC_STRUCT_TRAITS_END() | 88 IPC_STRUCT_TRAITS_END() |
89 | 89 |
| 90 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Format, |
| 91 gfx::GpuMemoryBuffer::FORMAT_LAST) |
| 92 |
| 93 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBuffer::Usage, |
| 94 gfx::GpuMemoryBuffer::USAGE_LAST) |
| 95 |
90 #undef IPC_MESSAGE_EXPORT | 96 #undef IPC_MESSAGE_EXPORT |
91 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 97 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
92 | 98 |
93 #define IPC_MESSAGE_START ChildProcessMsgStart | 99 #define IPC_MESSAGE_START ChildProcessMsgStart |
94 | 100 |
95 // Messages sent from the browser to the child process. | 101 // Messages sent from the browser to the child process. |
96 | 102 |
97 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 103 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
98 // process that it's safe to shutdown. | 104 // process that it's safe to shutdown. |
99 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 105 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
(...skipping 90 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
190 #if defined(USE_TCMALLOC) | 196 #if defined(USE_TCMALLOC) |
191 // Reply to ChildProcessMsg_GetTcmallocStats. | 197 // Reply to ChildProcessMsg_GetTcmallocStats. |
192 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 198 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
193 std::string /* output */) | 199 std::string /* output */) |
194 #endif | 200 #endif |
195 | 201 |
196 // Asks the browser to create a gpu memory buffer. | 202 // Asks the browser to create a gpu memory buffer. |
197 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 203 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
198 uint32 /* width */, | 204 uint32 /* width */, |
199 uint32 /* height */, | 205 uint32 /* height */, |
200 uint32 /* internalformat */, | 206 gfx::GpuMemoryBuffer::Format, |
201 uint32 /* usage */, | 207 gfx::GpuMemoryBuffer::Usage, |
202 gfx::GpuMemoryBufferHandle) | 208 gfx::GpuMemoryBufferHandle) |
203 | 209 |
204 // Informs the browser that the child deleted a gpu memory buffer. | 210 // Informs the browser that the child deleted a gpu memory buffer. |
205 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 211 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
206 gfx::GpuMemoryBufferType, | 212 gfx::GpuMemoryBufferType, |
207 gfx::GpuMemoryBufferId) | 213 gfx::GpuMemoryBufferId) |
OLD | NEW |