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 129 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
140 IPC_STRUCT_MEMBER(float, m21) | 140 IPC_STRUCT_MEMBER(float, m21) |
141 IPC_STRUCT_MEMBER(float, m22) | 141 IPC_STRUCT_MEMBER(float, m22) |
142 IPC_STRUCT_MEMBER(float, m23) | 142 IPC_STRUCT_MEMBER(float, m23) |
143 IPC_STRUCT_MEMBER(float, m30) | 143 IPC_STRUCT_MEMBER(float, m30) |
144 IPC_STRUCT_MEMBER(float, m31) | 144 IPC_STRUCT_MEMBER(float, m31) |
145 IPC_STRUCT_MEMBER(float, m32) | 145 IPC_STRUCT_MEMBER(float, m32) |
146 IPC_STRUCT_MEMBER(float, m33) | 146 IPC_STRUCT_MEMBER(float, m33) |
147 IPC_STRUCT_END() | 147 IPC_STRUCT_END() |
148 #endif | 148 #endif |
149 | 149 |
150 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) | 150 IPC_STRUCT_TRAITS_BEGIN(gpu::DxDiagNode) |
151 IPC_STRUCT_TRAITS_MEMBER(values) | 151 IPC_STRUCT_TRAITS_MEMBER(values) |
152 IPC_STRUCT_TRAITS_MEMBER(children) | 152 IPC_STRUCT_TRAITS_MEMBER(children) |
153 IPC_STRUCT_TRAITS_END() | 153 IPC_STRUCT_TRAITS_END() |
154 | 154 |
155 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) | 155 IPC_STRUCT_TRAITS_BEGIN(gpu::GPUInfo::GPUDevice) |
156 IPC_STRUCT_TRAITS_MEMBER(vendor_id) | 156 IPC_STRUCT_TRAITS_MEMBER(vendor_id) |
157 IPC_STRUCT_TRAITS_MEMBER(device_id) | 157 IPC_STRUCT_TRAITS_MEMBER(device_id) |
158 IPC_STRUCT_TRAITS_MEMBER(active) | 158 IPC_STRUCT_TRAITS_MEMBER(active) |
159 IPC_STRUCT_TRAITS_MEMBER(vendor_string) | 159 IPC_STRUCT_TRAITS_MEMBER(vendor_string) |
160 IPC_STRUCT_TRAITS_MEMBER(device_string) | 160 IPC_STRUCT_TRAITS_MEMBER(device_string) |
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
268 | 268 |
269 // Tells the GPU process to create a new command buffer that renders directly | 269 // Tells the GPU process to create a new command buffer that renders directly |
270 // to a native view. A corresponding GpuCommandBufferStub is created. | 270 // to a native view. A corresponding GpuCommandBufferStub is created. |
271 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, | 271 IPC_MESSAGE_CONTROL5(GpuMsg_CreateViewCommandBuffer, |
272 gfx::GLSurfaceHandle, /* compositing_surface */ | 272 gfx::GLSurfaceHandle, /* compositing_surface */ |
273 int32, /* surface_id */ | 273 int32, /* surface_id */ |
274 int32, /* client_id */ | 274 int32, /* client_id */ |
275 GPUCreateCommandBufferConfig, /* init_params */ | 275 GPUCreateCommandBufferConfig, /* init_params */ |
276 int32 /* route_id */) | 276 int32 /* route_id */) |
277 | 277 |
| 278 // Tells the GPU process to create a new stream texture for rendering video. |
| 279 IPC_MESSAGE_CONTROL4(GpuMsg_CreateStreamTexture, |
| 280 int32, /* image_id */ |
| 281 int32, /* client_id */ |
| 282 int32, /* route_id */ |
| 283 int32 /* stream_id */) |
| 284 |
278 // Tells the GPU process to create a new gpu memory buffer. | 285 // Tells the GPU process to create a new gpu memory buffer. |
279 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, | 286 IPC_MESSAGE_CONTROL1(GpuMsg_CreateGpuMemoryBuffer, |
280 GpuMsg_CreateGpuMemoryBuffer_Params) | 287 GpuMsg_CreateGpuMemoryBuffer_Params) |
281 | 288 |
282 // Tells the GPU process to destroy buffer. | 289 // Tells the GPU process to destroy buffer. |
283 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, | 290 IPC_MESSAGE_CONTROL3(GpuMsg_DestroyGpuMemoryBuffer, |
284 gfx::GpuMemoryBufferId, /* id */ | 291 gfx::GpuMemoryBufferId, /* id */ |
285 int32, /* client_id */ | 292 int32, /* client_id */ |
286 int32 /* sync_point */) | 293 int32 /* sync_point */) |
287 | 294 |
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
349 gpu::GPUInfo /* stats about GPU process*/) | 356 gpu::GPUInfo /* stats about GPU process*/) |
350 | 357 |
351 // A renderer sends this to the browser process when it wants to | 358 // A renderer sends this to the browser process when it wants to |
352 // create a GL context associated with the given view_id. | 359 // create a GL context associated with the given view_id. |
353 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer, | 360 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateViewCommandBuffer, |
354 int32, /* surface_id */ | 361 int32, /* surface_id */ |
355 GPUCreateCommandBufferConfig, /* init_params */ | 362 GPUCreateCommandBufferConfig, /* init_params */ |
356 int32, /* route_id */ | 363 int32, /* route_id */ |
357 content::CreateCommandBufferResult /* result */) | 364 content::CreateCommandBufferResult /* result */) |
358 | 365 |
| 366 // A renderer sends this to the browser process when it wants to |
| 367 // create a streamtexture. |
| 368 IPC_SYNC_MESSAGE_CONTROL3_1(GpuHostMsg_CreateStreamTexture, |
| 369 int32, /* image_id */ |
| 370 int32, /* route_id */ |
| 371 int32, /* stream_id */ |
| 372 bool /*result*/) |
| 373 |
359 // Response from GPU to a GputMsg_Initialize message. | 374 // Response from GPU to a GputMsg_Initialize message. |
360 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, | 375 IPC_MESSAGE_CONTROL2(GpuHostMsg_Initialized, |
361 bool /* result */, | 376 bool /* result */, |
362 ::gpu::GPUInfo /* gpu_info */) | 377 ::gpu::GPUInfo /* gpu_info */) |
363 | 378 |
364 // Response from GPU to a GpuHostMsg_EstablishChannel message. | 379 // Response from GPU to a GpuHostMsg_EstablishChannel message. |
365 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, | 380 IPC_MESSAGE_CONTROL1(GpuHostMsg_ChannelEstablished, |
366 IPC::ChannelHandle /* channel_handle */) | 381 IPC::ChannelHandle /* channel_handle */) |
367 | 382 |
368 // Message from GPU to notify to destroy the channel. | 383 // Message from GPU to notify to destroy the channel. |
369 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyChannel, | 384 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyChannel, |
370 int32 /* client_id */) | 385 int32 /* client_id */) |
371 | 386 |
372 // Message to cache the given shader information. | 387 // Message to cache the given shader information. |
373 IPC_MESSAGE_CONTROL3(GpuHostMsg_CacheShader, | 388 IPC_MESSAGE_CONTROL3(GpuHostMsg_CacheShader, |
374 int32 /* client_id */, | 389 int32 /* client_id */, |
375 std::string /* key */, | 390 std::string /* key */, |
376 std::string /* shader */) | 391 std::string /* shader */) |
377 | 392 |
378 // Message to the GPU that a shader was loaded from disk. | 393 // Message to the GPU that a shader was loaded from disk. |
379 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, | 394 IPC_MESSAGE_CONTROL1(GpuMsg_LoadedShader, |
380 std::string /* encoded shader */) | 395 std::string /* encoded shader */) |
381 | 396 |
382 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. | 397 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. |
383 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 398 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
384 content::CreateCommandBufferResult /* result */) | 399 content::CreateCommandBufferResult /* result */) |
385 | 400 |
| 401 // Response message from GPU that a streamtexture is created. |
| 402 IPC_MESSAGE_CONTROL1(GpuHostMsg_StreamTextureCreated, unsigned /* result */) |
| 403 |
386 // Request from GPU to free the browser resources associated with the | 404 // Request from GPU to free the browser resources associated with the |
387 // command buffer. | 405 // command buffer. |
388 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 406 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
389 int32 /* surface_id */) | 407 int32 /* surface_id */) |
390 | 408 |
391 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. | 409 // Response from GPU to a GpuMsg_CreateGpuMemoryBuffer message. |
392 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, | 410 IPC_MESSAGE_CONTROL1(GpuHostMsg_GpuMemoryBufferCreated, |
393 gfx::GpuMemoryBufferHandle /* handle */) | 411 gfx::GpuMemoryBufferHandle /* handle */) |
394 | 412 |
395 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 413 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
(...skipping 396 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
792 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) | 810 IPC_MESSAGE_ROUTED0(AcceleratedJpegDecoderMsg_Destroy) |
793 | 811 |
794 //------------------------------------------------------------------------------ | 812 //------------------------------------------------------------------------------ |
795 // Accelerated JPEG Decoder Host Messages | 813 // Accelerated JPEG Decoder Host Messages |
796 // These messages are sent from the GPU process to Browser process. | 814 // These messages are sent from the GPU process to Browser process. |
797 // | 815 // |
798 // Report decode status. | 816 // Report decode status. |
799 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, | 817 IPC_MESSAGE_ROUTED2(AcceleratedJpegDecoderHostMsg_DecodeAck, |
800 int32, /* bitstream_buffer_id */ | 818 int32, /* bitstream_buffer_id */ |
801 media::JpegDecodeAccelerator::Error /* error */) | 819 media::JpegDecodeAccelerator::Error /* error */) |
OLD | NEW |