| 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 <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 283 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 294 | 294 |
| 295 // Tells the GPU process to hang. | 295 // Tells the GPU process to hang. |
| 296 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 296 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
| 297 | 297 |
| 298 // Tells the GPU process to disable the watchdog thread. | 298 // Tells the GPU process to disable the watchdog thread. |
| 299 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 299 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
| 300 | 300 |
| 301 // Tells the GPU process that the browser has seen a GPU switch. | 301 // Tells the GPU process that the browser has seen a GPU switch. |
| 302 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) | 302 IPC_MESSAGE_CONTROL0(GpuMsg_GpuSwitched) |
| 303 | 303 |
| 304 // Tells the GPU process to relinquish the display to an external process. |
| 305 // Creating a new surface will automatically re-acquire the display. |
| 306 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishDisplay) |
| 307 IPC_MESSAGE_CONTROL0(GpuMsg_DeleteDefaultOffscreenSurface) |
| 308 |
| 304 //------------------------------------------------------------------------------ | 309 //------------------------------------------------------------------------------ |
| 305 // GPU Host Messages | 310 // GPU Host Messages |
| 306 // These are messages to the browser. | 311 // These are messages to the browser. |
| 307 | 312 |
| 308 // A renderer sends this when it wants to create a connection to the GPU | 313 // A renderer sends this when it wants to create a connection to the GPU |
| 309 // process. The browser will create the GPU process if necessary, and will | 314 // process. The browser will create the GPU process if necessary, and will |
| 310 // return a handle to the channel via a GpuChannelEstablished message. | 315 // return a handle to the channel via a GpuChannelEstablished message. |
| 311 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 316 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
| 312 content::CauseForGpuLaunch, | 317 content::CauseForGpuLaunch, |
| 313 int /* client id */, | 318 int /* client id */, |
| (...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 395 gpu::error::ContextLostReason /* reason */, | 400 gpu::error::ContextLostReason /* reason */, |
| 396 GURL /* url */) | 401 GURL /* url */) |
| 397 | 402 |
| 398 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, | 403 IPC_MESSAGE_CONTROL1(GpuHostMsg_DidDestroyOffscreenContext, |
| 399 GURL /* url */) | 404 GURL /* url */) |
| 400 | 405 |
| 401 // Tells the browser about GPU memory usage statistics for UMA logging. | 406 // Tells the browser about GPU memory usage statistics for UMA logging. |
| 402 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, | 407 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryUmaStats, |
| 403 content::GPUMemoryUmaStats /* GPU memory UMA stats */) | 408 content::GPUMemoryUmaStats /* GPU memory UMA stats */) |
| 404 | 409 |
| 410 // Response to GpuMsg_RelinquishDisplay |
| 411 IPC_MESSAGE_CONTROL1(GpuHostMsg_ResourceRelinquished, |
| 412 bool /* success */) |
| 413 |
| 405 //------------------------------------------------------------------------------ | 414 //------------------------------------------------------------------------------ |
| 406 // GPU Channel Messages | 415 // GPU Channel Messages |
| 407 // These are messages from a renderer process to the GPU process. | 416 // These are messages from a renderer process to the GPU process. |
| 408 | 417 |
| 409 // Tells the GPU process to create a new command buffer that renders to an | 418 // Tells the GPU process to create a new command buffer that renders to an |
| 410 // offscreen frame buffer. | 419 // offscreen frame buffer. |
| 411 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateOffscreenCommandBuffer, | 420 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateOffscreenCommandBuffer, |
| 412 gfx::Size, /* size */ | 421 gfx::Size, /* size */ |
| 413 GPUCreateCommandBufferConfig, /* init_params */ | 422 GPUCreateCommandBufferConfig, /* init_params */ |
| 414 int32, /* route_id */ | 423 int32, /* route_id */ |
| (...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 722 int32 /* bitstream_buffer_id */, | 731 int32 /* bitstream_buffer_id */, |
| 723 uint32 /* payload_size */, | 732 uint32 /* payload_size */, |
| 724 bool /* key_frame */) | 733 bool /* key_frame */) |
| 725 | 734 |
| 726 // Report error condition. | 735 // Report error condition. |
| 727 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 736 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 728 media::VideoEncodeAccelerator::Error /* error */) | 737 media::VideoEncodeAccelerator::Error /* error */) |
| 729 | 738 |
| 730 // Send destroy request to the encoder. | 739 // Send destroy request to the encoder. |
| 731 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 740 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |