| OLD | NEW |
| 1 # Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 # Copyright (c) 2011 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 # This file declares the RPC methods used to implement the Pepper 3D drawing | 5 # This file declares the RPC methods used to implement the Pepper 3D drawing |
| 6 # API. | 6 # API. |
| 7 # TODO(neb): Figure what the threading model really is. Keep the following | 7 # TODO(neb): Figure what the threading model really is. Keep the following |
| 8 # comment here until then, although it may be wrong: | 8 # comment here until then, although it may be wrong: |
| 9 # All of the following RPC methods are invoked on the NPAPI thread from | 9 # All of the following RPC methods are invoked on the NPAPI thread from |
| 10 # untrusted code. This means, due to the Pepper threading model, that they | 10 # untrusted code. This means, due to the Pepper threading model, that they |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 70 {'name': 'PPB_Graphics3DTrusted_CreateRaw', | 70 {'name': 'PPB_Graphics3DTrusted_CreateRaw', |
| 71 'inputs': [['instance', 'PP_Instance'], | 71 'inputs': [['instance', 'PP_Instance'], |
| 72 ['share_context', 'PP_Resource'], | 72 ['share_context', 'PP_Resource'], |
| 73 ['attrib_list', 'int32_t[]'] | 73 ['attrib_list', 'int32_t[]'] |
| 74 ], | 74 ], |
| 75 'outputs': [['resource_id', 'PP_Resource']] | 75 'outputs': [['resource_id', 'PP_Resource']] |
| 76 }, | 76 }, |
| 77 # Initialize the command buffer. | 77 # Initialize the command buffer. |
| 78 {'name': 'PPB_Graphics3DTrusted_InitCommandBuffer', | 78 {'name': 'PPB_Graphics3DTrusted_InitCommandBuffer', |
| 79 'inputs': [['resource_id', 'PP_Resource'], | 79 'inputs': [['resource_id', 'PP_Resource'], |
| 80 ['size', 'int32_t'] |
| 80 ], | 81 ], |
| 81 'outputs': [['success', 'int32_t']] # PP_Bool | 82 'outputs': [['success', 'int32_t']] # PP_Bool |
| 82 }, | 83 }, |
| 83 # Set the buffer used for commands. | 84 # Get the ring buffer. |
| 84 {'name': 'PPB_Graphics3DTrusted_SetGetBuffer', | 85 {'name': 'PPB_Graphics3DTrusted_GetRingBuffer', |
| 85 'inputs': [['resource_id', 'PP_Resource'], | 86 'inputs': [['resource_id', 'PP_Resource']], |
| 86 ['shm_id', 'int32_t'], | 87 'outputs': [['shm_desc', 'handle'], |
| 87 ], | 88 ['shm_size', 'int32_t'] |
| 88 'outputs': [] | 89 ] |
| 89 }, | 90 }, |
| 90 # Get command buffer state. | 91 # Get command buffer state. |
| 91 {'name': 'PPB_Graphics3DTrusted_GetState', | 92 {'name': 'PPB_Graphics3DTrusted_GetState', |
| 92 'inputs': [['resource_id', 'PP_Resource']], | 93 'inputs': [['resource_id', 'PP_Resource']], |
| 93 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState | 94 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState |
| 94 ] | 95 ] |
| 95 }, | 96 }, |
| 96 # Flush async. | 97 # Flush async. |
| 97 {'name': 'PPB_Graphics3DTrusted_Flush', | 98 {'name': 'PPB_Graphics3DTrusted_Flush', |
| 98 'inputs': [['resource_id', 'PP_Resource'], | 99 'inputs': [['resource_id', 'PP_Resource'], |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 134 }, | 135 }, |
| 135 # Get a shared memory transfer buffer. | 136 # Get a shared memory transfer buffer. |
| 136 {'name': 'PPB_Graphics3DTrusted_GetTransferBuffer', | 137 {'name': 'PPB_Graphics3DTrusted_GetTransferBuffer', |
| 137 'inputs': [['resource_id', 'PP_Resource'], | 138 'inputs': [['resource_id', 'PP_Resource'], |
| 138 ['id', 'int32_t'], | 139 ['id', 'int32_t'], |
| 139 ], | 140 ], |
| 140 'outputs': [['shm_desc', 'handle'], | 141 'outputs': [['shm_desc', 'handle'], |
| 141 ['shm_size', 'int32_t'] | 142 ['shm_size', 'int32_t'] |
| 142 ] | 143 ] |
| 143 }, | 144 }, |
| 144 # End of PPB_Graphics3DTrusted | 145 # End of PPB_Graphics3DTrusted |
| 145 ] | 146 ] |
| 146 } | 147 } |
| OLD | NEW |