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

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

Issue 9601020: Add OpenGL occlusion query support to pepper. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update to trunk Created 8 years, 9 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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 true }, 101 true },
102 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0, 102 { PPB_OPENGLES2_FRAMEBUFFERMULTISAMPLE_DEV_INTERFACE_1_0,
103 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(), 103 PluginGraphics3D::GetOpenGLESFramebufferMultisampleInterface(),
104 true }, 104 true },
105 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0, 105 { PPB_OPENGLES2_CHROMIUMENABLEFEATURE_DEV_INTERFACE_1_0,
106 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(), 106 PluginGraphics3D::GetOpenGLESChromiumEnableFeatureInterface(),
107 true }, 107 true },
108 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0, 108 { PPB_OPENGLES2_CHROMIUMMAPSUB_DEV_INTERFACE_1_0,
109 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(), 109 PluginGraphics3D::GetOpenGLESChromiumMapSubInterface(),
110 true }, 110 true },
111 { PPB_OPENGLES2_QUERY_DEV_INTERFACE_1_0,
112 PluginGraphics3D::GetOpenGLESQueryInterface(),
113 true },
111 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true }, 114 { PPB_PDF_INTERFACE, PluginPDF::GetInterface(), true },
112 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true }, 115 { PPB_SCROLLBAR_DEV_INTERFACE, PluginScrollbar::GetInterface(), true },
113 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE, 116 { PPB_TCPSERVERSOCKET_PRIVATE_INTERFACE,
114 PluginTCPServerSocketPrivate::GetInterface(), 117 PluginTCPServerSocketPrivate::GetInterface(),
115 true }, 118 true },
116 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(), 119 { PPB_TCPSOCKET_PRIVATE_INTERFACE, PluginTCPSocketPrivate::GetInterface(),
117 true }, 120 true },
118 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true }, 121 { PPB_TESTING_DEV_INTERFACE_0_9, PluginTesting::GetInterface(), true },
119 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true }, 122 { PPB_TESTING_DEV_INTERFACE, PluginTesting::GetInterface(), true },
120 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2, 123 { PPB_UDPSOCKET_PRIVATE_INTERFACE_0_2,
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
173 interface_name, NaClSrpcErrorString(srpc_result)); 176 interface_name, NaClSrpcErrorString(srpc_result));
174 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) { 177 if (srpc_result != NACL_SRPC_RESULT_OK || !browser_exports_interface) {
175 interface_map[index].ppb_interface = NULL; 178 interface_map[index].ppb_interface = NULL;
176 ppb_interface = NULL; 179 ppb_interface = NULL;
177 } 180 }
178 interface_map[index].needs_browser_check = false; 181 interface_map[index].needs_browser_check = false;
179 return ppb_interface; 182 return ppb_interface;
180 } 183 }
181 184
182 } // namespace ppapi_proxy 185 } // namespace ppapi_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698