Chromium Code Reviews| 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); |