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 220 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
231 IPC::ChannelHandle /* channel_handle */) | 231 IPC::ChannelHandle /* channel_handle */) |
232 | 232 |
233 // Tells the GPU process to create a new command buffer that renders directly | 233 // Tells the GPU process to create a new command buffer that renders directly |
234 // to a native view. A corresponding GpuCommandBufferStub is created. | 234 // to a native view. A corresponding GpuCommandBufferStub is created. |
235 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, | 235 IPC_MESSAGE_CONTROL4(GpuMsg_CreateViewCommandBuffer, |
236 gfx::GLSurfaceHandle, /* compositing_surface */ | 236 gfx::GLSurfaceHandle, /* compositing_surface */ |
237 int32, /* surface_id */ | 237 int32, /* surface_id */ |
238 int32, /* client_id */ | 238 int32, /* client_id */ |
239 GPUCreateCommandBufferConfig /* init_params */) | 239 GPUCreateCommandBufferConfig /* init_params */) |
240 | 240 |
| 241 // Tells the GPU process to create a new image from a window. Images |
| 242 // can be bound to textures using CHROMIUM_texture_from_image. |
| 243 IPC_MESSAGE_CONTROL3(GpuMsg_CreateImage, |
| 244 gfx::PluginWindowHandle, /* window */ |
| 245 int32, /* client_id */ |
| 246 int32 /* image_id */) |
| 247 |
| 248 // Tells the GPU process to delete image. |
| 249 IPC_MESSAGE_CONTROL3(GpuMsg_DeleteImage, |
| 250 int32, /* client_id */ |
| 251 int32, /* image_id */ |
| 252 int32 /* sync_point */) |
| 253 |
241 // Tells the GPU process to create a context for collecting graphics card | 254 // Tells the GPU process to create a context for collecting graphics card |
242 // information. | 255 // information. |
243 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) | 256 IPC_MESSAGE_CONTROL0(GpuMsg_CollectGraphicsInfo) |
244 | 257 |
245 // Tells the GPU process to report video_memory information for the task manager | 258 // Tells the GPU process to report video_memory information for the task manager |
246 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) | 259 IPC_MESSAGE_CONTROL0(GpuMsg_GetVideoMemoryUsageStats) |
247 | 260 |
248 // Tells the GPU process' memory manager how many visible windows there are, so | 261 // Tells the GPU process' memory manager how many visible windows there are, so |
249 // it can partition memory amongst them. | 262 // it can partition memory amongst them. |
250 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount, | 263 IPC_MESSAGE_CONTROL1(GpuMsg_SetVideoMemoryWindowCount, |
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
304 | 317 |
305 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. | 318 // Respond from GPU to a GpuMsg_CreateViewCommandBuffer message. |
306 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, | 319 IPC_MESSAGE_CONTROL1(GpuHostMsg_CommandBufferCreated, |
307 int32 /* route_id */) | 320 int32 /* route_id */) |
308 | 321 |
309 // Request from GPU to free the browser resources associated with the | 322 // Request from GPU to free the browser resources associated with the |
310 // command buffer. | 323 // command buffer. |
311 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, | 324 IPC_MESSAGE_CONTROL1(GpuHostMsg_DestroyCommandBuffer, |
312 int32 /* surface_id */) | 325 int32 /* surface_id */) |
313 | 326 |
| 327 // Response from GPU to a GpuMsg_CreateImage message. |
| 328 IPC_MESSAGE_CONTROL1(GpuHostMsg_ImageCreated, |
| 329 gfx::Size /* size */) |
| 330 |
314 // Response from GPU to a GpuMsg_CollectGraphicsInfo. | 331 // Response from GPU to a GpuMsg_CollectGraphicsInfo. |
315 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, | 332 IPC_MESSAGE_CONTROL1(GpuHostMsg_GraphicsInfoCollected, |
316 content::GPUInfo /* GPU logging stats */) | 333 content::GPUInfo /* GPU logging stats */) |
317 | 334 |
318 // Response from GPU to a GpuMsg_GetVideoMemory. | 335 // Response from GPU to a GpuMsg_GetVideoMemory. |
319 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, | 336 IPC_MESSAGE_CONTROL1(GpuHostMsg_VideoMemoryUsageStats, |
320 content::GPUVideoMemoryUsageStats /* GPU memory stats */) | 337 content::GPUVideoMemoryUsageStats /* GPU memory stats */) |
321 | 338 |
322 // Message from GPU to add a GPU log message to the about:gpu page. | 339 // Message from GPU to add a GPU log message to the about:gpu page. |
323 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, | 340 IPC_MESSAGE_CONTROL3(GpuHostMsg_OnLogMessage, |
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
632 | 649 |
633 // Confirm decoder has been flushed. | 650 // Confirm decoder has been flushed. |
634 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 651 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
635 | 652 |
636 // Confirm decoder has been reset. | 653 // Confirm decoder has been reset. |
637 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 654 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
638 | 655 |
639 // Video decoder has encountered an error. | 656 // Video decoder has encountered an error. |
640 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 657 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
641 uint32) /* Error ID */ | 658 uint32) /* Error ID */ |
OLD | NEW |