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 delete the default_offscreen surface. It will also |
| 305 // close the display and any other resources when the last GL surface is |
| 306 // deleted. GPU process will respond with GphHosMsg_ResourcesRelinquished. |
| 307 IPC_MESSAGE_CONTROL0(GpuMsg_RelinquishResources) |
| 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_RelinquishResources. |
| 411 IPC_MESSAGE_CONTROL0(GpuHostMsg_ResourcesRelinquished) |
| 412 |
405 //------------------------------------------------------------------------------ | 413 //------------------------------------------------------------------------------ |
406 // GPU Channel Messages | 414 // GPU Channel Messages |
407 // These are messages from a renderer process to the GPU process. | 415 // These are messages from a renderer process to the GPU process. |
408 | 416 |
409 // Tells the GPU process to create a new command buffer that renders to an | 417 // Tells the GPU process to create a new command buffer that renders to an |
410 // offscreen frame buffer. | 418 // offscreen frame buffer. |
411 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateOffscreenCommandBuffer, | 419 IPC_SYNC_MESSAGE_CONTROL3_1(GpuChannelMsg_CreateOffscreenCommandBuffer, |
412 gfx::Size, /* size */ | 420 gfx::Size, /* size */ |
413 GPUCreateCommandBufferConfig, /* init_params */ | 421 GPUCreateCommandBufferConfig, /* init_params */ |
414 int32, /* route_id */ | 422 int32, /* route_id */ |
(...skipping 307 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
722 int32 /* bitstream_buffer_id */, | 730 int32 /* bitstream_buffer_id */, |
723 uint32 /* payload_size */, | 731 uint32 /* payload_size */, |
724 bool /* key_frame */) | 732 bool /* key_frame */) |
725 | 733 |
726 // Report error condition. | 734 // Report error condition. |
727 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 735 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
728 media::VideoEncodeAccelerator::Error /* error */) | 736 media::VideoEncodeAccelerator::Error /* error */) |
729 | 737 |
730 // Send destroy request to the encoder. | 738 // Send destroy request to the encoder. |
731 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 739 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |