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