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

Unified Diff: ppapi/c/trusted/ppb_image_data_trusted.h

Issue 5410001: Change trusted shared memory interface to match audio.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 years, 1 month 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 | « ppapi/c/dev/ppb_buffer_dev.h ('k') | ppapi/cpp/dev/buffer_dev.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/c/trusted/ppb_image_data_trusted.h
===================================================================
--- ppapi/c/trusted/ppb_image_data_trusted.h (revision 67614)
+++ ppapi/c/trusted/ppb_image_data_trusted.h (working copy)
@@ -8,17 +8,19 @@
#include "ppapi/c/pp_stdint.h"
#include "ppapi/c/pp_resource.h"
-#define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.2"
+#define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.3"
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|.
+ * ImageData resource. Used for proxying. Returns PP_OK on success, or
+ * PP_ERROR_* on failure. On success, the size in bytes of the shared
+ * memory region will be placed into |*byte_count|, and the handle for
+ * the shared memory in |*handle|.
*/
- uint64_t (*GetNativeMemoryHandle)(PP_Resource image_data,
- uint32_t* byte_count);
+ int32_t (*GetSharedMemory)(PP_Resource image_data,
+ int* handle,
+ uint32_t* byte_count);
};
#endif // PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
« no previous file with comments | « ppapi/c/dev/ppb_buffer_dev.h ('k') | ppapi/cpp/dev/buffer_dev.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698