summaryrefslogtreecommitdiffstats
path: root/ppapi
diff options
context:
space:
mode:
authorbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 03:06:51 +0000
committerbrettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-11-09 03:06:51 +0000
commit3f5ca5c7f09aa0542d5e9bf9da76a4b1c408d1e0 (patch)
treeb877715dc62601ad153e89a5315a34b197398533 /ppapi
parentf9610ab5622cef8a8ac0d3ad421e0bd2d75a0d8f (diff)
downloadchromium_src-3f5ca5c7f09aa0542d5e9bf9da76a4b1c408d1e0.zip
chromium_src-3f5ca5c7f09aa0542d5e9bf9da76a4b1c408d1e0.tar.gz
chromium_src-3f5ca5c7f09aa0542d5e9bf9da76a4b1c408d1e0.tar.bz2
Change the private image data shared memory handle code to return a native
memory handle and a size rather than the internal TransportDIB structure. TEST=none BUG=none Review URL: http://codereview.chromium.org/4611001 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@65482 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi')
-rw-r--r--ppapi/c/trusted/ppb_image_data_trusted.h7
1 files changed, 5 insertions, 2 deletions
diff --git a/ppapi/c/trusted/ppb_image_data_trusted.h b/ppapi/c/trusted/ppb_image_data_trusted.h
index b72dcc2..7f3b410 100644
--- a/ppapi/c/trusted/ppb_image_data_trusted.h
+++ b/ppapi/c/trusted/ppb_image_data_trusted.h
@@ -8,14 +8,17 @@
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_resource.h"
-#define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.1"
+#define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.2"
struct PPB_ImageDataTrusted {
/**
* Returns the internal shared memory pointer associated with the given
* ImageData resource. Used for proxying. Returns the handle or 0 on failure.
+ * On success, the size in bytes of the shared memory region will be placed
+ * into |*byte_count|.
*/
- uint64_t (*GetNativeMemoryHandle)(PP_Resource image_data);
+ uint64_t (*GetNativeMemoryHandle)(PP_Resource image_data,
+ uint32_t* byte_count);
};
#endif // PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_