OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 from | 5 // This file is auto-generated from |
6 // ui/gl/generate_bindings.py | 6 // ui/gl/generate_bindings.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
88 | 88 |
89 void GL_BINDING_CALL | 89 void GL_BINDING_CALL |
90 MockGLInterface::Mock_glBindFragDataLocation(GLuint program, | 90 MockGLInterface::Mock_glBindFragDataLocation(GLuint program, |
91 GLuint colorNumber, | 91 GLuint colorNumber, |
92 const char* name) { | 92 const char* name) { |
93 MakeFunctionUnique("glBindFragDataLocation"); | 93 MakeFunctionUnique("glBindFragDataLocation"); |
94 interface_->BindFragDataLocation(program, colorNumber, name); | 94 interface_->BindFragDataLocation(program, colorNumber, name); |
95 } | 95 } |
96 | 96 |
97 void GL_BINDING_CALL | 97 void GL_BINDING_CALL |
| 98 MockGLInterface::Mock_glBindFragDataLocationEXT(GLuint program, |
| 99 GLuint colorNumber, |
| 100 const char* name) { |
| 101 MakeFunctionUnique("glBindFragDataLocationEXT"); |
| 102 interface_->BindFragDataLocation(program, colorNumber, name); |
| 103 } |
| 104 |
| 105 void GL_BINDING_CALL |
98 MockGLInterface::Mock_glBindFragDataLocationIndexed(GLuint program, | 106 MockGLInterface::Mock_glBindFragDataLocationIndexed(GLuint program, |
99 GLuint colorNumber, | 107 GLuint colorNumber, |
100 GLuint index, | 108 GLuint index, |
101 const char* name) { | 109 const char* name) { |
102 MakeFunctionUnique("glBindFragDataLocationIndexed"); | 110 MakeFunctionUnique("glBindFragDataLocationIndexed"); |
103 interface_->BindFragDataLocationIndexed(program, colorNumber, index, name); | 111 interface_->BindFragDataLocationIndexed(program, colorNumber, index, name); |
104 } | 112 } |
105 | 113 |
106 void GL_BINDING_CALL | 114 void GL_BINDING_CALL |
| 115 MockGLInterface::Mock_glBindFragDataLocationIndexedEXT(GLuint program, |
| 116 GLuint colorNumber, |
| 117 GLuint index, |
| 118 const char* name) { |
| 119 MakeFunctionUnique("glBindFragDataLocationIndexedEXT"); |
| 120 interface_->BindFragDataLocationIndexed(program, colorNumber, index, name); |
| 121 } |
| 122 |
| 123 void GL_BINDING_CALL |
107 MockGLInterface::Mock_glBindFramebuffer(GLenum target, GLuint framebuffer) { | 124 MockGLInterface::Mock_glBindFramebuffer(GLenum target, GLuint framebuffer) { |
108 MakeFunctionUnique("glBindFramebuffer"); | 125 MakeFunctionUnique("glBindFramebuffer"); |
109 interface_->BindFramebufferEXT(target, framebuffer); | 126 interface_->BindFramebufferEXT(target, framebuffer); |
110 } | 127 } |
111 | 128 |
112 void GL_BINDING_CALL | 129 void GL_BINDING_CALL |
113 MockGLInterface::Mock_glBindFramebufferEXT(GLenum target, GLuint framebuffer) { | 130 MockGLInterface::Mock_glBindFramebufferEXT(GLenum target, GLuint framebuffer) { |
114 MakeFunctionUnique("glBindFramebufferEXT"); | 131 MakeFunctionUnique("glBindFramebufferEXT"); |
115 interface_->BindFramebufferEXT(target, framebuffer); | 132 interface_->BindFramebufferEXT(target, framebuffer); |
116 } | 133 } |
(...skipping 1058 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1175 interface_->GetFenceivNV(fence, pname, params); | 1192 interface_->GetFenceivNV(fence, pname, params); |
1176 } | 1193 } |
1177 | 1194 |
1178 void GL_BINDING_CALL MockGLInterface::Mock_glGetFloatv(GLenum pname, | 1195 void GL_BINDING_CALL MockGLInterface::Mock_glGetFloatv(GLenum pname, |
1179 GLfloat* params) { | 1196 GLfloat* params) { |
1180 MakeFunctionUnique("glGetFloatv"); | 1197 MakeFunctionUnique("glGetFloatv"); |
1181 interface_->GetFloatv(pname, params); | 1198 interface_->GetFloatv(pname, params); |
1182 } | 1199 } |
1183 | 1200 |
1184 GLint GL_BINDING_CALL | 1201 GLint GL_BINDING_CALL |
| 1202 MockGLInterface::Mock_glGetFragDataIndex(GLuint program, const char* name) { |
| 1203 MakeFunctionUnique("glGetFragDataIndex"); |
| 1204 return interface_->GetFragDataIndex(program, name); |
| 1205 } |
| 1206 |
| 1207 GLint GL_BINDING_CALL |
| 1208 MockGLInterface::Mock_glGetFragDataIndexEXT(GLuint program, const char* name) { |
| 1209 MakeFunctionUnique("glGetFragDataIndexEXT"); |
| 1210 return interface_->GetFragDataIndex(program, name); |
| 1211 } |
| 1212 |
| 1213 GLint GL_BINDING_CALL |
1185 MockGLInterface::Mock_glGetFragDataLocation(GLuint program, const char* name) { | 1214 MockGLInterface::Mock_glGetFragDataLocation(GLuint program, const char* name) { |
1186 MakeFunctionUnique("glGetFragDataLocation"); | 1215 MakeFunctionUnique("glGetFragDataLocation"); |
1187 return interface_->GetFragDataLocation(program, name); | 1216 return interface_->GetFragDataLocation(program, name); |
1188 } | 1217 } |
1189 | 1218 |
1190 void GL_BINDING_CALL | 1219 void GL_BINDING_CALL |
1191 MockGLInterface::Mock_glGetFramebufferAttachmentParameteriv(GLenum target, | 1220 MockGLInterface::Mock_glGetFramebufferAttachmentParameteriv(GLenum target, |
1192 GLenum attachment, | 1221 GLenum attachment, |
1193 GLenum pname, | 1222 GLenum pname, |
1194 GLint* params) { | 1223 GLint* params) { |
(...skipping 1647 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2842 if (strcmp(name, "glBindAttribLocation") == 0) | 2871 if (strcmp(name, "glBindAttribLocation") == 0) |
2843 return reinterpret_cast<void*>(Mock_glBindAttribLocation); | 2872 return reinterpret_cast<void*>(Mock_glBindAttribLocation); |
2844 if (strcmp(name, "glBindBuffer") == 0) | 2873 if (strcmp(name, "glBindBuffer") == 0) |
2845 return reinterpret_cast<void*>(Mock_glBindBuffer); | 2874 return reinterpret_cast<void*>(Mock_glBindBuffer); |
2846 if (strcmp(name, "glBindBufferBase") == 0) | 2875 if (strcmp(name, "glBindBufferBase") == 0) |
2847 return reinterpret_cast<void*>(Mock_glBindBufferBase); | 2876 return reinterpret_cast<void*>(Mock_glBindBufferBase); |
2848 if (strcmp(name, "glBindBufferRange") == 0) | 2877 if (strcmp(name, "glBindBufferRange") == 0) |
2849 return reinterpret_cast<void*>(Mock_glBindBufferRange); | 2878 return reinterpret_cast<void*>(Mock_glBindBufferRange); |
2850 if (strcmp(name, "glBindFragDataLocation") == 0) | 2879 if (strcmp(name, "glBindFragDataLocation") == 0) |
2851 return reinterpret_cast<void*>(Mock_glBindFragDataLocation); | 2880 return reinterpret_cast<void*>(Mock_glBindFragDataLocation); |
| 2881 if (strcmp(name, "glBindFragDataLocationEXT") == 0) |
| 2882 return reinterpret_cast<void*>(Mock_glBindFragDataLocationEXT); |
2852 if (strcmp(name, "glBindFragDataLocationIndexed") == 0) | 2883 if (strcmp(name, "glBindFragDataLocationIndexed") == 0) |
2853 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed); | 2884 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexed); |
| 2885 if (strcmp(name, "glBindFragDataLocationIndexedEXT") == 0) |
| 2886 return reinterpret_cast<void*>(Mock_glBindFragDataLocationIndexedEXT); |
2854 if (strcmp(name, "glBindFramebuffer") == 0) | 2887 if (strcmp(name, "glBindFramebuffer") == 0) |
2855 return reinterpret_cast<void*>(Mock_glBindFramebuffer); | 2888 return reinterpret_cast<void*>(Mock_glBindFramebuffer); |
2856 if (strcmp(name, "glBindFramebufferEXT") == 0) | 2889 if (strcmp(name, "glBindFramebufferEXT") == 0) |
2857 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT); | 2890 return reinterpret_cast<void*>(Mock_glBindFramebufferEXT); |
2858 if (strcmp(name, "glBindRenderbuffer") == 0) | 2891 if (strcmp(name, "glBindRenderbuffer") == 0) |
2859 return reinterpret_cast<void*>(Mock_glBindRenderbuffer); | 2892 return reinterpret_cast<void*>(Mock_glBindRenderbuffer); |
2860 if (strcmp(name, "glBindRenderbufferEXT") == 0) | 2893 if (strcmp(name, "glBindRenderbufferEXT") == 0) |
2861 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT); | 2894 return reinterpret_cast<void*>(Mock_glBindRenderbufferEXT); |
2862 if (strcmp(name, "glBindSampler") == 0) | 2895 if (strcmp(name, "glBindSampler") == 0) |
2863 return reinterpret_cast<void*>(Mock_glBindSampler); | 2896 return reinterpret_cast<void*>(Mock_glBindSampler); |
(...skipping 270 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3134 if (strcmp(name, "glGetBooleanv") == 0) | 3167 if (strcmp(name, "glGetBooleanv") == 0) |
3135 return reinterpret_cast<void*>(Mock_glGetBooleanv); | 3168 return reinterpret_cast<void*>(Mock_glGetBooleanv); |
3136 if (strcmp(name, "glGetBufferParameteriv") == 0) | 3169 if (strcmp(name, "glGetBufferParameteriv") == 0) |
3137 return reinterpret_cast<void*>(Mock_glGetBufferParameteriv); | 3170 return reinterpret_cast<void*>(Mock_glGetBufferParameteriv); |
3138 if (strcmp(name, "glGetError") == 0) | 3171 if (strcmp(name, "glGetError") == 0) |
3139 return reinterpret_cast<void*>(Mock_glGetError); | 3172 return reinterpret_cast<void*>(Mock_glGetError); |
3140 if (strcmp(name, "glGetFenceivNV") == 0) | 3173 if (strcmp(name, "glGetFenceivNV") == 0) |
3141 return reinterpret_cast<void*>(Mock_glGetFenceivNV); | 3174 return reinterpret_cast<void*>(Mock_glGetFenceivNV); |
3142 if (strcmp(name, "glGetFloatv") == 0) | 3175 if (strcmp(name, "glGetFloatv") == 0) |
3143 return reinterpret_cast<void*>(Mock_glGetFloatv); | 3176 return reinterpret_cast<void*>(Mock_glGetFloatv); |
| 3177 if (strcmp(name, "glGetFragDataIndex") == 0) |
| 3178 return reinterpret_cast<void*>(Mock_glGetFragDataIndex); |
| 3179 if (strcmp(name, "glGetFragDataIndexEXT") == 0) |
| 3180 return reinterpret_cast<void*>(Mock_glGetFragDataIndexEXT); |
3144 if (strcmp(name, "glGetFragDataLocation") == 0) | 3181 if (strcmp(name, "glGetFragDataLocation") == 0) |
3145 return reinterpret_cast<void*>(Mock_glGetFragDataLocation); | 3182 return reinterpret_cast<void*>(Mock_glGetFragDataLocation); |
3146 if (strcmp(name, "glGetFramebufferAttachmentParameteriv") == 0) | 3183 if (strcmp(name, "glGetFramebufferAttachmentParameteriv") == 0) |
3147 return reinterpret_cast<void*>(Mock_glGetFramebufferAttachmentParameteriv); | 3184 return reinterpret_cast<void*>(Mock_glGetFramebufferAttachmentParameteriv); |
3148 if (strcmp(name, "glGetFramebufferAttachmentParameterivEXT") == 0) | 3185 if (strcmp(name, "glGetFramebufferAttachmentParameterivEXT") == 0) |
3149 return reinterpret_cast<void*>( | 3186 return reinterpret_cast<void*>( |
3150 Mock_glGetFramebufferAttachmentParameterivEXT); | 3187 Mock_glGetFramebufferAttachmentParameterivEXT); |
3151 if (strcmp(name, "glGetGraphicsResetStatus") == 0) | 3188 if (strcmp(name, "glGetGraphicsResetStatus") == 0) |
3152 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatus); | 3189 return reinterpret_cast<void*>(Mock_glGetGraphicsResetStatus); |
3153 if (strcmp(name, "glGetGraphicsResetStatusARB") == 0) | 3190 if (strcmp(name, "glGetGraphicsResetStatusARB") == 0) |
(...skipping 412 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3566 if (strcmp(name, "glVertexAttribPointer") == 0) | 3603 if (strcmp(name, "glVertexAttribPointer") == 0) |
3567 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); | 3604 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); |
3568 if (strcmp(name, "glViewport") == 0) | 3605 if (strcmp(name, "glViewport") == 0) |
3569 return reinterpret_cast<void*>(Mock_glViewport); | 3606 return reinterpret_cast<void*>(Mock_glViewport); |
3570 if (strcmp(name, "glWaitSync") == 0) | 3607 if (strcmp(name, "glWaitSync") == 0) |
3571 return reinterpret_cast<void*>(Mock_glWaitSync); | 3608 return reinterpret_cast<void*>(Mock_glWaitSync); |
3572 return reinterpret_cast<void*>(&MockInvalidFunction); | 3609 return reinterpret_cast<void*>(&MockInvalidFunction); |
3573 } | 3610 } |
3574 | 3611 |
3575 } // namespace gfx | 3612 } // namespace gfx |
OLD | NEW |