| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 #include "gpu/command_buffer/common/command_buffer.h" |
| 6 #include "gpu/ipc/gpu_command_buffer_traits.h" |
| 5 #include "ipc/ipc_message_macros.h" | 7 #include "ipc/ipc_message_macros.h" |
| 6 #include "ppapi/c/dev/pp_file_info_dev.h" | 8 #include "ppapi/c/dev/pp_file_info_dev.h" |
| 7 #include "ppapi/c/ppb_var.h" | 9 #include "ppapi/c/ppb_var.h" |
| 8 | 10 |
| 9 #define IPC_MESSAGE_START PpapiMsgStart | 11 #define IPC_MESSAGE_START PpapiMsgStart |
| 10 | 12 |
| 11 // These are from the plugin to the renderer | 13 // These are from the plugin to the renderer |
| 12 // Loads the given plugin. | 14 // Loads the given plugin. |
| 13 IPC_MESSAGE_CONTROL3(PpapiMsg_LoadPlugin, | 15 IPC_MESSAGE_CONTROL3(PpapiMsg_LoadPlugin, |
| 14 base::ProcessHandle /* host_process_handle */, | 16 base::ProcessHandle /* host_process_handle */, |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 int32_t /* result_code (will be != PP_OK on failure) */, | 52 int32_t /* result_code (will be != PP_OK on failure) */, |
| 51 IPC::PlatformFileForTransit /* socket_handle */, | 53 IPC::PlatformFileForTransit /* socket_handle */, |
| 52 base::SharedMemoryHandle /* handle */, | 54 base::SharedMemoryHandle /* handle */, |
| 53 int32_t /* length */) | 55 int32_t /* length */) |
| 54 | 56 |
| 55 // PPB_Graphics2D. | 57 // PPB_Graphics2D. |
| 56 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, | 58 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBGraphics2D_FlushACK, |
| 57 pp::proxy::HostResource /* graphics_2d */, | 59 pp::proxy::HostResource /* graphics_2d */, |
| 58 int32_t /* pp_error */) | 60 int32_t /* pp_error */) |
| 59 | 61 |
| 62 // PPB_Surface3D. |
| 63 IPC_MESSAGE_ROUTED2(PpapiMsg_PPBSurface3D_SwapBuffersACK, |
| 64 pp::proxy::HostResource /* surface_3d */, |
| 65 int32_t /* pp_error */) |
| 66 |
| 60 // PPP_Class. | 67 // PPP_Class. |
| 61 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, | 68 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasProperty, |
| 62 int64 /* ppp_class */, | 69 int64 /* ppp_class */, |
| 63 int64 /* object */, | 70 int64 /* object */, |
| 64 pp::proxy::SerializedVar /* property */, | 71 pp::proxy::SerializedVar /* property */, |
| 65 pp::proxy::SerializedVar /* out_exception */, | 72 pp::proxy::SerializedVar /* out_exception */, |
| 66 bool /* result */) | 73 bool /* result */) |
| 67 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, | 74 IPC_SYNC_MESSAGE_ROUTED3_2(PpapiMsg_PPPClass_HasMethod, |
| 68 int64 /* ppp_class */, | 75 int64 /* ppp_class */, |
| 69 int64 /* object */, | 76 int64 /* object */, |
| (...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 int64 /* object */) | 117 int64 /* object */) |
| 111 | 118 |
| 112 // PPP_Instance. | 119 // PPP_Instance. |
| 113 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, | 120 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiMsg_PPPInstance_DidCreate, |
| 114 PP_Instance /* instance */, | 121 PP_Instance /* instance */, |
| 115 std::vector<std::string> /* argn */, | 122 std::vector<std::string> /* argn */, |
| 116 std::vector<std::string> /* argv */, | 123 std::vector<std::string> /* argv */, |
| 117 PP_Bool /* result */) | 124 PP_Bool /* result */) |
| 118 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, | 125 IPC_MESSAGE_ROUTED1(PpapiMsg_PPPInstance_DidDestroy, |
| 119 PP_Instance /* instance */) | 126 PP_Instance /* instance */) |
| 120 IPC_MESSAGE_ROUTED3(PpapiMsg_PPPInstance_DidChangeView, | 127 // TODO(piman): DidChangeView should be async, but doing so causes an issue with |
| 128 // webkit and accelerated compositing. Turn back to async once this is fixed. |
| 129 IPC_SYNC_MESSAGE_ROUTED3_0(PpapiMsg_PPPInstance_DidChangeView, |
| 121 PP_Instance /* instance */, | 130 PP_Instance /* instance */, |
| 122 PP_Rect /* position */, | 131 PP_Rect /* position */, |
| 123 PP_Rect /* clip */) | 132 PP_Rect /* clip */) |
| 124 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, | 133 IPC_MESSAGE_ROUTED2(PpapiMsg_PPPInstance_DidChangeFocus, |
| 125 PP_Instance /* instance */, | 134 PP_Instance /* instance */, |
| 126 PP_Bool /* has_focus */) | 135 PP_Bool /* has_focus */) |
| 127 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent, | 136 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiMsg_PPPInstance_HandleInputEvent, |
| 128 PP_Instance /* instance */, | 137 PP_Instance /* instance */, |
| 129 PP_InputEvent /* event */, | 138 PP_InputEvent /* event */, |
| 130 PP_Bool /* result */) | 139 PP_Bool /* result */) |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 173 uint32_t /* requested */, | 182 uint32_t /* requested */, |
| 174 uint32_t /* result */) | 183 uint32_t /* result */) |
| 175 | 184 |
| 176 // PPB_Buffer. | 185 // PPB_Buffer. |
| 177 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, | 186 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBBuffer_Create, |
| 178 PP_Instance /* instance */, | 187 PP_Instance /* instance */, |
| 179 uint32_t /* size */, | 188 uint32_t /* size */, |
| 180 pp::proxy::HostResource /* result_resource */, | 189 pp::proxy::HostResource /* result_resource */, |
| 181 int32_t /* result_shm_handle */) | 190 int32_t /* result_shm_handle */) |
| 182 | 191 |
| 192 // PPB_Context3D. |
| 193 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_Create, |
| 194 PP_Instance /* instance */, |
| 195 int32_t /* config */, |
| 196 std::vector<int32_t> /* attrib_list */, |
| 197 pp::proxy::HostResource /* result */) |
| 198 |
| 199 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBContext3D_BindSurfaces, |
| 200 pp::proxy::HostResource /* context */, |
| 201 pp::proxy::HostResource /* draw */, |
| 202 pp::proxy::HostResource /* read */, |
| 203 int32_t /* result */) |
| 204 |
| 205 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Initialize, |
| 206 pp::proxy::HostResource /* context */, |
| 207 int32 /* size */, |
| 208 base::SharedMemoryHandle /* ring_buffer */) |
| 209 |
| 210 IPC_SYNC_MESSAGE_ROUTED1_1(PpapiHostMsg_PPBContext3D_GetState, |
| 211 pp::proxy::HostResource /* context */, |
| 212 gpu::CommandBuffer::State /* state */) |
| 213 |
| 214 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_Flush, |
| 215 pp::proxy::HostResource /* context */, |
| 216 int32 /* put_offset */, |
| 217 gpu::CommandBuffer::State /* state */) |
| 218 |
| 219 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBContext3D_AsyncFlush, |
| 220 pp::proxy::HostResource /* context */, |
| 221 int32 /* put_offset */) |
| 222 |
| 223 IPC_SYNC_MESSAGE_ROUTED2_1(PpapiHostMsg_PPBContext3D_CreateTransferBuffer, |
| 224 pp::proxy::HostResource /* context */, |
| 225 int32 /* size */, |
| 226 int32 /* id */) |
| 227 |
| 228 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBContext3D_DestroyTransferBuffer, |
| 229 pp::proxy::HostResource /* context */, |
| 230 int32 /* id */) |
| 231 |
| 232 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBContext3D_GetTransferBuffer, |
| 233 pp::proxy::HostResource /* context */, |
| 234 int32 /* id */, |
| 235 base::SharedMemoryHandle /* transfer_buffer */, |
| 236 uint32 /* size */) |
| 237 |
| 183 // PPB_Core. | 238 // PPB_Core. |
| 184 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, | 239 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_AddRefResource, |
| 185 pp::proxy::HostResource) | 240 pp::proxy::HostResource) |
| 186 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, | 241 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBCore_ReleaseResource, |
| 187 pp::proxy::HostResource) | 242 pp::proxy::HostResource) |
| 188 | 243 |
| 189 // PPB_CharSet. | 244 // PPB_CharSet. |
| 190 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet, | 245 IPC_SYNC_MESSAGE_ROUTED4_2(PpapiHostMsg_PPBCharSet_UTF16ToCharSet, |
| 191 PP_Instance /* instance */, | 246 PP_Instance /* instance */, |
| 192 string16 /* utf16 */, | 247 string16 /* utf16 */, |
| (...skipping 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 375 PP_Instance /* instance */, | 430 PP_Instance /* instance */, |
| 376 pp::proxy::SerializedFontDescription /* description */, | 431 pp::proxy::SerializedFontDescription /* description */, |
| 377 int32_t /* charset */, | 432 int32_t /* charset */, |
| 378 pp::proxy::HostResource /* result */) | 433 pp::proxy::HostResource /* result */) |
| 379 IPC_SYNC_MESSAGE_ROUTED2_1( | 434 IPC_SYNC_MESSAGE_ROUTED2_1( |
| 380 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, | 435 PpapiHostMsg_PPBPDF_GetFontTableForPrivateFontFile, |
| 381 pp::proxy::HostResource /* font_file */, | 436 pp::proxy::HostResource /* font_file */, |
| 382 uint32_t /* table */, | 437 uint32_t /* table */, |
| 383 std::string /* result */) | 438 std::string /* result */) |
| 384 | 439 |
| 440 // PPB_Surface3D. |
| 441 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBSurface3D_Create, |
| 442 PP_Instance /* instance */, |
| 443 int32_t /* config */, |
| 444 std::vector<int32_t> /* attrib_list */, |
| 445 pp::proxy::HostResource /* result */) |
| 446 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBSurface3D_SwapBuffers, |
| 447 pp::proxy::HostResource /* surface_3d */) |
| 448 |
| 385 // PPB_Testing. | 449 // PPB_Testing. |
| 386 IPC_SYNC_MESSAGE_ROUTED3_1( | 450 IPC_SYNC_MESSAGE_ROUTED3_1( |
| 387 PpapiHostMsg_PPBTesting_ReadImageData, | 451 PpapiHostMsg_PPBTesting_ReadImageData, |
| 388 pp::proxy::HostResource /* device_context_2d */, | 452 pp::proxy::HostResource /* device_context_2d */, |
| 389 pp::proxy::HostResource /* image */, | 453 pp::proxy::HostResource /* image */, |
| 390 PP_Point /* top_left */, | 454 PP_Point /* top_left */, |
| 391 PP_Bool /* result */) | 455 PP_Bool /* result */) |
| 392 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop, | 456 IPC_SYNC_MESSAGE_ROUTED0_1(PpapiHostMsg_PPBTesting_RunMessageLoop, |
| 393 bool /* dummy since there's no 0_0 variant */) | 457 bool /* dummy since there's no 0_0 variant */) |
| 394 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop) | 458 IPC_MESSAGE_ROUTED0(PpapiHostMsg_PPBTesting_QuitMessageLoop) |
| (...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 519 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, | 583 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBVar_IsInstanceOfDeprecated, |
| 520 pp::proxy::SerializedVar /* var */, | 584 pp::proxy::SerializedVar /* var */, |
| 521 int64 /* object_class */, | 585 int64 /* object_class */, |
| 522 int64 /* object-data */, | 586 int64 /* object-data */, |
| 523 PP_Bool /* result */) | 587 PP_Bool /* result */) |
| 524 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, | 588 IPC_SYNC_MESSAGE_ROUTED3_1(PpapiHostMsg_PPBVar_CreateObjectDeprecated, |
| 525 PP_Instance /* instance */, | 589 PP_Instance /* instance */, |
| 526 int64 /* object_class */, | 590 int64 /* object_class */, |
| 527 int64 /* object_data */, | 591 int64 /* object_data */, |
| 528 pp::proxy::SerializedVar /* result */) | 592 pp::proxy::SerializedVar /* result */) |
| OLD | NEW |