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 header, no traditional include guard. | 5 // Multiply-included message header, no traditional include guard. |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <map> | 9 #include <map> |
10 #include <string> | 10 #include <string> |
(...skipping 1025 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1036 ppapi::HostResource /* context */, | 1036 ppapi::HostResource /* context */, |
1037 int32_t /* put_offset */) | 1037 int32_t /* put_offset */) |
1038 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, | 1038 IPC_SYNC_MESSAGE_ROUTED2_2(PpapiHostMsg_PPBGraphics3D_CreateTransferBuffer, |
1039 ppapi::HostResource /* context */, | 1039 ppapi::HostResource /* context */, |
1040 uint32_t /* size */, | 1040 uint32_t /* size */, |
1041 int32_t /* id */, | 1041 int32_t /* id */, |
1042 ppapi::proxy::SerializedHandle /* transfer_buffer */) | 1042 ppapi::proxy::SerializedHandle /* transfer_buffer */) |
1043 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, | 1043 IPC_SYNC_MESSAGE_ROUTED2_0(PpapiHostMsg_PPBGraphics3D_DestroyTransferBuffer, |
1044 ppapi::HostResource /* context */, | 1044 ppapi::HostResource /* context */, |
1045 int32_t /* id */) | 1045 int32_t /* id */) |
1046 // The receiver of this message takes ownership of the front buffer of the GL | |
1047 // context. Each call to PpapiHostMsg_PPBGraphics3D_SwapBuffers must be preceded | |
1048 // by exactly one call to PpapiHostMsg_PPBGraphics3D_TakeFrontBuffer. The | |
Tom Sepez
2016/04/28 17:48:04
What happens otherwise? Can a evil/misbehaving pp
erikchen
2016/04/28 17:50:10
Nope. The host will gracefully ignore the message
| |
1049 // SyncToken passed to PpapiHostMsg_PPBGraphics3D_SwapBuffers must be generated | |
1050 // after this message is sent. | |
1051 IPC_MESSAGE_ROUTED1(PpapiHostMsg_PPBGraphics3D_TakeFrontBuffer, | |
1052 ppapi::HostResource /* graphics_3d */) | |
1046 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_SwapBuffers, | 1053 IPC_MESSAGE_ROUTED2(PpapiHostMsg_PPBGraphics3D_SwapBuffers, |
1047 ppapi::HostResource /* graphics_3d */, | 1054 ppapi::HostResource /* graphics_3d */, |
1048 gpu::SyncToken /* sync_token */) | 1055 gpu::SyncToken /* sync_token */) |
1056 | |
bbudge
2016/04/28 20:13:27
nit: stray whitespace?
erikchen
2016/04/29 00:38:06
removed.
| |
1049 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible, | 1057 IPC_SYNC_MESSAGE_ROUTED1_0(PpapiHostMsg_PPBGraphics3D_EnsureWorkVisible, |
1050 ppapi::HostResource /* context */) | 1058 ppapi::HostResource /* context */) |
1051 | 1059 |
1052 // PPB_ImageData. | 1060 // PPB_ImageData. |
1053 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform, | 1061 IPC_SYNC_MESSAGE_ROUTED4_3(PpapiHostMsg_PPBImageData_CreatePlatform, |
1054 PP_Instance /* instance */, | 1062 PP_Instance /* instance */, |
1055 int32_t /* format */, | 1063 int32_t /* format */, |
1056 PP_Size /* size */, | 1064 PP_Size /* size */, |
1057 PP_Bool /* init_to_zero */, | 1065 PP_Bool /* init_to_zero */, |
1058 ppapi::HostResource /* result_resource */, | 1066 ppapi::HostResource /* result_resource */, |
(...skipping 1375 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
2434 std::vector<ppapi::HostResource> /* buffers */, | 2442 std::vector<ppapi::HostResource> /* buffers */, |
2435 uint32_t /* buffer_size */) | 2443 uint32_t /* buffer_size */) |
2436 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, | 2444 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnStatus, |
2437 uint32_t /* status */) | 2445 uint32_t /* status */) |
2438 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, | 2446 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnError, |
2439 uint32_t /* error */) | 2447 uint32_t /* error */) |
2440 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, | 2448 IPC_MESSAGE_CONTROL1(PpapiPluginMsg_VideoCapture_OnBufferReady, |
2441 uint32_t /* buffer */) | 2449 uint32_t /* buffer */) |
2442 | 2450 |
2443 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) | 2451 #endif // !defined(OS_NACL) && !defined(NACL_WIN64) |
OLD | NEW |