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 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
177 IPC_STRUCT_MEMBER(float, m21) | 177 IPC_STRUCT_MEMBER(float, m21) |
178 IPC_STRUCT_MEMBER(float, m22) | 178 IPC_STRUCT_MEMBER(float, m22) |
179 IPC_STRUCT_MEMBER(float, m23) | 179 IPC_STRUCT_MEMBER(float, m23) |
180 IPC_STRUCT_MEMBER(float, m30) | 180 IPC_STRUCT_MEMBER(float, m30) |
181 IPC_STRUCT_MEMBER(float, m31) | 181 IPC_STRUCT_MEMBER(float, m31) |
182 IPC_STRUCT_MEMBER(float, m32) | 182 IPC_STRUCT_MEMBER(float, m32) |
183 IPC_STRUCT_MEMBER(float, m33) | 183 IPC_STRUCT_MEMBER(float, m33) |
184 IPC_STRUCT_END() | 184 IPC_STRUCT_END() |
185 #endif | 185 #endif |
186 | 186 |
187 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) | 187 IPC_STRUCT_BEGIN(GpuCommandBufferMsg_CreateImage_Params) |
188 IPC_STRUCT_MEMBER(int32, id) | |
189 IPC_STRUCT_MEMBER(gfx::GpuMemoryBufferHandle, gpu_memory_buffer) | |
190 IPC_STRUCT_MEMBER(gfx::Size, size) | |
191 IPC_STRUCT_MEMBER(gfx::BufferFormat, format) | |
192 IPC_STRUCT_MEMBER(uint32, internalformat) | |
dcheng
2015/11/04 19:22:43
Google style says this should be internal_format.
David Yen
2015/11/04 19:47:39
Done.
| |
193 IPC_STRUCT_MEMBER(uint64, image_release_count) | |
194 IPC_STRUCT_END() | |
195 | |
196 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) | |
188 IPC_STRUCT_TRAITS_MEMBER(values) | 197 IPC_STRUCT_TRAITS_MEMBER(values) |
189 IPC_STRUCT_TRAITS_MEMBER(children) | 198 IPC_STRUCT_TRAITS_MEMBER(children) |
190 IPC_STRUCT_TRAITS_END() | 199 IPC_STRUCT_TRAITS_END() |
191 | 200 |
192 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) | 201 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) |
193 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | 202 IPC_STRUCT_TRAITS_MEMBER(vendor_id) |
194 IPC_STRUCT_TRAITS_MEMBER(device_id) | 203 IPC_STRUCT_TRAITS_MEMBER(device_id) |
195 IPC_STRUCT_TRAITS_MEMBER(active) | 204 IPC_STRUCT_TRAITS_MEMBER(active) |
196 IPC_STRUCT_TRAITS_MEMBER(vendor_string) | 205 IPC_STRUCT_TRAITS_MEMBER(vendor_string) |
197 IPC_STRUCT_TRAITS_MEMBER(device_string) | 206 IPC_STRUCT_TRAITS_MEMBER(device_string) |
(...skipping 126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
324 GpuMsg_CreateGpuMemoryBuffer_Params) | 333 GpuMsg_CreateGpuMemoryBuffer_Params) |
325 | 334 |
326 // Tells the GPU process to create a new gpu memory buffer from an existing | 335 // Tells the GPU process to create a new gpu memory buffer from an existing |
327 // handle. | 336 // handle. |
328 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle, | 337 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBufferFromHandle, |
329 GpuMsg_CreateGpuMemoryBufferFromHandle_Params) | 338 GpuMsg_CreateGpuMemoryBufferFromHandle_Params) |
330 | 339 |
331 // Tells the GPU process to destroy buffer. | 340 // Tells the GPU process to destroy buffer. |
332 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 341 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
333 gfx::GpuMemoryBufferId, /* id */ | 342 gfx::GpuMemoryBufferId, /* id */ |
334 int32, /* client_id */ | 343 int32, /* client_id */ |
335 int32 /* sync_point */) | 344 gpu::SyncToken /* sync_token */) |
336 | 345 |
337 // Create and initialize a hardware jpeg decoder using the specified route_id. | 346 // Create and initialize a hardware jpeg decoder using the specified route_id. |
338 // Created decoders should be freed with AcceleratedJpegDecoderMsg_Destroy when | 347 // Created decoders should be freed with AcceleratedJpegDecoderMsg_Destroy when |
339 // no longer needed. | 348 // no longer needed. |
340 IPC_SYNC_MESSAGE_CONTROL1_1(GpuMsg_CreateJpegDecoder, | 349 IPC_SYNC_MESSAGE_CONTROL1_1(GpuMsg_CreateJpegDecoder, |
341 int32 /* route_id */, | 350 int32 /* route_id */, |
342 bool /* succeeded */) | 351 bool /* succeeded */) |
343 | 352 |
344 // Tells the GPU process to create a context for collecting graphics card | 353 // Tells the GPU process to create a context for collecting graphics card |
345 // information. | 354 // information. |
(...skipping 299 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
645 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, | 654 IPC_MESSAGE_ROUTED2(GpuCommandBufferMsg_SignalQuery, |
646 uint32 /* query */, | 655 uint32 /* query */, |
647 uint32 /* signal_id */) | 656 uint32 /* signal_id */) |
648 | 657 |
649 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. | 658 // Response to SignalSyncPoint, SignalSyncToken, and SignalQuery. |
650 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, | 659 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_SignalAck, |
651 uint32 /* signal_id */) | 660 uint32 /* signal_id */) |
652 | 661 |
653 // Create an image from an existing gpu memory buffer. The id that can be | 662 // Create an image from an existing gpu memory buffer. The id that can be |
654 // used to identify the image from a command buffer. | 663 // used to identify the image from a command buffer. |
655 IPC_MESSAGE_ROUTED5(GpuCommandBufferMsg_CreateImage, | 664 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_CreateImage, |
656 int32 /* id */, | 665 GpuCommandBufferMsg_CreateImage_Params /* params */) |
657 gfx::GpuMemoryBufferHandle /* gpu_memory_buffer */, | |
658 gfx::Size /* size */, | |
659 gfx::BufferFormat /* format */, | |
660 uint32 /* internalformat */) | |
661 | 666 |
662 // Destroy a previously created image. | 667 // Destroy a previously created image. |
663 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, | 668 IPC_MESSAGE_ROUTED1(GpuCommandBufferMsg_DestroyImage, |
664 int32 /* id */) | 669 int32 /* id */) |
665 | 670 |
666 // Attaches an external image stream to the client texture. | 671 // Attaches an external image stream to the client texture. |
667 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, | 672 IPC_SYNC_MESSAGE_ROUTED2_1(GpuCommandBufferMsg_CreateStreamTexture, |
668 uint32, /* client_texture_id */ | 673 uint32, /* client_texture_id */ |
669 int32, /* stream_id */ | 674 int32, /* stream_id */ |
670 bool /* succeeded */) | 675 bool /* succeeded */) |
(...skipping 132 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
803 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 808 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
804 | 809 |
805 //------------------------------------------------------------------------------ | 810 //------------------------------------------------------------------------------ |
806 // Accelerated JPEG Decoder Host Messages | 811 // Accelerated JPEG Decoder Host Messages |
807 // These messages are sent from the GPU process to Browser process. | 812 // These messages are sent from the GPU process to Browser process. |
808 // | 813 // |
809 // Report decode status. | 814 // Report decode status. |
810 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 815 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
811 int32, /* bitstream_buffer_id */ | 816 int32, /* bitstream_buffer_id */ |
812 media::JpegDecodeAccelerator::Error /* error */) | 817 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |