From 9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e Mon Sep 17 00:00:00 2001 From: "piman@google.com" Date: Fri, 28 Jan 2011 19:59:10 +0000 Subject: Implements PPB_Context3DTrusted_Dev. Also add CreateRaw/Initialize for proxy This is the follow up to http://codereview.chromium.org/6293023/ BUG=none TEST=Pepper Flash Review URL: http://codereview.chromium.org/6314025 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@73000 0039d316-1c4b-4281-b951-d872f2087c98 --- ppapi/c/dev/ppb_context_3d_trusted_dev.h | 15 ++++++++++++++- 1 file changed, 14 insertions(+), 1 deletion(-) (limited to 'ppapi') diff --git a/ppapi/c/dev/ppb_context_3d_trusted_dev.h b/ppapi/c/dev/ppb_context_3d_trusted_dev.h index 98fe25b..3a8757d 100644 --- a/ppapi/c/dev/ppb_context_3d_trusted_dev.h +++ b/ppapi/c/dev/ppb_context_3d_trusted_dev.h @@ -9,7 +9,7 @@ #include "ppapi/c/pp_resource.h" #include "ppapi/c/pp_stdint.h" -#define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE "PPB_Context3DTrusted(Dev);0.1" +#define PPB_CONTEXT_3D_TRUSTED_DEV_INTERFACE "PPB_Context3DTrusted(Dev);0.2" enum PPB_Context3DTrustedError { kNoError, @@ -43,6 +43,19 @@ struct PP_Context3DTrustedState { }; struct PPB_Context3DTrusted_Dev { + // Creates a raw Context3D resource. A raw Context3D is intended to be used + // with the trusted interface, through the command buffer (for proxying). In + // particular, when a Surface3D is bound to a raw context, SwapBuffers has no + // effect. + PP_Resource (*CreateRaw)(PP_Instance instance_id, + PP_Config3D_Dev config, + PP_Resource share_context, + const int32_t* attrib_list); + + // Initializes the command buffer with the given size. + PP_Bool (*Initialize)(PP_Resource context_id, int32_t size); + + // Gets the ring buffer for the command buffer. PP_Bool (*GetRingBuffer)(PP_Resource context_id, int* shm_handle, uint32_t* shm_size); -- cgit v1.1