Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(11)

Side by Side Diff: ui/gl/gl_bindings_autogen_mock.cc

Issue 871763002: Make GL bindings conditional (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: address comments, try fix broken builds Created 5 years, 11 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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 1232 matching lines...) Expand 10 before | Expand all | Expand 10 after
1243 } 1243 }
1244 1244
1245 void GL_BINDING_CALL 1245 void GL_BINDING_CALL
1246 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id, 1246 MockGLInterface::Mock_glGetQueryObjecti64v(GLuint id,
1247 GLenum pname, 1247 GLenum pname,
1248 GLint64* params) { 1248 GLint64* params) {
1249 MakeFunctionUnique("glGetQueryObjecti64v"); 1249 MakeFunctionUnique("glGetQueryObjecti64v");
1250 interface_->GetQueryObjecti64v(id, pname, params); 1250 interface_->GetQueryObjecti64v(id, pname, params);
1251 } 1251 }
1252 1252
1253 void GL_BINDING_CALL
1254 MockGLInterface::Mock_glGetQueryObjecti64vEXT(GLuint id,
1255 GLenum pname,
1256 GLint64* params) {
1257 MakeFunctionUnique("glGetQueryObjecti64vEXT");
1258 interface_->GetQueryObjecti64v(id, pname, params);
1259 }
1260
1253 void GL_BINDING_CALL MockGLInterface::Mock_glGetQueryObjectiv(GLuint id, 1261 void GL_BINDING_CALL MockGLInterface::Mock_glGetQueryObjectiv(GLuint id,
1254 GLenum pname, 1262 GLenum pname,
1255 GLint* params) { 1263 GLint* params) {
1256 MakeFunctionUnique("glGetQueryObjectiv"); 1264 MakeFunctionUnique("glGetQueryObjectiv");
1257 interface_->GetQueryObjectiv(id, pname, params); 1265 interface_->GetQueryObjectiv(id, pname, params);
1258 } 1266 }
1259 1267
1260 void GL_BINDING_CALL 1268 void GL_BINDING_CALL
1261 MockGLInterface::Mock_glGetQueryObjectivARB(GLuint id, 1269 MockGLInterface::Mock_glGetQueryObjectivARB(GLuint id,
1262 GLenum pname, 1270 GLenum pname,
(...skipping 1601 matching lines...) Expand 10 before | Expand all | Expand 10 after
2864 if (strcmp(name, "glGetProgramBinary") == 0) 2872 if (strcmp(name, "glGetProgramBinary") == 0)
2865 return reinterpret_cast<void*>(Mock_glGetProgramBinary); 2873 return reinterpret_cast<void*>(Mock_glGetProgramBinary);
2866 if (strcmp(name, "glGetProgramBinaryOES") == 0) 2874 if (strcmp(name, "glGetProgramBinaryOES") == 0)
2867 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES); 2875 return reinterpret_cast<void*>(Mock_glGetProgramBinaryOES);
2868 if (strcmp(name, "glGetProgramInfoLog") == 0) 2876 if (strcmp(name, "glGetProgramInfoLog") == 0)
2869 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog); 2877 return reinterpret_cast<void*>(Mock_glGetProgramInfoLog);
2870 if (strcmp(name, "glGetProgramiv") == 0) 2878 if (strcmp(name, "glGetProgramiv") == 0)
2871 return reinterpret_cast<void*>(Mock_glGetProgramiv); 2879 return reinterpret_cast<void*>(Mock_glGetProgramiv);
2872 if (strcmp(name, "glGetQueryObjecti64v") == 0) 2880 if (strcmp(name, "glGetQueryObjecti64v") == 0)
2873 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v); 2881 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64v);
2882 if (strcmp(name, "glGetQueryObjecti64vEXT") == 0)
2883 return reinterpret_cast<void*>(Mock_glGetQueryObjecti64vEXT);
2874 if (strcmp(name, "glGetQueryObjectiv") == 0) 2884 if (strcmp(name, "glGetQueryObjectiv") == 0)
2875 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv); 2885 return reinterpret_cast<void*>(Mock_glGetQueryObjectiv);
2876 if (strcmp(name, "glGetQueryObjectivARB") == 0) 2886 if (strcmp(name, "glGetQueryObjectivARB") == 0)
2877 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB); 2887 return reinterpret_cast<void*>(Mock_glGetQueryObjectivARB);
2878 if (strcmp(name, "glGetQueryObjectivEXT") == 0) 2888 if (strcmp(name, "glGetQueryObjectivEXT") == 0)
2879 return reinterpret_cast<void*>(Mock_glGetQueryObjectivEXT); 2889 return reinterpret_cast<void*>(Mock_glGetQueryObjectivEXT);
2880 if (strcmp(name, "glGetQueryObjectui64v") == 0) 2890 if (strcmp(name, "glGetQueryObjectui64v") == 0)
2881 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64v); 2891 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64v);
2882 if (strcmp(name, "glGetQueryObjectui64vEXT") == 0) 2892 if (strcmp(name, "glGetQueryObjectui64vEXT") == 0)
2883 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64vEXT); 2893 return reinterpret_cast<void*>(Mock_glGetQueryObjectui64vEXT);
(...skipping 332 matching lines...) Expand 10 before | Expand all | Expand 10 after
3216 if (strcmp(name, "glVertexAttribPointer") == 0) 3226 if (strcmp(name, "glVertexAttribPointer") == 0)
3217 return reinterpret_cast<void*>(Mock_glVertexAttribPointer); 3227 return reinterpret_cast<void*>(Mock_glVertexAttribPointer);
3218 if (strcmp(name, "glViewport") == 0) 3228 if (strcmp(name, "glViewport") == 0)
3219 return reinterpret_cast<void*>(Mock_glViewport); 3229 return reinterpret_cast<void*>(Mock_glViewport);
3220 if (strcmp(name, "glWaitSync") == 0) 3230 if (strcmp(name, "glWaitSync") == 0)
3221 return reinterpret_cast<void*>(Mock_glWaitSync); 3231 return reinterpret_cast<void*>(Mock_glWaitSync);
3222 return reinterpret_cast<void*>(&MockInvalidFunction); 3232 return reinterpret_cast<void*>(&MockInvalidFunction);
3223 } 3233 }
3224 3234
3225 } // namespace gfx 3235 } // namespace gfx
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698