diff options
author | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:59:10 +0000 |
---|---|---|
committer | piman@google.com <piman@google.com@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-28 19:59:10 +0000 |
commit | 9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e (patch) | |
tree | 7bd1a698b90ecf1316ef848dddf5ca610822bed2 /ppapi | |
parent | 461e1257fb2be43eba5249e5d486acec04d45167 (diff) | |
download | chromium_src-9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e.zip chromium_src-9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e.tar.gz chromium_src-9d44b21e1c59e8483fdb9edcd5d8745e08fe6e7e.tar.bz2 |
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
Diffstat (limited to 'ppapi')
-rw-r--r-- | ppapi/c/dev/ppb_context_3d_trusted_dev.h | 15 |
1 files changed, 14 insertions, 1 deletions
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); |