| 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 66 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 | 77 |
| 78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) | 78 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRelease_Params) |
| 79 IPC_STRUCT_MEMBER(int32, surface_id) | 79 IPC_STRUCT_MEMBER(int32, surface_id) |
| 80 IPC_STRUCT_MEMBER(uint64, identifier) | 80 IPC_STRUCT_MEMBER(uint64, identifier) |
| 81 IPC_STRUCT_MEMBER(int32, route_id) | 81 IPC_STRUCT_MEMBER(int32, route_id) |
| 82 #if defined(OS_MACOSX) | 82 #if defined(OS_MACOSX) |
| 83 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) | 83 IPC_STRUCT_MEMBER(gfx::PluginWindowHandle, window) |
| 84 #endif | 84 #endif |
| 85 IPC_STRUCT_END() | 85 IPC_STRUCT_END() |
| 86 | 86 |
| 87 IPC_STRUCT_BEGIN(GpuHostMsg_AcceleratedSurfaceRequestReleaseFront_Params) |
| 88 IPC_STRUCT_MEMBER(int32, surface_id) |
| 89 IPC_STRUCT_MEMBER(uint64, identifier) |
| 90 IPC_STRUCT_MEMBER(int32, route_id) |
| 91 IPC_STRUCT_MEMBER(int, request_id) |
| 92 IPC_STRUCT_MEMBER(int, retry_count) |
| 93 IPC_STRUCT_END() |
| 94 |
| 87 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) | 95 IPC_STRUCT_BEGIN(GPUCommandBufferConsoleMessage) |
| 88 IPC_STRUCT_MEMBER(int32, id) | 96 IPC_STRUCT_MEMBER(int32, id) |
| 89 IPC_STRUCT_MEMBER(std::string, message) | 97 IPC_STRUCT_MEMBER(std::string, message) |
| 90 IPC_STRUCT_END() | 98 IPC_STRUCT_END() |
| 91 | 99 |
| 92 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode) | 100 IPC_STRUCT_TRAITS_BEGIN(content::DxDiagNode) |
| 93 IPC_STRUCT_TRAITS_MEMBER(values) | 101 IPC_STRUCT_TRAITS_MEMBER(values) |
| 94 IPC_STRUCT_TRAITS_MEMBER(children) | 102 IPC_STRUCT_TRAITS_MEMBER(children) |
| 95 IPC_STRUCT_TRAITS_END() | 103 IPC_STRUCT_TRAITS_END() |
| 96 | 104 |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 201 |
| 194 // Tells the GPU process that the browser process has finished resizing the | 202 // Tells the GPU process that the browser process has finished resizing the |
| 195 // view. | 203 // view. |
| 196 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) | 204 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_ResizeViewACK) |
| 197 | 205 |
| 198 // Tells the GPU process that it's safe to start rendering to the surface. | 206 // Tells the GPU process that it's safe to start rendering to the surface. |
| 199 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, | 207 IPC_MESSAGE_ROUTED2(AcceleratedSurfaceMsg_NewACK, |
| 200 uint64 /* surface_handle */, | 208 uint64 /* surface_handle */, |
| 201 TransportDIB::Handle /* shared memory buffer */) | 209 TransportDIB::Handle /* shared memory buffer */) |
| 202 | 210 |
| 211 // Tells the GPU process that it can now safely release the front surface. |
| 212 IPC_MESSAGE_ROUTED3(AcceleratedSurfaceMsg_RequestReleaseFrontACK, |
| 213 int /* request_id */, |
| 214 int /* retry_count */, |
| 215 bool /* was_released */) |
| 216 |
| 217 // Tells the GPU process if it's worth suggesting release of the front surface. |
| 218 IPC_MESSAGE_ROUTED1(AcceleratedSurfaceMsg_SetFrontSurfaceIsProtected, |
| 219 bool /* is_protected */) |
| 220 |
| 203 // Tells the GPU process that the browser process handled the swap | 221 // Tells the GPU process that the browser process handled the swap |
| 204 // buffers request. | 222 // buffers request. |
| 205 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) | 223 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_BuffersSwappedACK) |
| 206 | 224 |
| 207 // Tells the GPU process that the browser process handled the | 225 // Tells the GPU process that the browser process handled the |
| 208 // PostSubBuffer command. | 226 // PostSubBuffer command. |
| 209 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK) | 227 IPC_MESSAGE_ROUTED0(AcceleratedSurfaceMsg_PostSubBufferACK) |
| 210 | 228 |
| 211 // Tells the GPU process to remove all contexts. | 229 // Tells the GPU process to remove all contexts. |
| 212 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) | 230 IPC_MESSAGE_CONTROL0(GpuMsg_Clean) |
| (...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 288 // the given surface. The browser must send an ACK once this operation | 306 // the given surface. The browser must send an ACK once this operation |
| 289 // is complete. | 307 // is complete. |
| 290 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease, | 308 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRelease, |
| 291 GpuHostMsg_AcceleratedSurfaceRelease_Params) | 309 GpuHostMsg_AcceleratedSurfaceRelease_Params) |
| 292 | 310 |
| 293 // Tells the browser to release resources for the given surface until the next | 311 // Tells the browser to release resources for the given surface until the next |
| 294 // time swap buffers or post sub buffer is sent. | 312 // time swap buffers or post sub buffer is sent. |
| 295 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, | 313 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceSuspend, |
| 296 int32 /* surface_id */) | 314 int32 /* surface_id */) |
| 297 | 315 |
| 316 // Tells the browser to release its handle to the given frontbuffer surface. |
| 317 IPC_MESSAGE_CONTROL1(GpuHostMsg_AcceleratedSurfaceRequestReleaseFront, |
| 318 GpuHostMsg_AcceleratedSurfaceRequestReleaseFront_Params) |
| 319 |
| 298 //------------------------------------------------------------------------------ | 320 //------------------------------------------------------------------------------ |
| 299 // GPU Channel Messages | 321 // GPU Channel Messages |
| 300 // These are messages from a renderer process to the GPU process. | 322 // These are messages from a renderer process to the GPU process. |
| 301 | 323 |
| 302 // Tells the GPU process to create a new command buffer that renders to an | 324 // Tells the GPU process to create a new command buffer that renders to an |
| 303 // offscreen frame buffer. | 325 // offscreen frame buffer. |
| 304 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, | 326 IPC_SYNC_MESSAGE_CONTROL2_1(GpuChannelMsg_CreateOffscreenCommandBuffer, |
| 305 gfx::Size, /* size */ | 327 gfx::Size, /* size */ |
| 306 GPUCreateCommandBufferConfig, /* init_params */ | 328 GPUCreateCommandBufferConfig, /* init_params */ |
| 307 int32 /* route_id */) | 329 int32 /* route_id */) |
| (...skipping 208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 516 | 538 |
| 517 // Confirm decoder has been flushed. | 539 // Confirm decoder has been flushed. |
| 518 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) | 540 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_FlushDone) |
| 519 | 541 |
| 520 // Confirm decoder has been reset. | 542 // Confirm decoder has been reset. |
| 521 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) | 543 IPC_MESSAGE_ROUTED0(AcceleratedVideoDecoderHostMsg_ResetDone) |
| 522 | 544 |
| 523 // Video decoder has encountered an error. | 545 // Video decoder has encountered an error. |
| 524 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, | 546 IPC_MESSAGE_ROUTED1(AcceleratedVideoDecoderHostMsg_ErrorNotification, |
| 525 uint32) /* Error ID */ | 547 uint32) /* Error ID */ |
| OLD | NEW |