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 264 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 gfx::PluginWindowHandle, /* window */ | 275 gfx::PluginWindowHandle, /* window */ |
276 int32, /* client_id */ | 276 int32, /* client_id */ |
277 int32 /* image_id */) | 277 int32 /* image_id */) |
278 | 278 |
279 // Tells the GPU process to delete image. | 279 // Tells the GPU process to delete image. |
280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, | 280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, |
281 int32, /* client_id */ | 281 int32, /* client_id */ |
282 int32, /* image_id */ | 282 int32, /* image_id */ |
283 int32 /* sync_point */) | 283 int32 /* sync_point */) |
284 | 284 |
| 285 // Tells the GPU process to create a new gpu memory buffer for |handle|. |
| 286 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, |
| 287 gfx::GpuMemoryBufferHandle, /* handle */ |
| 288 gfx::Size, /* size */ |
| 289 unsigned, /* internalformat */ |
| 290 unsigned /* usage */) |
| 291 |
| 292 // Tells the GPU process to destroy buffer. |
| 293 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, |
| 294 gfx::GpuMemoryBufferHandle, /* handle */ |
| 295 int32 /* sync_point */) |
| 296 |
285 // Tells the GPU process to create a context for collecting graphics card | 297 // Tells the GPU process to create a context for collecting graphics card |
286 // information. | 298 // information. |
287 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 299 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
288 | 300 |
289 // Tells the GPU process to report video_memory information for the task manager | 301 // Tells the GPU process to report video_memory information for the task manager |
290 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 302 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
291 | 303 |
292 // Tells the GPU process that the browser process has handled the swap | 304 // Tells the GPU process that the browser process has handled the swap |
293 // buffers or post sub-buffer request. A non-zero sync point means | 305 // buffers or post sub-buffer request. A non-zero sync point means |
294 // that we should wait for the sync point. The surface_handle identifies | 306 // that we should wait for the sync point. The surface_handle identifies |
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 373 |
362 // Request from GPU to free the browser resources associated with the | 374 // Request from GPU to free the browser resources associated with the |
363 // command buffer. | 375 // command buffer. |
364 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 376 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
365 int32 /* surface_id */) | 377 int32 /* surface_id */) |
366 | 378 |
367 // Response from GPU to a GpuMsg_CreateImage message. | 379 // Response from GPU to a GpuMsg_CreateImage message. |
368 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | 380 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
369 gfx::Size /* size */) | 381 gfx::Size /* size */) |
370 | 382 |
| 383 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 384 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 385 gfx::GpuMemoryBufferHandle /* handle */) |
| 386 |
371 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 387 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
372 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 388 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
373 gpu::GPUInfo /* GPU logging stats */) | 389 gpu::GPUInfo /* GPU logging stats */) |
374 | 390 |
375 // Response from GPU to a GpuMsg_GetVideoMemory. | 391 // Response from GPU to a GpuMsg_GetVideoMemory. |
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 392 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
377 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 393 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
378 | 394 |
379 // Message from GPU to add a GPU log message to the about:gpu page. | 395 // Message from GPU to add a GPU log message to the about:gpu page. |
380 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 396 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 int32 /* bitstream_buffer_id */, | 780 int32 /* bitstream_buffer_id */, |
765 uint32 /* payload_size */, | 781 uint32 /* payload_size */, |
766 bool /* key_frame */) | 782 bool /* key_frame */) |
767 | 783 |
768 // Report error condition. | 784 // Report error condition. |
769 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 785 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
770 media::VideoEncodeAccelerator::Error /* error */) | 786 media::VideoEncodeAccelerator::Error /* error */) |
771 | 787 |
772 // Send destroy request to the encoder. | 788 // Send destroy request to the encoder. |
773 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 789 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |