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 // Multiply-included message file, hence no include guard here, but see below | 5 // Multiply-included message file, hence no include guard here, but see below |
6 // for a much smaller-than-usual include guard section. | 6 // for a much smaller-than-usual include guard section. |
7 | 7 |
8 #include <vector> | 8 #include <vector> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 198 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
209 // Tells the GPU process to hang. | 209 // Tells the GPU process to hang. |
210 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 210 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
211 | 211 |
212 //------------------------------------------------------------------------------ | 212 //------------------------------------------------------------------------------ |
213 // GPU Host Messages | 213 // GPU Host Messages |
214 // These are messages to the browser. | 214 // These are messages to the browser. |
215 | 215 |
216 // A renderer sends this when it wants to create a connection to the GPU | 216 // A renderer sends this when it wants to create a connection to the GPU |
217 // process. The browser will create the GPU process if necessary, and will | 217 // process. The browser will create the GPU process if necessary, and will |
218 // return a handle to the channel via a GpuChannelEstablished message. | 218 // return a handle to the channel via a GpuChannelEstablished message. |
219 IPC_SYNC_MESSAGE_CONTROL1_4(GpuHostMsg_EstablishGpuChannel, | 219 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
220 content::CauseForGpuLaunch, | 220 content::CauseForGpuLaunch, |
221 int /* client id */, | 221 int /* client id */, |
222 IPC::ChannelHandle /* handle to channel */, | 222 IPC::ChannelHandle /* handle to channel */, |
223 base::ProcessHandle /* renderer_process_for_gpu */, | |
224 content::GPUInfo /* stats about GPU process*/) | 223 content::GPUInfo /* stats about GPU process*/) |
225 | 224 |
226 // A renderer sends this to the browser process when it wants to | 225 // A renderer sends this to the browser process when it wants to |
227 // create a GL context associated with the given view_id. | 226 // create a GL context associated with the given view_id. |
228 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, | 227 IPC_SYNC_MESSAGE_CONTROL2_1(GpuHostMsg_CreateViewCommandBuffer, |
229 int32, /* surface_id */ | 228 int32, /* surface_id */ |
230 GPUCreateCommandBufferConfig, /* init_params */ | 229 GPUCreateCommandBufferConfig, /* init_params */ |
231 int32 /* route_id */) | 230 int32 /* route_id */) |
232 | 231 |
233 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 232 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
285 | 284 |
286 // Tells the browser to release resources for the given surface until the next | 285 // Tells the browser to release resources for the given surface until the next |
287 // time swap buffers or post sub buffer is sent. | 286 // time swap buffers or post sub buffer is sent. |
288 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, | 287 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, |
289 int32 /* surface_id */) | 288 int32 /* surface_id */) |
290 | 289 |
291 //------------------------------------------------------------------------------ | 290 //------------------------------------------------------------------------------ |
292 // GPU Channel Messages | 291 // GPU Channel Messages |
293 // These are messages from a renderer process to the GPU process. | 292 // These are messages from a renderer process to the GPU process. |
294 | 293 |
295 // Initialize a channel between a renderer process and a GPU process. The | |
296 // renderer passes its process handle to the GPU process, which gives gives the | |
297 // GPU process the ability to map handles from the renderer process. This must | |
298 // be the first message sent on a newly connected channel. | |
299 IPC_MESSAGE_CONTROL1(GpuChannelMsg_Initialize, | |
300 base::ProcessHandle /* renderer_process_for_gpu */) | |
301 | |
302 // Tells the GPU process to create a new command buffer that renders to an | 294 // Tells the GPU process to create a new command buffer that renders to an |
303 // offscreen frame buffer. | 295 // offscreen frame buffer. |
304 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, | 296 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, |
305 gfx::Size, /* size */ | 297 gfx::Size, /* size */ |
306 GPUCreateCommandBufferConfig, /* init_params */ | 298 GPUCreateCommandBufferConfig, /* init_params */ |
307 int32 /* route_id */) | 299 int32 /* route_id */) |
308 | 300 |
309 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its | 301 // The CommandBufferProxy sends this to the GpuCommandBufferStub in its |
310 // destructor, so that the stub deletes the actual CommandBufferService | 302 // destructor, so that the stub deletes the actual CommandBufferService |
311 // object that it's hosting. | 303 // object that it's hosting. |
(...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
511 | 503 |
512 // Confirm decoder has been flushed. | 504 // Confirm decoder has been flushed. |
513 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 505 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
514 | 506 |
515 // Confirm decoder has been reset. | 507 // Confirm decoder has been reset. |
516 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 508 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
517 | 509 |
518 // Video decoder has encountered an error. | 510 // Video decoder has encountered an error. |
519 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 511 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
520 uint32) /* Error ID */ | 512 uint32) /* Error ID */ |
OLD | NEW |