| 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 239 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 250 gfx::GLSurfaceHandle, /* compositing_surface */ | 250 gfx::GLSurfaceHandle, /* compositing_surface */ |
| 251 int32, /* surface_id */ | 251 int32, /* surface_id */ |
| 252 int32, /* client_id */ | 252 int32, /* client_id */ |
| 253 GPUCreateCommandBufferConfig, /* init_params */ | 253 GPUCreateCommandBufferConfig, /* init_params */ |
| 254 int32 /* route_id */) | 254 int32 /* route_id */) |
| 255 | 255 |
| 256 // Tells the GPU process to create a new gpu memory buffer for |handle|. | 256 // Tells the GPU process to create a new gpu memory buffer for |handle|. |
| 257 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, | 257 IPC_MESSAGE_CONTROL4(GpuMsg_CreateGpuMemoryBuffer, |
| 258 gfx::GpuMemoryBufferHandle, /* handle */ | 258 gfx::GpuMemoryBufferHandle, /* handle */ |
| 259 gfx::Size, /* size */ | 259 gfx::Size, /* size */ |
| 260 unsigned, /* internalformat */ | 260 gfx::GpuMemoryBuffer::Format, /* format */ |
| 261 unsigned /* usage */) | 261 gfx::GpuMemoryBuffer::Usage /* usage */) |
| 262 | 262 |
| 263 // Tells the GPU process to destroy buffer. | 263 // Tells the GPU process to destroy buffer. |
| 264 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, | 264 IPC_MESSAGE_CONTROL2(GpuMsg_DestroyGpuMemoryBuffer, |
| 265 gfx::GpuMemoryBufferHandle, /* handle */ | 265 gfx::GpuMemoryBufferHandle, /* handle */ |
| 266 int32 /* sync_point */) | 266 int32 /* sync_point */) |
| 267 | 267 |
| 268 // Tells the GPU process to create a context for collecting graphics card | 268 // Tells the GPU process to create a context for collecting graphics card |
| 269 // information. | 269 // information. |
| 270 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 270 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
| 271 | 271 |
| (...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 576 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck, | 576 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalSyncPointAck, |
| 577 uint32 /* signal_id */) | 577 uint32 /* signal_id */) |
| 578 | 578 |
| 579 // Makes this command buffer signal when a query is reached, by sending | 579 // Makes this command buffer signal when a query is reached, by sending |
| 580 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same | 580 // back a GpuCommandBufferMsg_SignalSyncPointAck message with the same |
| 581 // signal_id. | 581 // signal_id. |
| 582 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, | 582 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
| 583 uint32 /* query */, | 583 uint32 /* query */, |
| 584 uint32 /* signal_id */) | 584 uint32 /* signal_id */) |
| 585 | 585 |
| 586 // Register an existing gpu memory buffer. The id that can be | 586 // Create an image from an existing gpu memory buffer. The id that can be |
| 587 // used to identify the gpu memory buffer from a command buffer. | 587 // used to identify the image from a command buffer. |
| 588 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_RegisterGpuMemoryBuffer, | 588 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage, |
| 589 int32 /* id */, | 589 int32 /* id */, |
| 590 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, | 590 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, |
| 591 uint32 /* width */, | 591 gfx::Size /* size */, |
| 592 uint32 /* height */, | 592 gfx::GpuMemoryBuffer::Format /* format */, |
| 593 uint32 /* internalformat */) | 593 uint32 /* internalformat */) |
| 594 | 594 |
| 595 // Unregister a previously registered gpu memory buffer. | 595 // Destroy a previously created image. |
| 596 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_UnregisterGpuMemoryBuffer, | 596 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, |
| 597 int32 /* id */) | 597 int32 /* id */) |
| 598 | 598 |
| 599 // Attaches an external image stream to the client texture. | 599 // Attaches an external image stream to the client texture. |
| 600 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 600 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
| 601 uint32, /* client_texture_id */ | 601 uint32, /* client_texture_id */ |
| 602 int32, /* stream_id */ | 602 int32, /* stream_id */ |
| 603 bool /* succeeded */) | 603 bool /* succeeded */) |
| 604 | 604 |
| 605 //------------------------------------------------------------------------------ | 605 //------------------------------------------------------------------------------ |
| 606 // Accelerated Video Decoder Messages | 606 // Accelerated Video Decoder Messages |
| (...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 716 int32 /* bitstream_buffer_id */, | 716 int32 /* bitstream_buffer_id */, |
| 717 uint32 /* payload_size */, | 717 uint32 /* payload_size */, |
| 718 bool /* key_frame */) | 718 bool /* key_frame */) |
| 719 | 719 |
| 720 // Report error condition. | 720 // Report error condition. |
| 721 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, | 721 IPC_MESSAGE_ROUTED1(AcceleratedVideoEncoderHostMsg_NotifyError, |
| 722 media::VideoEncodeAccelerator::Error /* error */) | 722 media::VideoEncodeAccelerator::Error /* error */) |
| 723 | 723 |
| 724 // Send destroy request to the encoder. | 724 // Send destroy request to the encoder. |
| 725 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) | 725 IPC_MESSAGE_ROUTED0(AcceleratedVideoEncoderMsg_Destroy) |
| OLD | NEW |