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

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

Issue 9340003: Added idl file for Pepper 3D. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' 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/cpp/graphics_3d.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.h » ('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/plugin_ppb_graphics_3d.cc
===================================================================
--- ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc (revision 120596)
+++ ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc (working copy)
@@ -31,7 +31,7 @@
const size_t kMinTransferBufferSize = 256 * 1024;
const size_t kMaxTransferBufferSize = 16 * 1024 * 1024;
-int32_t GetNumAttribs(const int32_t* attrib_list) {
+int32_t GetNumAttribs(const int32_t attrib_list[]) {
int32_t num = 0;
if (attrib_list) {
// skip over attrib pairs
@@ -64,7 +64,7 @@
PP_Resource Create(PP_Instance instance,
PP_Resource share_context,
- const int32_t* attrib_list) {
+ const int32_t attrib_list[]) {
DebugPrintf("PPB_Graphics3D::Create: instance=%"NACL_PRId32"\n", instance);
PP_Resource graphics3d_id = kInvalidResourceId;
nacl_abi_size_t num_attribs = GetNumAttribs(attrib_list);
@@ -93,7 +93,7 @@
}
int32_t GetAttribs(PP_Resource graphics3d_id,
- int32_t* attrib_list) {
+ int32_t attrib_list[]) {
int32_t pp_error;
nacl_abi_size_t num_attribs = GetNumAttribs(attrib_list);
NaClSrpcError retval =
@@ -110,14 +110,14 @@
}
int32_t SetAttribs(PP_Resource graphics3d_id,
- int32_t* attrib_list) {
+ const int32_t attrib_list[]) {
int32_t pp_error;
nacl_abi_size_t num_attribs = GetNumAttribs(attrib_list);
NaClSrpcError retval =
PpbGraphics3DRpcClient::PPB_Graphics3D_SetAttribs(
GetMainSrpcChannel(),
graphics3d_id,
- num_attribs, attrib_list,
+ num_attribs, const_cast<int32_t *>(attrib_list),
&pp_error);
if (retval != NACL_SRPC_RESULT_OK) {
return PP_ERROR_BADARGUMENT;
« no previous file with comments | « ppapi/cpp/graphics_3d.cc ('k') | ppapi/shared_impl/ppb_graphics_3d_shared.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698