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 1205 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1216 } | 1216 } |
1217 | 1217 |
1218 void GL_BINDING_CALL MockGLInterface::Mock_glGetProgramInfoLog(GLuint program, | 1218 void GL_BINDING_CALL MockGLInterface::Mock_glGetProgramInfoLog(GLuint program, |
1219 GLsizei bufsize, | 1219 GLsizei bufsize, |
1220 GLsizei* length, | 1220 GLsizei* length, |
1221 char* infolog) { | 1221 char* infolog) { |
1222 MakeFunctionUnique("glGetProgramInfoLog"); | 1222 MakeFunctionUnique("glGetProgramInfoLog"); |
1223 interface_->GetProgramInfoLog(program, bufsize, length, infolog); | 1223 interface_->GetProgramInfoLog(program, bufsize, length, infolog); |
1224 } | 1224 } |
1225 | 1225 |
1226 GLint GL_BINDING_CALL | |
1227 MockGLInterface::Mock_glGetProgramResourceLocation(GLuint program, | |
1228 GLenum programInterface, | |
1229 const char* name) { | |
1230 MakeFunctionUnique("glGetProgramResourceLocation"); | |
1231 return interface_->GetProgramResourceLocation(program, programInterface, | |
1232 name); | |
1233 } | |
1234 | |
1235 void GL_BINDING_CALL MockGLInterface::Mock_glGetProgramiv(GLuint program, | 1226 void GL_BINDING_CALL MockGLInterface::Mock_glGetProgramiv(GLuint program, |
1236 GLenum pname, | 1227 GLenum pname, |
1237 GLint* params) { | 1228 GLint* params) { |
1238 MakeFunctionUnique("glGetProgramiv"); | 1229 MakeFunctionUnique("glGetProgramiv"); |
1239 interface_->GetProgramiv(program, pname, params); | 1230 interface_->GetProgramiv(program, pname, params); |
1240 } | 1231 } |
1241 | 1232 |
1242 void GL_BINDING_CALL | 1233 void GL_BINDING_CALL |
1243 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id, | 1234 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id, |
1244 GLenum pname, | 1235 GLenum pname, |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1400 GLint* params) { | 1391 GLint* params) { |
1401 MakeFunctionUnique("glGetShaderiv"); | 1392 MakeFunctionUnique("glGetShaderiv"); |
1402 interface_->GetShaderiv(shader, pname, params); | 1393 interface_->GetShaderiv(shader, pname, params); |
1403 } | 1394 } |
1404 | 1395 |
1405 const GLubyte* GL_BINDING_CALL MockGLInterface::Mock_glGetString(GLenum name) { | 1396 const GLubyte* GL_BINDING_CALL MockGLInterface::Mock_glGetString(GLenum name) { |
1406 MakeFunctionUnique("glGetString"); | 1397 MakeFunctionUnique("glGetString"); |
1407 return interface_->GetString(name); | 1398 return interface_->GetString(name); |
1408 } | 1399 } |
1409 | 1400 |
1410 const GLubyte* GL_BINDING_CALL | |
1411 MockGLInterface::Mock_glGetStringi(GLenum name, GLuint index) { | |
1412 MakeFunctionUnique("glGetStringi"); | |
1413 return interface_->GetStringi(name, index); | |
1414 } | |
1415 | |
1416 void GL_BINDING_CALL MockGLInterface::Mock_glGetSynciv(GLsync sync, | 1401 void GL_BINDING_CALL MockGLInterface::Mock_glGetSynciv(GLsync sync, |
1417 GLenum pname, | 1402 GLenum pname, |
1418 GLsizei bufSize, | 1403 GLsizei bufSize, |
1419 GLsizei* length, | 1404 GLsizei* length, |
1420 GLint* values) { | 1405 GLint* values) { |
1421 MakeFunctionUnique("glGetSynciv"); | 1406 MakeFunctionUnique("glGetSynciv"); |
1422 interface_->GetSynciv(sync, pname, bufSize, length, values); | 1407 interface_->GetSynciv(sync, pname, bufSize, length, values); |
1423 } | 1408 } |
1424 | 1409 |
1425 void GL_BINDING_CALL | 1410 void GL_BINDING_CALL |
(...skipping 1442 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2868 if (strcmp(name, "glGetIntegerv") == 0) | 2853 if (strcmp(name, "glGetIntegerv") == 0) |
2869 return reinterpret_cast<void*>(Mock_glGetIntegerv); | 2854 return reinterpret_cast<void*>(Mock_glGetIntegerv); |
2870 if (strcmp(name, "glGetInternalformativ") == 0) | 2855 if (strcmp(name, "glGetInternalformativ") == 0) |
2871 return reinterpret_cast<void*>(Mock_glGetInternalformativ); | 2856 return reinterpret_cast<void*>(Mock_glGetInternalformativ); |
2872 if (strcmp(name, "glGetProgramBinary") == 0) | 2857 if (strcmp(name, "glGetProgramBinary") == 0) |
2873 return reinterpret_cast<void*>(Mock_glGetProgramBinary); | 2858 return reinterpret_cast<void*>(Mock_glGetProgramBinary); |
2874 if (strcmp(name, "glGetProgramBinaryOES") == 0) | 2859 if (strcmp(name, "glGetProgramBinaryOES") == 0) |
2875 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES); | 2860 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES); |
2876 if (strcmp(name, "glGetProgramInfoLog") == 0) | 2861 if (strcmp(name, "glGetProgramInfoLog") == 0) |
2877 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog); | 2862 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog); |
2878 if (strcmp(name, "glGetProgramResourceLocation") == 0) | |
2879 return reinterpret_cast<void*>(Mock_glGetProgramResourceLocation); | |
2880 if (strcmp(name, "glGetProgramiv") == 0) | 2863 if (strcmp(name, "glGetProgramiv") == 0) |
2881 return reinterpret_cast<void*>(Mock_glGetProgramiv); | 2864 return reinterpret_cast<void*>(Mock_glGetProgramiv); |
2882 if (strcmp(name, "glGetQueryObjecti64v") == 0) | 2865 if (strcmp(name, "glGetQueryObjecti64v") == 0) |
2883 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v); | 2866 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v); |
2884 if (strcmp(name, "glGetQueryObjecti64vEXT") == 0) | 2867 if (strcmp(name, "glGetQueryObjecti64vEXT") == 0) |
2885 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64vEXT); | 2868 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64vEXT); |
2886 if (strcmp(name, "glGetQueryObjectiv") == 0) | 2869 if (strcmp(name, "glGetQueryObjectiv") == 0) |
2887 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv); | 2870 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv); |
2888 if (strcmp(name, "glGetQueryObjectivARB") == 0) | 2871 if (strcmp(name, "glGetQueryObjectivARB") == 0) |
2889 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB); | 2872 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB); |
(...skipping 26 matching lines...) Expand all Loading... |
2916 if (strcmp(name, "glGetShaderInfoLog") == 0) | 2899 if (strcmp(name, "glGetShaderInfoLog") == 0) |
2917 return reinterpret_cast<void*>(Mock_glGetShaderInfoLog); | 2900 return reinterpret_cast<void*>(Mock_glGetShaderInfoLog); |
2918 if (strcmp(name, "glGetShaderPrecisionFormat") == 0) | 2901 if (strcmp(name, "glGetShaderPrecisionFormat") == 0) |
2919 return reinterpret_cast<void*>(Mock_glGetShaderPrecisionFormat); | 2902 return reinterpret_cast<void*>(Mock_glGetShaderPrecisionFormat); |
2920 if (strcmp(name, "glGetShaderSource") == 0) | 2903 if (strcmp(name, "glGetShaderSource") == 0) |
2921 return reinterpret_cast<void*>(Mock_glGetShaderSource); | 2904 return reinterpret_cast<void*>(Mock_glGetShaderSource); |
2922 if (strcmp(name, "glGetShaderiv") == 0) | 2905 if (strcmp(name, "glGetShaderiv") == 0) |
2923 return reinterpret_cast<void*>(Mock_glGetShaderiv); | 2906 return reinterpret_cast<void*>(Mock_glGetShaderiv); |
2924 if (strcmp(name, "glGetString") == 0) | 2907 if (strcmp(name, "glGetString") == 0) |
2925 return reinterpret_cast<void*>(Mock_glGetString); | 2908 return reinterpret_cast<void*>(Mock_glGetString); |
2926 if (strcmp(name, "glGetStringi") == 0) | |
2927 return reinterpret_cast<void*>(Mock_glGetStringi); | |
2928 if (strcmp(name, "glGetSynciv") == 0) | 2909 if (strcmp(name, "glGetSynciv") == 0) |
2929 return reinterpret_cast<void*>(Mock_glGetSynciv); | 2910 return reinterpret_cast<void*>(Mock_glGetSynciv); |
2930 if (strcmp(name, "glGetTexLevelParameterfv") == 0) | 2911 if (strcmp(name, "glGetTexLevelParameterfv") == 0) |
2931 return reinterpret_cast<void*>(Mock_glGetTexLevelParameterfv); | 2912 return reinterpret_cast<void*>(Mock_glGetTexLevelParameterfv); |
2932 if (strcmp(name, "glGetTexLevelParameteriv") == 0) | 2913 if (strcmp(name, "glGetTexLevelParameteriv") == 0) |
2933 return reinterpret_cast<void*>(Mock_glGetTexLevelParameteriv); | 2914 return reinterpret_cast<void*>(Mock_glGetTexLevelParameteriv); |
2934 if (strcmp(name, "glGetTexParameterfv") == 0) | 2915 if (strcmp(name, "glGetTexParameterfv") == 0) |
2935 return reinterpret_cast<void*>(Mock_glGetTexParameterfv); | 2916 return reinterpret_cast<void*>(Mock_glGetTexParameterfv); |
2936 if (strcmp(name, "glGetTexParameteriv") == 0) | 2917 if (strcmp(name, "glGetTexParameteriv") == 0) |
2937 return reinterpret_cast<void*>(Mock_glGetTexParameteriv); | 2918 return reinterpret_cast<void*>(Mock_glGetTexParameteriv); |
(...skipping 292 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3230 if (strcmp(name, "glVertexAttribPointer") == 0) | 3211 if (strcmp(name, "glVertexAttribPointer") == 0) |
3231 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); | 3212 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); |
3232 if (strcmp(name, "glViewport") == 0) | 3213 if (strcmp(name, "glViewport") == 0) |
3233 return reinterpret_cast<void*>(Mock_glViewport); | 3214 return reinterpret_cast<void*>(Mock_glViewport); |
3234 if (strcmp(name, "glWaitSync") == 0) | 3215 if (strcmp(name, "glWaitSync") == 0) |
3235 return reinterpret_cast<void*>(Mock_glWaitSync); | 3216 return reinterpret_cast<void*>(Mock_glWaitSync); |
3236 return reinterpret_cast<void*>(&MockInvalidFunction); | 3217 return reinterpret_cast<void*>(&MockInvalidFunction); |
3237 } | 3218 } |
3238 | 3219 |
3239 } // namespace gfx | 3220 } // namespace gfx |
OLD | NEW |