| 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 <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <string> | 10 #include <string> |
| (...skipping 162 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 // Release the cached font | 173 // Release the cached font |
| 174 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) | 174 IPC_MESSAGE_CONTROL0(ChildProcessHostMsg_ReleaseCachedFonts) |
| 175 #endif // defined(OS_WIN) | 175 #endif // defined(OS_WIN) |
| 176 | 176 |
| 177 // Asks the browser to create a block of shared memory for the child process to | 177 // Asks the browser to create a block of shared memory for the child process to |
| 178 // fill in and pass back to the browser. | 178 // fill in and pass back to the browser. |
| 179 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, | 179 IPC_SYNC_MESSAGE_CONTROL1_1(ChildProcessHostMsg_SyncAllocateSharedMemory, |
| 180 uint32_t /* buffer size */, | 180 uint32_t /* buffer size */, |
| 181 base::SharedMemoryHandle) | 181 base::SharedMemoryHandle) |
| 182 | 182 |
| 183 // Asks the browser to create a block of shared memory for the child process to | |
| 184 // fill in and pass back to the browser. | |
| 185 IPC_SYNC_MESSAGE_CONTROL2_1(ChildProcessHostMsg_SyncAllocateSharedBitmap, | |
| 186 uint32_t /* buffer size */, | |
| 187 cc::SharedBitmapId, | |
| 188 base::SharedMemoryHandle) | |
| 189 | |
| 190 // Informs the browser that the child allocated a shared bitmap. | |
| 191 IPC_MESSAGE_CONTROL3(ChildProcessHostMsg_AllocatedSharedBitmap, | |
| 192 uint32_t /* buffer size */, | |
| 193 base::SharedMemoryHandle, | |
| 194 cc::SharedBitmapId) | |
| 195 | |
| 196 // Informs the browser that the child deleted a shared bitmap. | |
| 197 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedSharedBitmap, | |
| 198 cc::SharedBitmapId) | |
| 199 | |
| 200 // Asks the browser to create a gpu memory buffer. | 183 // Asks the browser to create a gpu memory buffer. |
| 201 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, | 184 IPC_SYNC_MESSAGE_CONTROL5_1(ChildProcessHostMsg_SyncAllocateGpuMemoryBuffer, |
| 202 gfx::GpuMemoryBufferId /* new_id */, | 185 gfx::GpuMemoryBufferId /* new_id */, |
| 203 uint32_t /* width */, | 186 uint32_t /* width */, |
| 204 uint32_t /* height */, | 187 uint32_t /* height */, |
| 205 gfx::BufferFormat, | 188 gfx::BufferFormat, |
| 206 gfx::BufferUsage, | 189 gfx::BufferUsage, |
| 207 gfx::GpuMemoryBufferHandle) | 190 gfx::GpuMemoryBufferHandle) |
| 208 | 191 |
| 209 // Informs the browser that the child deleted a gpu memory buffer. | 192 // Informs the browser that the child deleted a gpu memory buffer. |
| (...skipping 13 matching lines...) Expand all Loading... |
| 223 // memory. | 206 // memory. |
| 224 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, | 207 IPC_MESSAGE_CONTROL1(ChildProcessHostMsg_DeletedDiscardableSharedMemory, |
| 225 discardable_memory::DiscardableSharedMemoryId) | 208 discardable_memory::DiscardableSharedMemoryId) |
| 226 | 209 |
| 227 #if defined(OS_LINUX) | 210 #if defined(OS_LINUX) |
| 228 // Asks the browser to change the priority of thread. | 211 // Asks the browser to change the priority of thread. |
| 229 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, | 212 IPC_MESSAGE_CONTROL2(ChildProcessHostMsg_SetThreadPriority, |
| 230 base::PlatformThreadId, | 213 base::PlatformThreadId, |
| 231 base::ThreadPriority) | 214 base::ThreadPriority) |
| 232 #endif | 215 #endif |
| OLD | NEW |