summaryrefslogtreecommitdiffstats
path: root/ppapi/c/dev/ppb_buffer_dev.h
diff options
context:
space:
mode:
authornfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 00:09:07 +0000
committernfullagar@google.com <nfullagar@google.com@0039d316-1c4b-4281-b951-d872f2087c98>2010-12-02 00:09:07 +0000
commit867b76d63d12736535ab4519ba706d08fbd3ad77 (patch)
treec254f26d3a37cbf1a3bf95f5d81e85b296914f80 /ppapi/c/dev/ppb_buffer_dev.h
parentacfd49c7e6f6ffbcb4b74aa35cc7d7926cd47771 (diff)
downloadchromium_src-867b76d63d12736535ab4519ba706d08fbd3ad77.zip
chromium_src-867b76d63d12736535ab4519ba706d08fbd3ad77.tar.gz
chromium_src-867b76d63d12736535ab4519ba706d08fbd3ad77.tar.bz2
Change trusted shared memory interface to match audio.
- shm handle uint64_t -> int - more unification of shm size from int32_t -> uint32_t - GetNativeMemoryHandle() -> GetSharedMemory() BUG=none TEST=src/ppapi/examples/ Review URL: http://codereview.chromium.org/5410001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@67910 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/c/dev/ppb_buffer_dev.h')
-rw-r--r--ppapi/c/dev/ppb_buffer_dev.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/ppapi/c/dev/ppb_buffer_dev.h b/ppapi/c/dev/ppb_buffer_dev.h
index cf43aa6..9906967 100644
--- a/ppapi/c/dev/ppb_buffer_dev.h
+++ b/ppapi/c/dev/ppb_buffer_dev.h
@@ -10,13 +10,13 @@
#include "ppapi/c/pp_resource.h"
#include "ppapi/c/pp_stdint.h"
-#define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.2"
+#define PPB_BUFFER_DEV_INTERFACE "PPB_Buffer(Dev);0.3"
struct PPB_Buffer_Dev {
// Allocates a buffer of the given size in bytes. The return value will have
// a non-zero ID on success, or zero on failure. Failure means the module
// handle was invalid. The buffer will be initialized to contain zeroes.
- PP_Resource (*Create)(PP_Module module, int32_t size_in_bytes);
+ PP_Resource (*Create)(PP_Module module, uint32_t size_in_bytes);
// Returns PP_TRUE if the given resource is a Buffer. Returns PP_FALSE if the
// resource is invalid or some type other than a Buffer.
@@ -24,7 +24,7 @@ struct PPB_Buffer_Dev {
// Gets the size of the buffer. Returns PP_TRUE on success, PP_FALSE
// if the resource is not a buffer. On failure, |*size_in_bytes| is not set.
- PP_Bool (*Describe)(PP_Resource resource, int32_t* size_in_bytes);
+ PP_Bool (*Describe)(PP_Resource resource, uint32_t* size_in_bytes);
// Maps this buffer into the plugin address space and returns a pointer to the
// beginning of the data.