| 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 247 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 258 | 258 |
| 259 // Tells the GPU process to create a new command buffer that renders directly | 259 // Tells the GPU process to create a new command buffer that renders directly |
| 260 // to a native view. A corresponding GpuCommandBufferStub is created. | 260 // to a native view. A corresponding GpuCommandBufferStub is created. |
| 261 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, | 261 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, |
| 262 gfx::GLSurfaceHandle, /* compositing_surface */ | 262 gfx::GLSurfaceHandle, /* compositing_surface */ |
| 263 int32, /* surface_id */ | 263 int32, /* surface_id */ |
| 264 int32, /* client_id */ | 264 int32, /* client_id */ |
| 265 GPUCreateCommandBufferConfig, /* init_params */ | 265 GPUCreateCommandBufferConfig, /* init_params */ |
| 266 int32 /* route_id */) | 266 int32 /* route_id */) |
| 267 | 267 |
| 268 // Tells the GPU process to create a new image from a window. Images | |
| 269 // can be bound to textures using CHROMIUM_texture_from_image. | |
| 270 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage, | |
| 271 gfx::PluginWindowHandle, /* window */ | |
| 272 int32, /* client_id */ | |
| 273 int32 /* image_id */) | |
| 274 | |
| 275 // Tells the GPU process to delete image. | |
| 276 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, | |
| 277 int32, /* client_id */ | |
| 278 int32, /* image_id */ | |
| 279 int32 /* sync_point */) | |
| 280 | |
| 281 // Tells the GPU process to create a new gpu memory buffer for |handle|. | 268 // Tells the GPU process to create a new gpu memory buffer for |handle|. |
| 282 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, | 269 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, |
| 283 gfx::GpuMemoryBufferHandle, /* handle */ | 270 gfx::GpuMemoryBufferHandle, /* handle */ |
| 284 gfx::Size, /* size */ | 271 gfx::Size, /* size */ |
| 285 unsigned, /* internalformat */ | 272 unsigned, /* internalformat */ |
| 286 unsigned /* usage */) | 273 unsigned /* usage */) |
| 287 | 274 |
| 288 // Tells the GPU process to destroy buffer. | 275 // Tells the GPU process to destroy buffer. |
| 289 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, | 276 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, |
| 290 gfx::GpuMemoryBufferHandle, /* handle */ | 277 gfx::GpuMemoryBufferHandle, /* handle */ |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 365 | 352 |
| 366 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. | 353 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. |
| 367 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 354 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
| 368 content::CreateCommandBufferResult /* result */) | 355 content::CreateCommandBufferResult /* result */) |
| 369 | 356 |
| 370 // Request from GPU to free the browser resources associated with the | 357 // Request from GPU to free the browser resources associated with the |
| 371 // command buffer. | 358 // command buffer. |
| 372 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 359 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
| 373 int32 /* surface_id */) | 360 int32 /* surface_id */) |
| 374 | 361 |
| 375 // Response from GPU to a GpuMsg_CreateImage message. | |
| 376 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | |
| 377 gfx::Size /* size */) | |
| 378 | |
| 379 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 362 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
| 380 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 363 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
| 381 gfx::GpuMemoryBufferHandle /* handle */) | 364 gfx::GpuMemoryBufferHandle /* handle */) |
| 382 | 365 |
| 383 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 366 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
| 384 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 367 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
| 385 gpu::GPUInfo /* GPU logging stats */) | 368 gpu::GPUInfo /* GPU logging stats */) |
| 386 | 369 |
| 387 // Response from GPU to a GpuMsg_GetVideoMemory. | 370 // Response from GPU to a GpuMsg_GetVideoMemory. |
| 388 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 371 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
| (...skipping 383 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 772 int32 /* bitstream_buffer_id */, | 755 int32 /* bitstream_buffer_id */, |
| 773 uint32 /* payload_size */, | 756 uint32 /* payload_size */, |
| 774 bool /* key_frame */) | 757 bool /* key_frame */) |
| 775 | 758 |
| 776 // Report error condition. | 759 // Report error condition. |
| 777 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 760 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 778 media::VideoEncodeAccelerator::Error /* error */) | 761 media::VideoEncodeAccelerator::Error /* error */) |
| 779 | 762 |
| 780 // Send destroy request to the encoder. | 763 // Send destroy request to the encoder. |
| 781 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 764 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |