| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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 |
| OLD | NEW |