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 217 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
228 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) | 228 IPC_STRUCT_TRAITS_MEMBER(bytes_allocated) |
229 IPC_STRUCT_TRAITS_MEMBER(backbuffer_requested) | 229 IPC_STRUCT_TRAITS_MEMBER(backbuffer_requested) |
230 IPC_STRUCT_TRAITS_END() | 230 IPC_STRUCT_TRAITS_END() |
231 | 231 |
232 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) | 232 IPC_STRUCT_TRAITS_BEGIN(gfx::GLSurfaceHandle) |
233 IPC_STRUCT_TRAITS_MEMBER(handle) | 233 IPC_STRUCT_TRAITS_MEMBER(handle) |
234 IPC_STRUCT_TRAITS_MEMBER(transport_type) | 234 IPC_STRUCT_TRAITS_MEMBER(transport_type) |
235 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) | 235 IPC_STRUCT_TRAITS_MEMBER(parent_client_id) |
236 IPC_STRUCT_TRAITS_END() | 236 IPC_STRUCT_TRAITS_END() |
237 | 237 |
| 238 IPC_STRUCT_TRAITS_BEGIN(gfx::GpuMemoryBufferParams) |
| 239 IPC_STRUCT_TRAITS_MEMBER(width) |
| 240 IPC_STRUCT_TRAITS_MEMBER(height) |
| 241 IPC_STRUCT_TRAITS_MEMBER(internalformat) |
| 242 IPC_STRUCT_TRAITS_MEMBER(usage) |
| 243 IPC_STRUCT_TRAITS_MEMBER(window) |
| 244 IPC_STRUCT_TRAITS_MEMBER(process_handle) |
| 245 IPC_STRUCT_TRAITS_MEMBER(client_id) |
| 246 IPC_STRUCT_TRAITS_END() |
| 247 |
238 //------------------------------------------------------------------------------ | 248 //------------------------------------------------------------------------------ |
239 // GPU Messages | 249 // GPU Messages |
240 // These are messages from the browser to the GPU process. | 250 // These are messages from the browser to the GPU process. |
241 | 251 |
242 // Tells the GPU process to initialize itself. The browser explicitly | 252 // Tells the GPU process to initialize itself. The browser explicitly |
243 // requests this be done so that we are guaranteed that the channel is set | 253 // requests this be done so that we are guaranteed that the channel is set |
244 // up between the browser and GPU process before doing any work that might | 254 // up between the browser and GPU process before doing any work that might |
245 // potentially crash the GPU process. Detection of the child process | 255 // potentially crash the GPU process. Detection of the child process |
246 // exiting abruptly is predicated on having the IPC channel set up. | 256 // exiting abruptly is predicated on having the IPC channel set up. |
247 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) | 257 IPC_MESSAGE_CONTROL0(GpuMsg_Initialize) |
(...skipping 21 matching lines...) Expand all Loading... |
269 GPUCreateCommandBufferConfig, /* init_params */ | 279 GPUCreateCommandBufferConfig, /* init_params */ |
270 int32 /* route_id */) | 280 int32 /* route_id */) |
271 | 281 |
272 // Tells the GPU process to create a new image from a window. Images | 282 // Tells the GPU process to create a new image from a window. Images |
273 // can be bound to textures using CHROMIUM_texture_from_image. | 283 // can be bound to textures using CHROMIUM_texture_from_image. |
274 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage, | 284 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage, |
275 gfx::PluginWindowHandle, /* window */ | 285 gfx::PluginWindowHandle, /* window */ |
276 int32, /* client_id */ | 286 int32, /* client_id */ |
277 int32 /* image_id */) | 287 int32 /* image_id */) |
278 | 288 |
| 289 // Allocate a buffer asynchronously in the GPU process. |
| 290 IPC_MESSAGE_CONTROL1(GpuMsg_AllocateGpuMemoryBuffer, |
| 291 gfx::GpuMemoryBufferParams /* params */) |
| 292 |
279 // Tells the GPU process to delete image. | 293 // Tells the GPU process to delete image. |
280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, | 294 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, |
281 int32, /* client_id */ | 295 int32, /* client_id */ |
282 int32, /* image_id */ | 296 int32, /* image_id */ |
283 int32 /* sync_point */) | 297 int32 /* sync_point */) |
284 | 298 |
285 // Tells the GPU process to create a context for collecting graphics card | 299 // Tells the GPU process to create a context for collecting graphics card |
286 // information. | 300 // information. |
287 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 301 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
288 | 302 |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
361 | 375 |
362 // Request from GPU to free the browser resources associated with the | 376 // Request from GPU to free the browser resources associated with the |
363 // command buffer. | 377 // command buffer. |
364 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 378 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
365 int32 /* surface_id */) | 379 int32 /* surface_id */) |
366 | 380 |
367 // Response from GPU to a GpuMsg_CreateImage message. | 381 // Response from GPU to a GpuMsg_CreateImage message. |
368 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | 382 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
369 gfx::Size /* size */) | 383 gfx::Size /* size */) |
370 | 384 |
| 385 // Response from GPU to a GpuMsg_AllocateGpuMemoryBuffer message. |
| 386 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferAllocated, |
| 387 gfx::GpuMemoryBufferHandle /* handle */) |
| 388 |
371 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 389 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
372 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 390 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
373 gpu::GPUInfo /* GPU logging stats */) | 391 gpu::GPUInfo /* GPU logging stats */) |
374 | 392 |
375 // Response from GPU to a GpuMsg_GetVideoMemory. | 393 // Response from GPU to a GpuMsg_GetVideoMemory. |
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 394 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
377 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 395 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
378 | 396 |
379 // Message from GPU to add a GPU log message to the about:gpu page. | 397 // Message from GPU to add a GPU log message to the about:gpu page. |
380 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 398 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
(...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
764 int32 /* bitstream_buffer_id */, | 782 int32 /* bitstream_buffer_id */, |
765 uint32 /* payload_size */, | 783 uint32 /* payload_size */, |
766 bool /* key_frame */) | 784 bool /* key_frame */) |
767 | 785 |
768 // Report error condition. | 786 // Report error condition. |
769 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 787 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
770 media::VideoEncodeAccelerator::Error /* error */) | 788 media::VideoEncodeAccelerator::Error /* error */) |
771 | 789 |
772 // Send destroy request to the encoder. | 790 // Send destroy request to the encoder. |
773 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 791 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |