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

Side by Side Diff: ppapi/c/trusted/ppb_image_data_trusted.h

Issue 4611001: Change the private image data shared memory handle code to return a native... (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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.cc ('k') | webkit/glue/plugins/pepper_image_data.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 5 #ifndef PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
6 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 6 #define PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
7 7
8 #include "ppapi/c/pp_stdint.h" 8 #include "ppapi/c/pp_stdint.h"
9 #include "ppapi/c/pp_resource.h" 9 #include "ppapi/c/pp_resource.h"
10 10
11 #define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.1" 11 #define PPB_IMAGEDATA_TRUSTED_INTERFACE "PPB_ImageDataTrusted;0.2"
12 12
13 struct PPB_ImageDataTrusted { 13 struct PPB_ImageDataTrusted {
14 /** 14 /**
15 * Returns the internal shared memory pointer associated with the given 15 * Returns the internal shared memory pointer associated with the given
16 * ImageData resource. Used for proxying. Returns the handle or 0 on failure. 16 * ImageData resource. Used for proxying. Returns the handle or 0 on failure.
17 * On success, the size in bytes of the shared memory region will be placed
18 * into |*byte_count|.
17 */ 19 */
18 uint64_t (*GetNativeMemoryHandle)(PP_Resource image_data); 20 uint64_t (*GetNativeMemoryHandle)(PP_Resource image_data,
21 uint32_t* byte_count);
19 }; 22 };
20 23
21 #endif // PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_ 24 #endif // PPAPI_C_TRUSTED_PPB_IMAGE_DATA_TRUSTED_H_
OLDNEW
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.cc ('k') | webkit/glue/plugins/pepper_image_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698