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

Unified Diff: src/shared/ppapi_proxy/ppb_graphics_3d.srpc

Issue 7631010: NaCl Proxy for graphics3d. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 4 months 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « src/shared/ppapi_proxy/ppapi_proxy.gyp ('k') | src/shared/ppapi_proxy/ppb_rpc_client.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/shared/ppapi_proxy/ppb_graphics_3d.srpc
===================================================================
--- src/shared/ppapi_proxy/ppb_graphics_3d.srpc (revision 6482)
+++ src/shared/ppapi_proxy/ppb_graphics_3d.srpc (working copy)
@@ -13,6 +13,122 @@
{
'name': 'PpbGraphics3DRpc',
'rpcs': [
+ # For PPB_Graphics3D.Create(...)
+ {'name': 'PPB_Graphics3D_Create',
+ 'inputs': [['instance', 'PP_Instance'],
+ ['share_context', 'PP_Resource'],
+ ['attrib_list', 'int32_t[]']
+ ],
+ 'outputs': [['resource_id', 'PP_Resource']
+ ],
+ },
+ # For PPB_Graphics3D.GetAttribs(...)
+ {'name': 'PPB_Graphics3D_GetAttribs',
+ 'inputs': [['context', 'PP_Resource'],
+ ['input_attrib_list', 'int32_t[]']
+ ],
+ 'outputs': [['output_attrib_list', 'int32_t[]'],
+ ['pp_error', 'int32_t']
+ ],
+ },
+ # For PPB_Graphics3D.SetAttribs(...)
+ {'name': 'PPB_Graphics3D_SetAttribs',
+ 'inputs': [['context', 'PP_Resource'],
+ ['attrib_list', 'int32_t[]']
+ ],
+ 'outputs': [['pp_error', 'int32_t']
+ ],
+ },
+ # For PPB_Graphics3D.ResizeBuffers(...)
+ {'name': 'PPB_Graphics3D_ResizeBuffers',
+ 'inputs': [['context', 'PP_Resource'],
+ ['width', 'int32_t'],
+ ['height', 'int32_t']
+ ],
+ 'outputs': [['pp_error', 'int32_t']
+ ],
+ },
+ # For PPB_Graphics3D.SwapBuffers(...)
+ {'name': 'PPB_Graphics3D_SwapBuffers',
+ 'inputs': [['context', 'PP_Resource'],
+ ['callback_id', 'int32_t']
+ ],
+ 'outputs': [['pp_error', 'int32_t']
+ ],
+ },
+ # End of PPB_Graphics3D.
+
+ # Start of PPB_Graphics3DTrusted.
+ # Create a Graphics3D context.
+ {'name': 'PPB_Graphics3DTrusted_CreateRaw',
+ 'inputs': [['instance', 'PP_Instance'],
+ ['share_context', 'PP_Resource'],
+ ['attrib_list', 'int32_t[]']
+ ],
+ 'outputs': [['resource_id', 'PP_Resource']]
+ },
+ # Initialize the command buffer.
+ {'name': 'PPB_Graphics3DTrusted_InitCommandBuffer',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['size', 'int32_t']
+ ],
+ 'outputs': [['success', 'int32_t']] # PP_Bool
+ },
+ # Get the ring buffer.
+ {'name': 'PPB_Graphics3DTrusted_GetRingBuffer',
+ 'inputs': [['resource_id', 'PP_Resource']],
+ 'outputs': [['shm_desc', 'handle'],
+ ['shm_size', 'int32_t']
+ ]
+ },
+ # Get command buffer state.
+ {'name': 'PPB_Graphics3DTrusted_GetState',
+ 'inputs': [['resource_id', 'PP_Resource']],
+ 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState
+ ]
+ },
+ # Flush async.
+ {'name': 'PPB_Graphics3DTrusted_Flush',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['put_offset', 'int32_t']
+ ],
+ 'outputs': []
+ },
+ # Flush sync.
+ {'name': 'PPB_Graphics3DTrusted_FlushSync',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['put_offset', 'int32_t']
+ ],
+ 'outputs': [['state', 'char[]'], # PP_Graphics3DTrustedState
+ ]
+ },
+ # Create a shared memory transfer buffer.
+ {'name': 'PPB_Graphics3DTrusted_CreateTransferBuffer',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['size', 'int32_t'],
+ ['request_id', 'int32_t']
+ ],
+ 'outputs': [['id', 'int32_t']]
+ },
+ # Destroy a shared memory transfer buffer.
+ {'name': 'PPB_Graphics3DTrusted_DestroyTransferBuffer',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['id', 'int32_t'],
+ ],
+ 'outputs': []
+ },
+ # Get a shared memory transfer buffer.
+ {'name': 'PPB_Graphics3DTrusted_GetTransferBuffer',
+ 'inputs': [['resource_id', 'PP_Resource'],
+ ['id', 'int32_t'],
+ ],
+ 'outputs': [['shm_desc', 'handle'],
+ ['shm_size', 'int32_t']
+ ]
+ },
+ # End of PPB_Graphics3DTrusted
+
+ # Start of deprecated PPB_Context3D and PPB_Surface3D.
# Bind surfaces to the context.
{'name': 'PPB_Context3D_BindSurfaces',
'inputs': [['context', 'PP_Resource'],
« no previous file with comments | « src/shared/ppapi_proxy/ppapi_proxy.gyp ('k') | src/shared/ppapi_proxy/ppb_rpc_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698