| OLD | NEW |
| 1 /* | 1 /* |
| 2 * Copyright 2010 The Native Client Authors. All rights reserved. | 2 * Copyright 2010 The Native Client Authors. All rights reserved. |
| 3 * Use of this source code is governed by a BSD-style license that can | 3 * Use of this source code is governed by a BSD-style license that can |
| 4 * be found in the LICENSE file. | 4 * be found in the LICENSE file. |
| 5 */ | 5 */ |
| 6 | 6 |
| 7 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" | 7 #include "native_client/src/shared/ppapi_proxy/plugin_graphics_3d.h" |
| 8 | 8 |
| 9 #include <stdio.h> | 9 #include <stdio.h> |
| 10 #include <string.h> | 10 #include <string.h> |
| 11 #include "gen/native_client/src/shared/ppapi_proxy/ppb_rpc.h" | 11 #include "gen/native_client/src/shared/ppapi_proxy/ppb_rpc.h" |
| 12 #include "native_client/src/include/portability.h" | 12 #include "native_client/src/include/portability.h" |
| 13 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" | 13 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" |
| 14 #include "native_client/src/shared/ppapi_proxy/utility.h" | 14 #include "native_client/src/shared/ppapi_proxy/utility.h" |
| 15 #include "native_client/src/shared/srpc/nacl_srpc.h" | 15 #include "native_client/src/shared/srpc/nacl_srpc.h" |
| 16 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" | 16 #include "ppapi/c/dev/ppb_graphics_3d_dev.h" |
| 17 | 17 |
| 18 namespace ppapi_proxy { | 18 namespace ppapi_proxy { |
| 19 | 19 |
| 20 namespace { | 20 namespace { |
| 21 PP_Bool IsGraphics3D(PP_Resource resource) { | 21 PP_Bool IsGraphics3D(PP_Resource resource) { |
| 22 UNREFERENCED_PARAMETER(resource); | 22 return PluginResource::GetAs<PluginGraphics3D>(resource).get() |
| 23 return PP_FALSE; | 23 ? PP_TRUE : PP_FALSE; |
| 24 } | 24 } |
| 25 | 25 |
| 26 PP_Bool GetConfigs(int32_t* configs, | 26 PP_Bool GetConfigs(int32_t* configs, |
| 27 int32_t config_size, | 27 int32_t config_size, |
| 28 int32_t* num_config) { | 28 int32_t* num_config) { |
| 29 UNREFERENCED_PARAMETER(configs); | 29 UNREFERENCED_PARAMETER(configs); |
| 30 UNREFERENCED_PARAMETER(config_size); | 30 UNREFERENCED_PARAMETER(config_size); |
| 31 UNREFERENCED_PARAMETER(num_config); | 31 UNREFERENCED_PARAMETER(num_config); |
| 32 return PP_FALSE; | 32 return PP_FALSE; |
| 33 } | 33 } |
| (...skipping 67 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 101 GetProcAddress, | 101 GetProcAddress, |
| 102 MakeCurrent, | 102 MakeCurrent, |
| 103 GetCurrentContext, | 103 GetCurrentContext, |
| 104 SwapBuffers, | 104 SwapBuffers, |
| 105 GetError, | 105 GetError, |
| 106 }; | 106 }; |
| 107 return &intf; | 107 return &intf; |
| 108 } | 108 } |
| 109 | 109 |
| 110 } // namespace ppapi_proxy | 110 } // namespace ppapi_proxy |
| OLD | NEW |