OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium 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 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" | 5 #include "native_client/src/shared/ppapi_proxy/browser_globals.h" |
6 | 6 |
7 #include <stddef.h> | 7 #include <stddef.h> |
8 #include <stdio.h> | 8 #include <stdio.h> |
9 #include <stdlib.h> | 9 #include <stdlib.h> |
10 #include <string.h> | 10 #include <string.h> |
(...skipping 176 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
187 static const char* disabled_interface_names[] = { | 187 static const char* disabled_interface_names[] = { |
188 PPB_GRAPHICS_3D_INTERFACE, | 188 PPB_GRAPHICS_3D_INTERFACE, |
189 PPB_GRAPHICS_3D_TRUSTED_INTERFACE, | 189 PPB_GRAPHICS_3D_TRUSTED_INTERFACE, |
190 PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE, | 190 PPB_GLES_CHROMIUM_TEXTURE_MAPPING_DEV_INTERFACE, |
191 PPB_OPENGLES2_INTERFACE, | 191 PPB_OPENGLES2_INTERFACE, |
192 PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE, | 192 PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE, |
193 PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE, | 193 PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE, |
194 PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE, | 194 PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE, |
195 PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE, | 195 PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE, |
196 PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE, | 196 PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE, |
| 197 PPB_OPENGLES2_QUERY_DEV_INTERFACE, |
197 PPB_LAYER_COMPOSITOR_DEV_INTERFACE | 198 PPB_LAYER_COMPOSITOR_DEV_INTERFACE |
198 }; | 199 }; |
199 for (size_t i = 0; i < NACL_ARRAY_SIZE(disabled_interface_names); i++) { | 200 for (size_t i = 0; i < NACL_ARRAY_SIZE(disabled_interface_names); i++) { |
200 if (strcmp(interface_name, disabled_interface_names[i]) == 0) | 201 if (strcmp(interface_name, disabled_interface_names[i]) == 0) |
201 return NULL; | 202 return NULL; |
202 } | 203 } |
203 } | 204 } |
204 return (*get_interface)(interface_name); | 205 return (*get_interface)(interface_name); |
205 } | 206 } |
206 | 207 |
(...skipping 259 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
466 } | 467 } |
467 | 468 |
468 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { | 469 const PPB_UDPSocket_Private* PPBUDPSocketPrivateInterface() { |
469 static const PPB_UDPSocket_Private* ppb = | 470 static const PPB_UDPSocket_Private* ppb = |
470 static_cast<const PPB_UDPSocket_Private*>( | 471 static_cast<const PPB_UDPSocket_Private*>( |
471 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); | 472 GetBrowserInterfaceSafe(PPB_UDPSOCKET_PRIVATE_INTERFACE)); |
472 return ppb; | 473 return ppb; |
473 } | 474 } |
474 | 475 |
475 } // namespace ppapi_proxy | 476 } // namespace ppapi_proxy |
OLD | NEW |