Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(374)

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_graphics_3d.srpc

Issue 8919014: Revert "Revert 113479 - Revert "Revert 113250 - Add CommandBuffer::SetGetBuffer"" (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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']
81 ], 80 ],
82 'outputs': [['success', 'int32_t']] # PP_Bool 81 'outputs': [['success', 'int32_t']] # PP_Bool
83 }, 82 },
84 # Get the ring buffer. 83 # Set the buffer used for commands.
85 {'name': 'PPB_Graphics3DTrusted_GetRingBuffer', 84 {'name': 'PPB_Graphics3DTrusted_SetGetBuffer',
86 'inputs': [['resource_id', 'PP_Resource']], 85 'inputs': [['resource_id', 'PP_Resource'],
87 'outputs': [['shm_desc', 'handle'], 86 ['shm_id', 'int32_t'],
88 ['shm_size', 'int32_t'] 87 ],
89 ] 88 'outputs': []
90 }, 89 },
91 # Get command buffer state. 90 # Get command buffer state.
92 {'name': 'PPB_Graphics3DTrusted_GetState', 91 {'name': 'PPB_Graphics3DTrusted_GetState',
93 'inputs': [['resource_id', 'PP_Resource']], 92 'inputs': [['resource_id', 'PP_Resource']],
94 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState 93 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState
95 ] 94 ]
96 }, 95 },
97 # Flush async. 96 # Flush async.
98 {'name': 'PPB_Graphics3DTrusted_Flush', 97 {'name': 'PPB_Graphics3DTrusted_Flush',
99 'inputs': [['resource_id', 'PP_Resource'], 98 'inputs': [['resource_id', 'PP_Resource'],
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 }, 134 },
136 # Get a shared memory transfer buffer. 135 # Get a shared memory transfer buffer.
137 {'name': 'PPB_Graphics3DTrusted_GetTransferBuffer', 136 {'name': 'PPB_Graphics3DTrusted_GetTransferBuffer',
138 'inputs': [['resource_id', 'PP_Resource'], 137 'inputs': [['resource_id', 'PP_Resource'],
139 ['id', 'int32_t'], 138 ['id', 'int32_t'],
140 ], 139 ],
141 'outputs': [['shm_desc', 'handle'], 140 'outputs': [['shm_desc', 'handle'],
142 ['shm_size', 'int32_t'] 141 ['shm_size', 'int32_t']
143 ] 142 ]
144 }, 143 },
145 # End of PPB_Graphics3DTrusted 144 # End of PPB_Graphics3DTrusted
146 ] 145 ]
147 } 146 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698