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

Side by Side Diff: src/shared/ppapi_proxy/plugin_context_3d.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/nacl.scons ('k') | src/shared/ppapi_proxy/plugin_opengles.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 /* 1 /*
2 * Copyright (c) 2011 The Native Client Authors. All rights reserved. 2 * Copyright (c) 2011 The Native Client Authors. All rights reserved.
3 * Use of this source code is governed by a BSD-style license that can be 3 * Use of this source code is governed by a BSD-style license that can be
4 * found in the LICENSE file. 4 * found in the LICENSE file.
5 */ 5 */
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_context_3d.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_context_3d.h"
8 8
9 #include "gpu/command_buffer/client/gles2_implementation.h" 9 #include "gpu/command_buffer/client/gles2_implementation.h"
10 #include "native_client/src/shared/ppapi_proxy/command_buffer_nacl.h" 10 #include "native_client/src/shared/ppapi_proxy/command_buffer_nacl.h"
(...skipping 16 matching lines...) Expand all
27 PP_Resource Create(PP_Instance instance, 27 PP_Resource Create(PP_Instance instance,
28 PP_Config3D_Dev config, 28 PP_Config3D_Dev config,
29 PP_Resource share_context, 29 PP_Resource share_context,
30 const int32_t* attrib_list) { 30 const int32_t* attrib_list) {
31 DebugPrintf("PPB_Context3D::Create: instance=%"NACL_PRIu32"\n", instance); 31 DebugPrintf("PPB_Context3D::Create: instance=%"NACL_PRIu32"\n", instance);
32 32
33 nacl_abi_size_t attrib_list_size = 0; 33 nacl_abi_size_t attrib_list_size = 0;
34 PP_Resource resource; 34 PP_Resource resource;
35 if (attrib_list) { 35 if (attrib_list) {
36 attrib_list_size = 1; 36 attrib_list_size = 1;
37 while (PP_GRAPHICS3DATTRIBVALUE_NONE != attrib_list[attrib_list_size - 1]) { 37 while (PP_GRAPHICS3DATTRIB_NONE != attrib_list[attrib_list_size - 1]) {
38 attrib_list_size += 2; 38 attrib_list_size += 2;
39 } 39 }
40 } 40 }
41 NaClSrpcError retval = 41 NaClSrpcError retval =
42 PpbGraphics3DRpcClient::PPB_Context3DTrusted_CreateRaw( 42 PpbGraphics3DRpcClient::PPB_Context3DTrusted_CreateRaw(
43 GetMainSrpcChannel(), 43 GetMainSrpcChannel(),
44 instance, 44 instance,
45 config, 45 config,
46 share_context, 46 share_context,
47 attrib_list_size, 47 attrib_list_size,
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 &IsContext3D, 197 &IsContext3D,
198 &GetAttrib, 198 &GetAttrib,
199 &BindSurfaces, 199 &BindSurfaces,
200 &GetBoundSurfaces 200 &GetBoundSurfaces
201 }; 201 };
202 return &intf; 202 return &intf;
203 } 203 }
204 204
205 } // namespace ppapi_proxy 205 } // namespace ppapi_proxy
206 206
OLDNEW
« no previous file with comments | « src/shared/ppapi_proxy/nacl.scons ('k') | src/shared/ppapi_proxy/plugin_opengles.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698