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

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

Issue 7631010: NaCl Proxy for graphics3d. (Closed) Base URL: svn://svn.chromium.org/native_client/trunk/src/native_client/
Patch Set: '' Created 9 years, 4 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « src/shared/ppapi_proxy/ppb_graphics_3d.srpc ('k') | src/shared/ppapi_proxy/ppb_rpc_server.cc » ('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) 2011 The Native Client Authors. All rights reserved. 1 // Copyright (c) 2011 The Native Client 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 1237 matching lines...) Expand 10 before | Expand all | Expand 10 after
1248 retval = NaClSrpcInvokeBySignature( 1248 retval = NaClSrpcInvokeBySignature(
1249 channel, 1249 channel,
1250 "PPB_Graphics2D_Flush:ii:i", 1250 "PPB_Graphics2D_Flush:ii:i",
1251 graphics_2d, 1251 graphics_2d,
1252 callback_id, 1252 callback_id,
1253 pp_error 1253 pp_error
1254 ); 1254 );
1255 return retval; 1255 return retval;
1256 } 1256 }
1257 1257
1258 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3D_Create(
1259 NaClSrpcChannel* channel,
1260 PP_Instance instance,
1261 PP_Resource share_context,
1262 nacl_abi_size_t attrib_list_bytes, int32_t* attrib_list,
1263 PP_Resource* resource_id) {
1264 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1265 ("%s: PPAPI calls are not supported off the main thread\n",
1266 __FUNCTION__));
1267 NaClSrpcError retval;
1268 retval = NaClSrpcInvokeBySignature(
1269 channel,
1270 "PPB_Graphics3D_Create:iiI:i",
1271 instance,
1272 share_context,
1273 attrib_list_bytes, attrib_list,
1274 resource_id
1275 );
1276 return retval;
1277 }
1278
1279 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3D_GetAttribs(
1280 NaClSrpcChannel* channel,
1281 PP_Resource context,
1282 nacl_abi_size_t input_attrib_list_bytes, int32_t* input_attrib_list,
1283 nacl_abi_size_t* output_attrib_list_bytes, int32_t* output_attrib_list,
1284 int32_t* pp_error) {
1285 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1286 ("%s: PPAPI calls are not supported off the main thread\n",
1287 __FUNCTION__));
1288 NaClSrpcError retval;
1289 retval = NaClSrpcInvokeBySignature(
1290 channel,
1291 "PPB_Graphics3D_GetAttribs:iI:Ii",
1292 context,
1293 input_attrib_list_bytes, input_attrib_list,
1294 output_attrib_list_bytes, output_attrib_list,
1295 pp_error
1296 );
1297 return retval;
1298 }
1299
1300 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3D_SetAttribs(
1301 NaClSrpcChannel* channel,
1302 PP_Resource context,
1303 nacl_abi_size_t attrib_list_bytes, int32_t* attrib_list,
1304 int32_t* pp_error) {
1305 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1306 ("%s: PPAPI calls are not supported off the main thread\n",
1307 __FUNCTION__));
1308 NaClSrpcError retval;
1309 retval = NaClSrpcInvokeBySignature(
1310 channel,
1311 "PPB_Graphics3D_SetAttribs:iI:i",
1312 context,
1313 attrib_list_bytes, attrib_list,
1314 pp_error
1315 );
1316 return retval;
1317 }
1318
1319 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3D_ResizeBuffers(
1320 NaClSrpcChannel* channel,
1321 PP_Resource context,
1322 int32_t width,
1323 int32_t height,
1324 int32_t* pp_error) {
1325 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1326 ("%s: PPAPI calls are not supported off the main thread\n",
1327 __FUNCTION__));
1328 NaClSrpcError retval;
1329 retval = NaClSrpcInvokeBySignature(
1330 channel,
1331 "PPB_Graphics3D_ResizeBuffers:iii:i",
1332 context,
1333 width,
1334 height,
1335 pp_error
1336 );
1337 return retval;
1338 }
1339
1340 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3D_SwapBuffers(
1341 NaClSrpcChannel* channel,
1342 PP_Resource context,
1343 int32_t callback_id,
1344 int32_t* pp_error) {
1345 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1346 ("%s: PPAPI calls are not supported off the main thread\n",
1347 __FUNCTION__));
1348 NaClSrpcError retval;
1349 retval = NaClSrpcInvokeBySignature(
1350 channel,
1351 "PPB_Graphics3D_SwapBuffers:ii:i",
1352 context,
1353 callback_id,
1354 pp_error
1355 );
1356 return retval;
1357 }
1358
1359 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_CreateRaw(
1360 NaClSrpcChannel* channel,
1361 PP_Instance instance,
1362 PP_Resource share_context,
1363 nacl_abi_size_t attrib_list_bytes, int32_t* attrib_list,
1364 PP_Resource* resource_id) {
1365 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1366 ("%s: PPAPI calls are not supported off the main thread\n",
1367 __FUNCTION__));
1368 NaClSrpcError retval;
1369 retval = NaClSrpcInvokeBySignature(
1370 channel,
1371 "PPB_Graphics3DTrusted_CreateRaw:iiI:i",
1372 instance,
1373 share_context,
1374 attrib_list_bytes, attrib_list,
1375 resource_id
1376 );
1377 return retval;
1378 }
1379
1380 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_InitCommandBuffer(
1381 NaClSrpcChannel* channel,
1382 PP_Resource resource_id,
1383 int32_t size,
1384 int32_t* success) {
1385 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1386 ("%s: PPAPI calls are not supported off the main thread\n",
1387 __FUNCTION__));
1388 NaClSrpcError retval;
1389 retval = NaClSrpcInvokeBySignature(
1390 channel,
1391 "PPB_Graphics3DTrusted_InitCommandBuffer:ii:i",
1392 resource_id,
1393 size,
1394 success
1395 );
1396 return retval;
1397 }
1398
1399 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_GetRingBuffer(
1400 NaClSrpcChannel* channel,
1401 PP_Resource resource_id,
1402 NaClSrpcImcDescType* shm_desc,
1403 int32_t* shm_size) {
1404 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1405 ("%s: PPAPI calls are not supported off the main thread\n",
1406 __FUNCTION__));
1407 NaClSrpcError retval;
1408 retval = NaClSrpcInvokeBySignature(
1409 channel,
1410 "PPB_Graphics3DTrusted_GetRingBuffer:i:hi",
1411 resource_id,
1412 shm_desc,
1413 shm_size
1414 );
1415 return retval;
1416 }
1417
1418 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_GetState(
1419 NaClSrpcChannel* channel,
1420 PP_Resource resource_id,
1421 nacl_abi_size_t* state_bytes, char* state) {
1422 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1423 ("%s: PPAPI calls are not supported off the main thread\n",
1424 __FUNCTION__));
1425 NaClSrpcError retval;
1426 retval = NaClSrpcInvokeBySignature(
1427 channel,
1428 "PPB_Graphics3DTrusted_GetState:i:C",
1429 resource_id,
1430 state_bytes, state
1431 );
1432 return retval;
1433 }
1434
1435 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_Flush(
1436 NaClSrpcChannel* channel,
1437 PP_Resource resource_id,
1438 int32_t put_offset) {
1439 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1440 ("%s: PPAPI calls are not supported off the main thread\n",
1441 __FUNCTION__));
1442 NaClSrpcError retval;
1443 retval = NaClSrpcInvokeBySignature(
1444 channel,
1445 "PPB_Graphics3DTrusted_Flush:ii:",
1446 resource_id,
1447 put_offset
1448 );
1449 return retval;
1450 }
1451
1452 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_FlushSync(
1453 NaClSrpcChannel* channel,
1454 PP_Resource resource_id,
1455 int32_t put_offset,
1456 nacl_abi_size_t* state_bytes, char* state) {
1457 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1458 ("%s: PPAPI calls are not supported off the main thread\n",
1459 __FUNCTION__));
1460 NaClSrpcError retval;
1461 retval = NaClSrpcInvokeBySignature(
1462 channel,
1463 "PPB_Graphics3DTrusted_FlushSync:ii:C",
1464 resource_id,
1465 put_offset,
1466 state_bytes, state
1467 );
1468 return retval;
1469 }
1470
1471 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_CreateTransferBuffer (
1472 NaClSrpcChannel* channel,
1473 PP_Resource resource_id,
1474 int32_t size,
1475 int32_t request_id,
1476 int32_t* id) {
1477 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1478 ("%s: PPAPI calls are not supported off the main thread\n",
1479 __FUNCTION__));
1480 NaClSrpcError retval;
1481 retval = NaClSrpcInvokeBySignature(
1482 channel,
1483 "PPB_Graphics3DTrusted_CreateTransferBuffer:iii:i",
1484 resource_id,
1485 size,
1486 request_id,
1487 id
1488 );
1489 return retval;
1490 }
1491
1492 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_DestroyTransferBuffe r(
1493 NaClSrpcChannel* channel,
1494 PP_Resource resource_id,
1495 int32_t id) {
1496 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1497 ("%s: PPAPI calls are not supported off the main thread\n",
1498 __FUNCTION__));
1499 NaClSrpcError retval;
1500 retval = NaClSrpcInvokeBySignature(
1501 channel,
1502 "PPB_Graphics3DTrusted_DestroyTransferBuffer:ii:",
1503 resource_id,
1504 id
1505 );
1506 return retval;
1507 }
1508
1509 NaClSrpcError PpbGraphics3DRpcClient::PPB_Graphics3DTrusted_GetTransferBuffer(
1510 NaClSrpcChannel* channel,
1511 PP_Resource resource_id,
1512 int32_t id,
1513 NaClSrpcImcDescType* shm_desc,
1514 int32_t* shm_size) {
1515 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1516 ("%s: PPAPI calls are not supported off the main thread\n",
1517 __FUNCTION__));
1518 NaClSrpcError retval;
1519 retval = NaClSrpcInvokeBySignature(
1520 channel,
1521 "PPB_Graphics3DTrusted_GetTransferBuffer:ii:hi",
1522 resource_id,
1523 id,
1524 shm_desc,
1525 shm_size
1526 );
1527 return retval;
1528 }
1529
1258 NaClSrpcError PpbGraphics3DRpcClient::PPB_Context3D_BindSurfaces( 1530 NaClSrpcError PpbGraphics3DRpcClient::PPB_Context3D_BindSurfaces(
1259 NaClSrpcChannel* channel, 1531 NaClSrpcChannel* channel,
1260 PP_Resource context, 1532 PP_Resource context,
1261 PP_Resource draw_surface, 1533 PP_Resource draw_surface,
1262 PP_Resource read_surface, 1534 PP_Resource read_surface,
1263 int32_t* error_code) { 1535 int32_t* error_code) {
1264 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(), 1536 VCHECK(ppapi_proxy::PPBCoreInterface()->IsMainThread(),
1265 ("%s: PPAPI calls are not supported off the main thread\n", 1537 ("%s: PPAPI calls are not supported off the main thread\n",
1266 __FUNCTION__)); 1538 __FUNCTION__));
1267 NaClSrpcError retval; 1539 NaClSrpcError retval;
(...skipping 1402 matching lines...) Expand 10 before | Expand all | Expand 10 after
2670 channel, 2942 channel,
2671 "PPB_Zoom_ZoomLimitsChanged:idd:", 2943 "PPB_Zoom_ZoomLimitsChanged:idd:",
2672 instance, 2944 instance,
2673 minimum_factor, 2945 minimum_factor,
2674 maximum_factor 2946 maximum_factor
2675 ); 2947 );
2676 return retval; 2948 return retval;
2677 } 2949 }
2678 2950
2679 2951
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/ppb_graphics_3d.srpc ('k') | src/shared/ppapi_proxy/ppb_rpc_server.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698