Index: ppapi/proxy/ppb_opengles2_proxy.cc |
=================================================================== |
--- ppapi/proxy/ppb_opengles2_proxy.cc (revision 74021) |
+++ ppapi/proxy/ppb_opengles2_proxy.cc (working copy) |
@@ -866,7 +866,7 @@ |
context->gles2_impl()->Viewport(x, y, width, height); |
} |
-const struct PPB_OpenGLES2_Dev ppb_opengles2 = { |
+const struct PPB_OpenGLES2_Dev opengles2_interface = { |
&ActiveTexture, |
&AttachShader, |
&BindAttribLocation, |
@@ -1011,6 +1011,12 @@ |
&Viewport |
}; |
+ |
+InterfaceProxy* CreateOpenGLES2Proxy(Dispatcher* dispatcher, |
+ const void* target_interface) { |
+ return new PPB_OpenGLES2_Proxy(dispatcher, target_interface); |
+} |
+ |
} // namespace |
PPB_OpenGLES2_Proxy::PPB_OpenGLES2_Proxy(Dispatcher* dispatcher, |
@@ -1021,14 +1027,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; |
} |