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