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

Unified Diff: gpu/command_buffer/build_gles2_cmd_buffer.py

Issue 6486034: Share PPAPI out-of-process plugins between renderer processes.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 10 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.cc ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/build_gles2_cmd_buffer.py
===================================================================
--- gpu/command_buffer/build_gles2_cmd_buffer.py (revision 74733)
+++ gpu/command_buffer/build_gles2_cmd_buffer.py (working copy)
@@ -5399,16 +5399,21 @@
func.MakeOriginalArgString("")))
file.Write("}\n\n")
- file.Write("const struct PPB_OpenGLES2_Dev ppb_opengles2 = {\n")
+ file.Write("const struct PPB_OpenGLES2_Dev opengles2_interface = {\n")
file.Write(" &")
file.Write(",\n &".join(
f.name for f in self.original_functions if f.IsCoreGLFunction()))
file.Write("\n")
file.Write("};\n\n")
- file.Write("} // namespace\n")
+ file.Write("""
+InterfaceProxy* CreateOpenGLES2Proxy(Dispatcher* dispatcher,
+ const void* target_interface) {
+ return new PPB_OpenGLES2_Proxy(dispatcher, target_interface);
+}
- file.Write("""
+} // namespace
+
PPB_OpenGLES2_Proxy::PPB_OpenGLES2_Proxy(Dispatcher* dispatcher,
const void* target_interface)
: InterfaceProxy(dispatcher, target_interface) {
@@ -5417,14 +5422,18 @@
PPB_OpenGLES2_Proxy::~PPB_OpenGLES2_Proxy() {
}
-const void* PPB_OpenGLES2_Proxy::GetSourceInterface() const {
- return &ppb_opengles2;
+// static
+const InterfaceProxy::Info* PPB_OpenGLES2_Proxy::GetInfo() {
+ static const Info info = {
+ &opengles2_interface,
+ PPB_OPENGLES2_DEV_INTERFACE,
+ INTERFACE_ID_PPB_OPENGLES2,
+ false,
+ &CreateOpenGLES2Proxy,
+ };
+ return &info;
}
-InterfaceID PPB_OpenGLES2_Proxy::GetInterfaceId() const {
- return INTERFACE_ID_NONE;
-}
-
bool PPB_OpenGLES2_Proxy::OnMessageReceived(const IPC::Message& msg) {
return false;
}
« no previous file with comments | « chrome/renderer/pepper_plugin_delegate_impl.cc ('k') | gpu/command_buffer/client/gles2_c_lib_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698