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