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 52 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
63 | 63 |
64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, | 64 IPC_ENUM_TRAITS_MAX_VALUE(gfx::GpuMemoryBufferType, |
65 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) | 65 gfx::GPU_MEMORY_BUFFER_TYPE_LAST) |
66 | 66 |
67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) | 67 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferHandle) |
68 IPC_STRUCT_TRAITS_MEMBER(id) | 68 IPC_STRUCT_TRAITS_MEMBER(id) |
69 IPC_STRUCT_TRAITS_MEMBER(type) | 69 IPC_STRUCT_TRAITS_MEMBER(type) |
70 IPC_STRUCT_TRAITS_MEMBER(handle) | 70 IPC_STRUCT_TRAITS_MEMBER(handle) |
71 IPC_STRUCT_TRAITS_END() | 71 IPC_STRUCT_TRAITS_END() |
72 | 72 |
| 73 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferId) |
| 74 IPC_STRUCT_TRAITS_MEMBER(id) |
| 75 IPC_STRUCT_TRAITS_END() |
| 76 |
73 #undef IPC_MESSAGE_EXPORT | 77 #undef IPC_MESSAGE_EXPORT |
74 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT | 78 #define IPC_MESSAGE_EXPORT CONTENT_EXPORT |
75 | 79 |
76 #define IPC_MESSAGE_START ChildProcessMsgStart | 80 #define IPC_MESSAGE_START ChildProcessMsgStart |
77 | 81 |
78 // Messages sent from the browser to the child process. | 82 // Messages sent from the browser to the child process. |
79 | 83 |
80 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child | 84 // Sent in response to ChildProcessHostMsg_ShutdownRequest to tell the child |
81 // process that it's safe to shutdown. | 85 // process that it's safe to shutdown. |
82 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) | 86 IPC_MESSAGE_CONTROL0(ChildProcessMsg_Shutdown) |
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, | 182 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, |
179 cc::SharedBitmapId) | 183 cc::SharedBitmapId) |
180 | 184 |
181 #if defined(USE_TCMALLOC) | 185 #if defined(USE_TCMALLOC) |
182 // Reply to ChildProcessMsg_GetTcmallocStats. | 186 // Reply to ChildProcessMsg_GetTcmallocStats. |
183 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, | 187 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_TcmallocStats, |
184 std::string /* output */) | 188 std::string /* output */) |
185 #endif | 189 #endif |
186 | 190 |
187 // Asks the browser to create a gpu memory buffer. | 191 // Asks the browser to create a gpu memory buffer. |
188 IPC_SYNC_MESSAGE_CONTROL4_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 192 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
| 193 gfx::GpuMemoryBufferId /* new_id */, |
189 uint32 /* width */, | 194 uint32 /* width */, |
190 uint32 /* height */, | 195 uint32 /* height */, |
191 gfx::BufferFormat, | 196 gfx::BufferFormat, |
192 gfx::BufferUsage, | 197 gfx::BufferUsage, |
193 gfx::GpuMemoryBufferHandle) | 198 gfx::GpuMemoryBufferHandle) |
194 | 199 |
195 // Informs the browser that the child deleted a gpu memory buffer. | 200 // Informs the browser that the child deleted a gpu memory buffer. |
196 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, | 201 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_DeletedGpuMemoryBuffer, |
197 gfx::GpuMemoryBufferId, | 202 gfx::GpuMemoryBufferId, |
198 uint32 /* sync_point */) | 203 uint32 /* sync_point */) |
199 | 204 |
200 // Asks the browser to create a block of discardable shared memory for the | 205 // Asks the browser to create a block of discardable shared memory for the |
201 // child process. | 206 // child process. |
202 IPC_SYNC_MESSAGE_CONTROL2_1( | 207 IPC_SYNC_MESSAGE_CONTROL2_1( |
203 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, | 208 ChildProcessHostMsg_SyncAllocateLockedDiscardableSharedMemory, |
204 uint32 /* size */, | 209 uint32 /* size */, |
205 content::DiscardableSharedMemoryId, | 210 content::DiscardableSharedMemoryId, |
206 base::SharedMemoryHandle) | 211 base::SharedMemoryHandle) |
207 | 212 |
208 // Informs the browser that the child deleted a block of discardable shared | 213 // Informs the browser that the child deleted a block of discardable shared |
209 // memory. | 214 // memory. |
210 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 215 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
211 content::DiscardableSharedMemoryId) | 216 content::DiscardableSharedMemoryId) |
OLD | NEW |