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 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
264 // to a native view. A corresponding GpuCommandBufferStub is created. | 264 // to a native view. A corresponding GpuCommandBufferStub is created. |
265 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, | 265 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, |
266 gfx::GLSurfaceHandle, /* compositing_surface */ | 266 gfx::GLSurfaceHandle, /* compositing_surface */ |
267 int32, /* surface_id */ | 267 int32, /* surface_id */ |
268 int32, /* client_id */ | 268 int32, /* client_id */ |
269 GPUCreateCommandBufferConfig, /* init_params */ | 269 GPUCreateCommandBufferConfig, /* init_params */ |
270 int32 /* route_id */) | 270 int32 /* route_id */) |
271 | 271 |
272 // Tells the GPU process to create a new image from a window. Images | 272 // Tells the GPU process to create a new image from a window. Images |
273 // can be bound to textures using CHROMIUM_texture_from_image. | 273 // can be bound to textures using CHROMIUM_texture_from_image. |
274 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage, | 274 IPC_MESSAGE_CONTROL5(GpuMsg_CreateImage, |
275 gfx::PluginWindowHandle, /* window */ | 275 gfx::GpuMemoryBufferHandle, /* handle */ |
| 276 gfx::Size, /* size */ |
| 277 uint32, /* internalformat */ |
276 int32, /* client_id */ | 278 int32, /* client_id */ |
277 int32 /* image_id */) | 279 int32 /* image_id */) |
278 | 280 |
279 // Tells the GPU process to delete image. | 281 // Tells the GPU process to delete image. |
280 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, | 282 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, |
281 int32, /* client_id */ | 283 int32, /* client_id */ |
282 int32, /* image_id */ | 284 int32, /* image_id */ |
283 int32 /* sync_point */) | 285 int32 /* sync_point */) |
284 | 286 |
285 // Tells the GPU process to create a new gpu memory buffer for |handle|. | 287 // Tells the GPU process to create a new gpu memory buffer for |handle|. |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
371 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 373 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
372 bool /* succeeded */) | 374 bool /* succeeded */) |
373 | 375 |
374 // Request from GPU to free the browser resources associated with the | 376 // Request from GPU to free the browser resources associated with the |
375 // command buffer. | 377 // command buffer. |
376 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 378 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
377 int32 /* surface_id */) | 379 int32 /* surface_id */) |
378 | 380 |
379 // Response from GPU to a GpuMsg_CreateImage message. | 381 // Response from GPU to a GpuMsg_CreateImage message. |
380 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, | 382 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
381 gfx::Size /* size */) | 383 bool /* succeeded */) |
382 | 384 |
383 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 385 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
384 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 386 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
385 gfx::GpuMemoryBufferHandle /* handle */) | 387 gfx::GpuMemoryBufferHandle /* handle */) |
386 | 388 |
387 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 389 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
388 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 390 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
389 gpu::GPUInfo /* GPU logging stats */) | 391 gpu::GPUInfo /* GPU logging stats */) |
390 | 392 |
391 // Response from GPU to a GpuMsg_GetVideoMemory. | 393 // Response from GPU to a GpuMsg_GetVideoMemory. |
(...skipping 388 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
780 int32 /* bitstream_buffer_id */, | 782 int32 /* bitstream_buffer_id */, |
781 uint32 /* payload_size */, | 783 uint32 /* payload_size */, |
782 bool /* key_frame */) | 784 bool /* key_frame */) |
783 | 785 |
784 // Report error condition. | 786 // Report error condition. |
785 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 787 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
786 media::VideoEncodeAccelerator::Error /* error */) | 788 media::VideoEncodeAccelerator::Error /* error */) |
787 | 789 |
788 // Send destroy request to the encoder. | 790 // Send destroy request to the encoder. |
789 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 791 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
OLD | NEW |