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

Side by Side Diff: ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc

Issue 10354004: Move gles2 extensions out of dev. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
OLDNEW
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 // Implements the untrusted side of the PPB_GetInterface method. 5 // Implements the untrusted side of the PPB_GetInterface method.
6 6
7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h" 7 #include "native_client/src/shared/ppapi_proxy/plugin_globals.h"
8 #include <stdlib.h> 8 #include <stdlib.h>
9 #include <string.h> 9 #include <string.h>
10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h" 10 #include "native_client/src/shared/ppapi_proxy/plugin_ppb_audio.h"
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
91 PluginInputEvent::GetMouseInterface1_1(), true }, 91 PluginInputEvent::GetMouseInterface1_1(), true },
92 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true }, 92 { PPB_MOUSELOCK_INTERFACE, PluginMouseLock::GetInterface(), true },
93 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1, 93 { PPB_NETADDRESS_PRIVATE_INTERFACE_0_1,
94 PluginNetAddressPrivate::GetInterface0_1(), true }, 94 PluginNetAddressPrivate::GetInterface0_1(), true },
95 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0, 95 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_0,
96 PluginNetAddressPrivate::GetInterface1_0(), true }, 96 PluginNetAddressPrivate::GetInterface1_0(), true },
97 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_1, 97 { PPB_NETADDRESS_PRIVATE_INTERFACE_1_1,
98 PluginNetAddressPrivate::GetInterface1_1(), true }, 98 PluginNetAddressPrivate::GetInterface1_1(), true },
99 { PPB_OPENGLES2_INTERFACE_1_0, PluginGraphics3D::GetOpenGLESInterface(), 99 { PPB_OPENGLES2_INTERFACE_1_0, PluginGraphics3D::GetOpenGLESInterface(),
100 true }, 100 true },
101 { PPB_OPENGLES2_INSTANCEDARRAYS_DEV_INTERFACE_1_0, 101 { PPB_OPENGLES2_INSTANCEDARRAYS_INTERFACE_1_0,
102 PluginGraphics3D::GetOpenGLESInstancedArraysInterface(), 102 PluginGraphics3D::GetOpenGLESInstancedArraysInterface(),
103 true }, 103 true },
104 { PPB_OPENGLES2_FRAMEBUFFERBLIT_DEV_INTERFACE_1_0, 104 { PPB_OPENGLES2_FRAMEBUFFERBLIT_INTERFACE_1_0,
105 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface(), 105 PluginGraphics3D::GetOpenGLESFramebufferBlitInterface(),
106 true }, 106 true },
107 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0, 107 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_INTERFACE_1_0,
108 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(), 108 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(),
109 true }, 109 true },
110 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0, 110 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_INTERFACE_1_0,
111 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(), 111 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(),
112 true }, 112 true },
113 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, 113 { PPB_OPENGLES2_CHROMIUMMAPSUB_INTERFACE_1_0,
114 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(), 114 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(),
115 true }, 115 true },
116 { PPB_OPENGLES2_QUERY_DEV_INTERFACE_1_0, 116 { PPB_OPENGLES2_QUERY_INTERFACE_1_0,
117 PluginGraphics3D::GetOpenGLESQueryInterface(), 117 PluginGraphics3D::GetOpenGLESQueryInterface(),
118 true }, 118 true },
119 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 119 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
120 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 120 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
121 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE, 121 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE,
122 PluginTCPServerSocketPrivate::GetInterface(), 122 PluginTCPServerSocketPrivate::GetInterface(),
123 true }, 123 true },
124 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_4, 124 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_4,
125 PluginTCPSocketPrivate::GetInterface0_4(), true }, 125 PluginTCPSocketPrivate::GetInterface0_4(), true },
126 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_3, 126 { PPB_TCPSOCKET_PRIVATE_INTERFACE_0_3,
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after
183 interface_name, NaClSrpcErrorString(srpc_result)); 183 interface_name, NaClSrpcErrorString(srpc_result));
184 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 184 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
185 interface_map[index].ppb_interface = NULL; 185 interface_map[index].ppb_interface = NULL;
186 ppb_interface = NULL; 186 ppb_interface = NULL;
187 } 187 }
188 interface_map[index].needs_browser_check = false; 188 interface_map[index].needs_browser_check = false;
189 return ppb_interface; 189 return ppb_interface;
190 } 190 }
191 191
192 } // namespace ppapi_proxy 192 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698