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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/ppb_rpc_client.cc

Issue 8351023: PPAPI NaCl Proxy: optimize PPB_Fullscreen::IsFullscreen. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING 5 // WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING WARNING
6 // 6 //
7 // Automatically generated code. See srpcgen.py 7 // Automatically generated code. See srpcgen.py
8 // 8 //
9 // NaCl Simple Remote Procedure Call interface abstractions. 9 // NaCl Simple Remote Procedure Call interface abstractions.
10 10
(...skipping 1102 matching lines...) Expand 10 before | Expand all | Expand 10 after
1113 "PPB_Font_PixelOffsetForCharacter:iCCi:i", 1113 "PPB_Font_PixelOffsetForCharacter:iCCi:i",
1114 font, 1114 font,
1115 text_run_bytes, text_run, 1115 text_run_bytes, text_run,
1116 text_bytes, text, 1116 text_bytes, text,
1117 char_offset, 1117 char_offset,
1118 offset 1118 offset
1119 ); 1119 );
1120 return retval; 1120 return retval;
1121 } 1121 }
1122 1122
1123 NaClSrpcError PpbFullscreenRpcClient::PPB_Fullscreen_IsFullscreen(
1124 NaClSrpcChannel* channel,
1125 PP_Instance instance,
1126 int32_t* success) {
1127 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1128 ("%s: PPAPI calls are not supported off the main thread\n",
1129 __FUNCTION__));
1130 NaClSrpcError retval;
1131 retval = NaClSrpcInvokeBySignature(
1132 channel,
1133 "PPB_Fullscreen_IsFullscreen:i:i",
1134 instance,
1135 success
1136 );
1137 return retval;
1138 }
1139
1140 NaClSrpcError PpbFullscreenRpcClient::PPB_Fullscreen_SetFullscreen( 1123 NaClSrpcError PpbFullscreenRpcClient::PPB_Fullscreen_SetFullscreen(
1141 NaClSrpcChannel* channel, 1124 NaClSrpcChannel* channel,
1142 PP_Instance instance, 1125 PP_Instance instance,
1143 int32_t fullscreen, 1126 int32_t fullscreen,
1144 int32_t* success) { 1127 int32_t* success) {
1145 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1128 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1146 ("%s: PPAPI calls are not supported off the main thread\n", 1129 ("%s: PPAPI calls are not supported off the main thread\n",
1147 __FUNCTION__)); 1130 __FUNCTION__));
1148 NaClSrpcError retval; 1131 NaClSrpcError retval;
1149 retval = NaClSrpcInvokeBySignature( 1132 retval = NaClSrpcInvokeBySignature(
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
2839 channel, 2822 channel,
2840 "PPB_Zoom_ZoomLimitsChanged:idd:", 2823 "PPB_Zoom_ZoomLimitsChanged:idd:",
2841 instance, 2824 instance,
2842 minimum_factor, 2825 minimum_factor,
2843 maximum_factor 2826 maximum_factor
2844 ); 2827 );
2845 return retval; 2828 return retval;
2846 } 2829 }
2847 2830
2848 2831
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698