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

Unified Diff: src/shared/ppapi_proxy/plugin_image_data.cc

Issue 5974006: Convert srpc definitions from using int64 to using PP_Instance, PP_Module, an... (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: Created 10 years 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
Index: src/shared/ppapi_proxy/plugin_image_data.cc
===================================================================
--- src/shared/ppapi_proxy/plugin_image_data.cc (revision 4034)
+++ src/shared/ppapi_proxy/plugin_image_data.cc (working copy)
@@ -53,18 +53,18 @@
PP_ImageDataFormat format,
const struct PP_Size* size,
PP_Bool init_to_zero) {
- int64_t resource;
+ PP_Resource resource;
NaClSrpcError retval =
PpbImageDataRpcClient::PPB_ImageData_Create(
GetMainSrpcChannel(),
- static_cast<int64_t>(module),
+ module,
static_cast<int32_t>(format),
static_cast<nacl_abi_size_t>(sizeof(struct PP_Size)),
reinterpret_cast<int32_t*>(const_cast<struct PP_Size*>(size)),
(init_to_zero == PP_TRUE),
&resource);
if (retval == NACL_SRPC_RESULT_OK) {
polina 2010/12/23 21:58:30 we can get rid of this if-else now if we set resou
noelallen_use_chromium 2010/12/23 22:23:23 I'm not convinced we can count on the function not
polina 2010/12/23 22:33:14 We implement the server code, so we know exactly h
- return static_cast<PP_Resource>(resource);
+ return resource;
} else {
return kInvalidResourceId;
}
@@ -82,7 +82,7 @@
NaClSrpcError retval =
PpbImageDataRpcClient::PPB_ImageData_Describe(
GetMainSrpcChannel(),
- static_cast<int64_t>(resource),
+ resource,
&desc_size,
reinterpret_cast<int32_t*>(desc),
&result);

Powered by Google App Engine
This is Rietveld 408576698