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 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
305 | 305 |
306 // Tells the GPU process to crash. | 306 // Tells the GPU process to crash. |
307 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) | 307 IPC_MESSAGE_CONTROL0(GpuMsg_Crash) |
308 | 308 |
309 // Tells the GPU process to hang. | 309 // Tells the GPU process to hang. |
310 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) | 310 IPC_MESSAGE_CONTROL0(GpuMsg_Hang) |
311 | 311 |
312 // Tells the GPU process to disable the watchdog thread. | 312 // Tells the GPU process to disable the watchdog thread. |
313 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) | 313 IPC_MESSAGE_CONTROL0(GpuMsg_DisableWatchdog) |
314 | 314 |
| 315 // Tells the GPU process to create a new surface texture. |
| 316 IPC_MESSAGE_CONTROL2(GpuMsg_CreateSurfaceTexture, |
| 317 int32, /* surface_texture_id */ |
| 318 int32 /* process_handle */) |
| 319 |
315 //------------------------------------------------------------------------------ | 320 //------------------------------------------------------------------------------ |
316 // GPU Host Messages | 321 // GPU Host Messages |
317 // These are messages to the browser. | 322 // These are messages to the browser. |
318 | 323 |
319 // A renderer sends this when it wants to create a connection to the GPU | 324 // A renderer sends this when it wants to create a connection to the GPU |
320 // process. The browser will create the GPU process if necessary, and will | 325 // process. The browser will create the GPU process if necessary, and will |
321 // return a handle to the channel via a GpuChannelEstablished message. | 326 // return a handle to the channel via a GpuChannelEstablished message. |
322 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, | 327 IPC_SYNC_MESSAGE_CONTROL1_3(GpuHostMsg_EstablishGpuChannel, |
323 content::CauseForGpuLaunch, | 328 content::CauseForGpuLaunch, |
324 int /* client id */, | 329 int /* client id */, |
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 366 |
362 // Request from GPU to free the browser resources associated with the | 367 // Request from GPU to free the browser resources associated with the |
363 // command buffer. | 368 // command buffer. |
364 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 369 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
365 int32 /* surface_id */) | 370 int32 /* surface_id */) |
366 | 371 |
367 // Response from GPU to a GpuMsg_CreateImage message. | 372 // Response from GPU to a GpuMsg_CreateImage message. |
368 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | 373 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
369 gfx::Size /* size */) | 374 gfx::Size /* size */) |
370 | 375 |
| 376 // Response from GPU to a GpuMsg_CreateSurfaceTexture message. |
| 377 IPC_MESSAGE_CONTROL1(GpuHostMsg_SurfaceTextureCreated, |
| 378 int32 /* surface_texture_id */) |
| 379 |
371 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 380 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
372 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 381 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
373 gpu::GPUInfo /* GPU logging stats */) | 382 gpu::GPUInfo /* GPU logging stats */) |
374 | 383 |
375 // Response from GPU to a GpuMsg_GetVideoMemory. | 384 // Response from GPU to a GpuMsg_GetVideoMemory. |
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 385 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
377 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 386 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
378 | 387 |
379 // Message from GPU to add a GPU log message to the about:gpu page. | 388 // Message from GPU to add a GPU log message to the about:gpu page. |
380 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 389 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
(...skipping 391 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
772 | 781 |
773 // Notify the renderer that an output buffer has been filled with encoded data. | 782 // Notify the renderer that an output buffer has been filled with encoded data. |
774 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, | 783 IPC_MESSAGE_ROUTED3(AcceleratedVideoEncoderHostMsg_BitstreamBufferReady, |
775 int32 /* bitstream_buffer_id */, | 784 int32 /* bitstream_buffer_id */, |
776 uint32 /* payload_size */, | 785 uint32 /* payload_size */, |
777 bool /* key_frame */) | 786 bool /* key_frame */) |
778 | 787 |
779 // Report error condition. | 788 // Report error condition. |
780 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 789 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
781 media::VideoEncodeAccelerator::Error /* error */) | 790 media::VideoEncodeAccelerator::Error /* error */) |
OLD | NEW |