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

Unified Diff: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc

Issue 9405033: Revise gamepad interface (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 8 years, 10 months 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/examples/gamepad/gamepad.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_gamepad.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc
diff --git a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc
index 313e83db50c362bfc49be97465a7d7386d614c31..7ef24ca03c40c53a17cd841beb79121f6cb1dbcb 100644
--- a/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc
+++ b/ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_gamepad_rpc_server.cc
@@ -21,12 +21,12 @@ void PpbGamepadRpcServer::PPB_Gamepad_SampleGamepads(
nacl_abi_size_t* pads_bytes, char* pads) {
NaClSrpcClosureRunner runner(done);
rpc->result = NACL_SRPC_RESULT_APP_ERROR;
- if (*pads_bytes != sizeof(struct PP_GamepadsData_Dev))
+ if (*pads_bytes != sizeof(struct PP_GamepadsSampleData_Dev))
return;
- PPBGamepadInterface()->SampleGamepads(
+ PPBGamepadInterface()->Sample(
instance,
- reinterpret_cast<struct PP_GamepadsData_Dev*>(pads));
+ reinterpret_cast<struct PP_GamepadsSampleData_Dev*>(pads));
DebugPrintf("PPB_Gamepad::SampleGamepads\n");
rpc->result = NACL_SRPC_RESULT_OK;
« no previous file with comments | « ppapi/examples/gamepad/gamepad.cc ('k') | ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_gamepad.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698