OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // This file is auto-generated. DO NOT EDIT! | 5 // This file is auto-generated. DO NOT EDIT! |
6 | 6 |
7 #include "ppapi/proxy/ppb_opengles2_proxy.h" | 7 #include "ppapi/proxy/ppb_opengles2_proxy.h" |
8 | 8 |
9 #include "gpu/command_buffer/client/gles2_implementation.h" | 9 #include "gpu/command_buffer/client/gles2_implementation.h" |
10 #include "ppapi/c/pp_errors.h" | 10 #include "ppapi/c/pp_errors.h" |
(...skipping 848 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
859 context->gles2_impl()->VertexAttribPointer( | 859 context->gles2_impl()->VertexAttribPointer( |
860 indx, size, type, normalized, stride, ptr); | 860 indx, size, type, normalized, stride, ptr); |
861 } | 861 } |
862 | 862 |
863 void Viewport( | 863 void Viewport( |
864 PP_Resource context_id, GLint x, GLint y, GLsizei width, GLsizei height) { | 864 PP_Resource context_id, GLint x, GLint y, GLsizei width, GLsizei height) { |
865 Context3D* context = PluginResource::GetAs<Context3D>(context_id); | 865 Context3D* context = PluginResource::GetAs<Context3D>(context_id); |
866 context->gles2_impl()->Viewport(x, y, width, height); | 866 context->gles2_impl()->Viewport(x, y, width, height); |
867 } | 867 } |
868 | 868 |
869 const struct PPB_OpenGLES2_Dev ppb_opengles2 = { | 869 const struct PPB_OpenGLES2_Dev opengles2_interface = { |
870 &ActiveTexture, | 870 &ActiveTexture, |
871 &AttachShader, | 871 &AttachShader, |
872 &BindAttribLocation, | 872 &BindAttribLocation, |
873 &BindBuffer, | 873 &BindBuffer, |
874 &BindFramebuffer, | 874 &BindFramebuffer, |
875 &BindRenderbuffer, | 875 &BindRenderbuffer, |
876 &BindTexture, | 876 &BindTexture, |
877 &BlendColor, | 877 &BlendColor, |
878 &BlendEquation, | 878 &BlendEquation, |
879 &BlendEquationSeparate, | 879 &BlendEquationSeparate, |
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1004 &VertexAttrib2f, | 1004 &VertexAttrib2f, |
1005 &VertexAttrib2fv, | 1005 &VertexAttrib2fv, |
1006 &VertexAttrib3f, | 1006 &VertexAttrib3f, |
1007 &VertexAttrib3fv, | 1007 &VertexAttrib3fv, |
1008 &VertexAttrib4f, | 1008 &VertexAttrib4f, |
1009 &VertexAttrib4fv, | 1009 &VertexAttrib4fv, |
1010 &VertexAttribPointer, | 1010 &VertexAttribPointer, |
1011 &Viewport | 1011 &Viewport |
1012 }; | 1012 }; |
1013 | 1013 |
| 1014 |
| 1015 InterfaceProxy* CreateOpenGLES2Proxy(Dispatcher* dispatcher, |
| 1016 const void* target_interface) { |
| 1017 return new PPB_OpenGLES2_Proxy(dispatcher, target_interface); |
| 1018 } |
| 1019 |
1014 } // namespace | 1020 } // namespace |
1015 | 1021 |
1016 PPB_OpenGLES2_Proxy::PPB_OpenGLES2_Proxy(Dispatcher* dispatcher, | 1022 PPB_OpenGLES2_Proxy::PPB_OpenGLES2_Proxy(Dispatcher* dispatcher, |
1017 const void* target_interface) | 1023 const void* target_interface) |
1018 : InterfaceProxy(dispatcher, target_interface) { | 1024 : InterfaceProxy(dispatcher, target_interface) { |
1019 } | 1025 } |
1020 | 1026 |
1021 PPB_OpenGLES2_Proxy::~PPB_OpenGLES2_Proxy() { | 1027 PPB_OpenGLES2_Proxy::~PPB_OpenGLES2_Proxy() { |
1022 } | 1028 } |
1023 | 1029 |
1024 const void* PPB_OpenGLES2_Proxy::GetSourceInterface() const { | 1030 // static |
1025 return &ppb_opengles2; | 1031 const InterfaceProxy::Info* PPB_OpenGLES2_Proxy::GetInfo() { |
1026 } | 1032 static const Info info = { |
1027 | 1033 &opengles2_interface, |
1028 InterfaceID PPB_OpenGLES2_Proxy::GetInterfaceId() const { | 1034 PPB_OPENGLES2_DEV_INTERFACE, |
1029 return INTERFACE_ID_NONE; | 1035 INTERFACE_ID_PPB_OPENGLES2, |
| 1036 false, |
| 1037 &CreateOpenGLES2Proxy, |
| 1038 }; |
| 1039 return &info; |
1030 } | 1040 } |
1031 | 1041 |
1032 bool PPB_OpenGLES2_Proxy::OnMessageReceived(const IPC::Message& msg) { | 1042 bool PPB_OpenGLES2_Proxy::OnMessageReceived(const IPC::Message& msg) { |
1033 return false; | 1043 return false; |
1034 } | 1044 } |
1035 | 1045 |
1036 } // namespace proxy | 1046 } // namespace proxy |
1037 } // namespace pp | 1047 } // namespace pp |
OLD | NEW |