Suppress data races in blink::Scheduler
[chromium-blink-merge.git] / ui / gl / gl_mock_autogen_gl.h
blob470de01f933ffad3a4036c929e48d66d66fa457c
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
3 // found in the LICENSE file.
4 //
5 // This file is auto-generated from
6 // ui/gl/generate_bindings.py
7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT!
11 MOCK_METHOD1(ActiveTexture, void(GLenum texture));
12 MOCK_METHOD2(AttachShader, void(GLuint program, GLuint shader));
13 MOCK_METHOD2(BeginQuery, void(GLenum target, GLuint id));
14 MOCK_METHOD2(BeginQueryARB, void(GLenum target, GLuint id));
15 MOCK_METHOD1(BeginTransformFeedback, void(GLenum primitiveMode));
16 MOCK_METHOD3(BindAttribLocation,
17 void(GLuint program, GLuint index, const char* name));
18 MOCK_METHOD2(BindBuffer, void(GLenum target, GLuint buffer));
19 MOCK_METHOD3(BindBufferBase, void(GLenum target, GLuint index, GLuint buffer));
20 MOCK_METHOD5(BindBufferRange,
21 void(GLenum target,
22 GLuint index,
23 GLuint buffer,
24 GLintptr offset,
25 GLsizeiptr size));
26 MOCK_METHOD3(BindFragDataLocation,
27 void(GLuint program, GLuint colorNumber, const char* name));
28 MOCK_METHOD4(
29 BindFragDataLocationIndexed,
30 void(GLuint program, GLuint colorNumber, GLuint index, const char* name));
31 MOCK_METHOD2(BindFramebufferEXT, void(GLenum target, GLuint framebuffer));
32 MOCK_METHOD2(BindRenderbufferEXT, void(GLenum target, GLuint renderbuffer));
33 MOCK_METHOD2(BindSampler, void(GLuint unit, GLuint sampler));
34 MOCK_METHOD2(BindTexture, void(GLenum target, GLuint texture));
35 MOCK_METHOD2(BindTransformFeedback, void(GLenum target, GLuint id));
36 MOCK_METHOD1(BindVertexArrayOES, void(GLuint array));
37 MOCK_METHOD0(BlendBarrierKHR, void());
38 MOCK_METHOD4(BlendColor,
39 void(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha));
40 MOCK_METHOD1(BlendEquation, void(GLenum mode));
41 MOCK_METHOD2(BlendEquationSeparate, void(GLenum modeRGB, GLenum modeAlpha));
42 MOCK_METHOD2(BlendFunc, void(GLenum sfactor, GLenum dfactor));
43 MOCK_METHOD4(
44 BlendFuncSeparate,
45 void(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha));
46 MOCK_METHOD10(BlitFramebuffer,
47 void(GLint srcX0,
48 GLint srcY0,
49 GLint srcX1,
50 GLint srcY1,
51 GLint dstX0,
52 GLint dstY0,
53 GLint dstX1,
54 GLint dstY1,
55 GLbitfield mask,
56 GLenum filter));
57 MOCK_METHOD10(BlitFramebufferANGLE,
58 void(GLint srcX0,
59 GLint srcY0,
60 GLint srcX1,
61 GLint srcY1,
62 GLint dstX0,
63 GLint dstY0,
64 GLint dstX1,
65 GLint dstY1,
66 GLbitfield mask,
67 GLenum filter));
68 MOCK_METHOD10(BlitFramebufferEXT,
69 void(GLint srcX0,
70 GLint srcY0,
71 GLint srcX1,
72 GLint srcY1,
73 GLint dstX0,
74 GLint dstY0,
75 GLint dstX1,
76 GLint dstY1,
77 GLbitfield mask,
78 GLenum filter));
79 MOCK_METHOD4(
80 BufferData,
81 void(GLenum target, GLsizeiptr size, const void* data, GLenum usage));
82 MOCK_METHOD4(
83 BufferSubData,
84 void(GLenum target, GLintptr offset, GLsizeiptr size, const void* data));
85 MOCK_METHOD1(CheckFramebufferStatusEXT, GLenum(GLenum target));
86 MOCK_METHOD1(Clear, void(GLbitfield mask));
87 MOCK_METHOD4(
88 ClearBufferfi,
89 void(GLenum buffer, GLint drawbuffer, const GLfloat depth, GLint stencil));
90 MOCK_METHOD3(ClearBufferfv,
91 void(GLenum buffer, GLint drawbuffer, const GLfloat* value));
92 MOCK_METHOD3(ClearBufferiv,
93 void(GLenum buffer, GLint drawbuffer, const GLint* value));
94 MOCK_METHOD3(ClearBufferuiv,
95 void(GLenum buffer, GLint drawbuffer, const GLuint* value));
96 MOCK_METHOD4(ClearColor,
97 void(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha));
98 MOCK_METHOD1(ClearDepth, void(GLclampd depth));
99 MOCK_METHOD1(ClearDepthf, void(GLclampf depth));
100 MOCK_METHOD1(ClearStencil, void(GLint s));
101 MOCK_METHOD3(ClientWaitSync,
102 GLenum(GLsync sync, GLbitfield flags, GLuint64 timeout));
103 MOCK_METHOD4(
104 ColorMask,
105 void(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha));
106 MOCK_METHOD1(CompileShader, void(GLuint shader));
107 MOCK_METHOD8(CompressedTexImage2D,
108 void(GLenum target,
109 GLint level,
110 GLenum internalformat,
111 GLsizei width,
112 GLsizei height,
113 GLint border,
114 GLsizei imageSize,
115 const void* data));
116 MOCK_METHOD9(CompressedTexImage3D,
117 void(GLenum target,
118 GLint level,
119 GLenum internalformat,
120 GLsizei width,
121 GLsizei height,
122 GLsizei depth,
123 GLint border,
124 GLsizei imageSize,
125 const void* data));
126 MOCK_METHOD9(CompressedTexSubImage2D,
127 void(GLenum target,
128 GLint level,
129 GLint xoffset,
130 GLint yoffset,
131 GLsizei width,
132 GLsizei height,
133 GLenum format,
134 GLsizei imageSize,
135 const void* data));
136 MOCK_METHOD5(CopyBufferSubData,
137 void(GLenum readTarget,
138 GLenum writeTarget,
139 GLintptr readOffset,
140 GLintptr writeOffset,
141 GLsizeiptr size));
142 MOCK_METHOD8(CopyTexImage2D,
143 void(GLenum target,
144 GLint level,
145 GLenum internalformat,
146 GLint x,
147 GLint y,
148 GLsizei width,
149 GLsizei height,
150 GLint border));
151 MOCK_METHOD8(CopyTexSubImage2D,
152 void(GLenum target,
153 GLint level,
154 GLint xoffset,
155 GLint yoffset,
156 GLint x,
157 GLint y,
158 GLsizei width,
159 GLsizei height));
160 MOCK_METHOD9(CopyTexSubImage3D,
161 void(GLenum target,
162 GLint level,
163 GLint xoffset,
164 GLint yoffset,
165 GLint zoffset,
166 GLint x,
167 GLint y,
168 GLsizei width,
169 GLsizei height));
170 MOCK_METHOD0(CreateProgram, GLuint());
171 MOCK_METHOD1(CreateShader, GLuint(GLenum type));
172 MOCK_METHOD1(CullFace, void(GLenum mode));
173 MOCK_METHOD2(DeleteBuffersARB, void(GLsizei n, const GLuint* buffers));
174 MOCK_METHOD2(DeleteFencesAPPLE, void(GLsizei n, const GLuint* fences));
175 MOCK_METHOD2(DeleteFencesNV, void(GLsizei n, const GLuint* fences));
176 MOCK_METHOD2(DeleteFramebuffersEXT,
177 void(GLsizei n, const GLuint* framebuffers));
178 MOCK_METHOD1(DeleteProgram, void(GLuint program));
179 MOCK_METHOD2(DeleteQueries, void(GLsizei n, const GLuint* ids));
180 MOCK_METHOD2(DeleteQueriesARB, void(GLsizei n, const GLuint* ids));
181 MOCK_METHOD2(DeleteRenderbuffersEXT,
182 void(GLsizei n, const GLuint* renderbuffers));
183 MOCK_METHOD2(DeleteSamplers, void(GLsizei n, const GLuint* samplers));
184 MOCK_METHOD1(DeleteShader, void(GLuint shader));
185 MOCK_METHOD1(DeleteSync, void(GLsync sync));
186 MOCK_METHOD2(DeleteTextures, void(GLsizei n, const GLuint* textures));
187 MOCK_METHOD2(DeleteTransformFeedbacks, void(GLsizei n, const GLuint* ids));
188 MOCK_METHOD2(DeleteVertexArraysOES, void(GLsizei n, const GLuint* arrays));
189 MOCK_METHOD1(DepthFunc, void(GLenum func));
190 MOCK_METHOD1(DepthMask, void(GLboolean flag));
191 MOCK_METHOD2(DepthRange, void(GLclampd zNear, GLclampd zFar));
192 MOCK_METHOD2(DepthRangef, void(GLclampf zNear, GLclampf zFar));
193 MOCK_METHOD2(DetachShader, void(GLuint program, GLuint shader));
194 MOCK_METHOD1(Disable, void(GLenum cap));
195 MOCK_METHOD1(DisableVertexAttribArray, void(GLuint index));
196 MOCK_METHOD3(DiscardFramebufferEXT,
197 void(GLenum target,
198 GLsizei numAttachments,
199 const GLenum* attachments));
200 MOCK_METHOD3(DrawArrays, void(GLenum mode, GLint first, GLsizei count));
201 MOCK_METHOD4(DrawArraysInstancedANGLE,
202 void(GLenum mode, GLint first, GLsizei count, GLsizei primcount));
203 MOCK_METHOD1(DrawBuffer, void(GLenum mode));
204 MOCK_METHOD2(DrawBuffersARB, void(GLsizei n, const GLenum* bufs));
205 MOCK_METHOD4(
206 DrawElements,
207 void(GLenum mode, GLsizei count, GLenum type, const void* indices));
208 MOCK_METHOD5(DrawElementsInstancedANGLE,
209 void(GLenum mode,
210 GLsizei count,
211 GLenum type,
212 const void* indices,
213 GLsizei primcount));
214 MOCK_METHOD6(DrawRangeElements,
215 void(GLenum mode,
216 GLuint start,
217 GLuint end,
218 GLsizei count,
219 GLenum type,
220 const void* indices));
221 MOCK_METHOD2(EGLImageTargetRenderbufferStorageOES,
222 void(GLenum target, GLeglImageOES image));
223 MOCK_METHOD2(EGLImageTargetTexture2DOES,
224 void(GLenum target, GLeglImageOES image));
225 MOCK_METHOD1(Enable, void(GLenum cap));
226 MOCK_METHOD1(EnableVertexAttribArray, void(GLuint index));
227 MOCK_METHOD1(EndQuery, void(GLenum target));
228 MOCK_METHOD1(EndQueryARB, void(GLenum target));
229 MOCK_METHOD0(EndTransformFeedback, void());
230 MOCK_METHOD2(FenceSync, GLsync(GLenum condition, GLbitfield flags));
231 MOCK_METHOD0(Finish, void());
232 MOCK_METHOD1(FinishFenceAPPLE, void(GLuint fence));
233 MOCK_METHOD1(FinishFenceNV, void(GLuint fence));
234 MOCK_METHOD0(Flush, void());
235 MOCK_METHOD3(FlushMappedBufferRange,
236 void(GLenum target, GLintptr offset, GLsizeiptr length));
237 MOCK_METHOD4(FramebufferRenderbufferEXT,
238 void(GLenum target,
239 GLenum attachment,
240 GLenum renderbuffertarget,
241 GLuint renderbuffer));
242 MOCK_METHOD5(FramebufferTexture2DEXT,
243 void(GLenum target,
244 GLenum attachment,
245 GLenum textarget,
246 GLuint texture,
247 GLint level));
248 MOCK_METHOD6(FramebufferTexture2DMultisampleEXT,
249 void(GLenum target,
250 GLenum attachment,
251 GLenum textarget,
252 GLuint texture,
253 GLint level,
254 GLsizei samples));
255 MOCK_METHOD6(FramebufferTexture2DMultisampleIMG,
256 void(GLenum target,
257 GLenum attachment,
258 GLenum textarget,
259 GLuint texture,
260 GLint level,
261 GLsizei samples));
262 MOCK_METHOD5(FramebufferTextureLayer,
263 void(GLenum target,
264 GLenum attachment,
265 GLuint texture,
266 GLint level,
267 GLint layer));
268 MOCK_METHOD1(FrontFace, void(GLenum mode));
269 MOCK_METHOD2(GenBuffersARB, void(GLsizei n, GLuint* buffers));
270 MOCK_METHOD1(GenerateMipmapEXT, void(GLenum target));
271 MOCK_METHOD2(GenFencesAPPLE, void(GLsizei n, GLuint* fences));
272 MOCK_METHOD2(GenFencesNV, void(GLsizei n, GLuint* fences));
273 MOCK_METHOD2(GenFramebuffersEXT, void(GLsizei n, GLuint* framebuffers));
274 MOCK_METHOD2(GenQueries, void(GLsizei n, GLuint* ids));
275 MOCK_METHOD2(GenQueriesARB, void(GLsizei n, GLuint* ids));
276 MOCK_METHOD2(GenRenderbuffersEXT, void(GLsizei n, GLuint* renderbuffers));
277 MOCK_METHOD2(GenSamplers, void(GLsizei n, GLuint* samplers));
278 MOCK_METHOD2(GenTextures, void(GLsizei n, GLuint* textures));
279 MOCK_METHOD2(GenTransformFeedbacks, void(GLsizei n, GLuint* ids));
280 MOCK_METHOD2(GenVertexArraysOES, void(GLsizei n, GLuint* arrays));
281 MOCK_METHOD7(GetActiveAttrib,
282 void(GLuint program,
283 GLuint index,
284 GLsizei bufsize,
285 GLsizei* length,
286 GLint* size,
287 GLenum* type,
288 char* name));
289 MOCK_METHOD7(GetActiveUniform,
290 void(GLuint program,
291 GLuint index,
292 GLsizei bufsize,
293 GLsizei* length,
294 GLint* size,
295 GLenum* type,
296 char* name));
297 MOCK_METHOD4(GetActiveUniformBlockiv,
298 void(GLuint program,
299 GLuint uniformBlockIndex,
300 GLenum pname,
301 GLint* params));
302 MOCK_METHOD5(GetActiveUniformBlockName,
303 void(GLuint program,
304 GLuint uniformBlockIndex,
305 GLsizei bufSize,
306 GLsizei* length,
307 char* uniformBlockName));
308 MOCK_METHOD5(GetActiveUniformsiv,
309 void(GLuint program,
310 GLsizei uniformCount,
311 const GLuint* uniformIndices,
312 GLenum pname,
313 GLint* params));
314 MOCK_METHOD4(
315 GetAttachedShaders,
316 void(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders));
317 MOCK_METHOD2(GetAttribLocation, GLint(GLuint program, const char* name));
318 MOCK_METHOD2(GetBooleanv, void(GLenum pname, GLboolean* params));
319 MOCK_METHOD3(GetBufferParameteriv,
320 void(GLenum target, GLenum pname, GLint* params));
321 MOCK_METHOD0(GetError, GLenum());
322 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint* params));
323 MOCK_METHOD2(GetFloatv, void(GLenum pname, GLfloat* params));
324 MOCK_METHOD2(GetFragDataLocation, GLint(GLuint program, const char* name));
325 MOCK_METHOD4(
326 GetFramebufferAttachmentParameterivEXT,
327 void(GLenum target, GLenum attachment, GLenum pname, GLint* params));
328 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum());
329 MOCK_METHOD3(GetInteger64i_v, void(GLenum target, GLuint index, GLint64* data));
330 MOCK_METHOD2(GetInteger64v, void(GLenum pname, GLint64* params));
331 MOCK_METHOD3(GetIntegeri_v, void(GLenum target, GLuint index, GLint* data));
332 MOCK_METHOD2(GetIntegerv, void(GLenum pname, GLint* params));
333 MOCK_METHOD5(GetInternalformativ,
334 void(GLenum target,
335 GLenum internalformat,
336 GLenum pname,
337 GLsizei bufSize,
338 GLint* params));
339 MOCK_METHOD5(GetProgramBinary,
340 void(GLuint program,
341 GLsizei bufSize,
342 GLsizei* length,
343 GLenum* binaryFormat,
344 GLvoid* binary));
345 MOCK_METHOD4(
346 GetProgramInfoLog,
347 void(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog));
348 MOCK_METHOD3(GetProgramiv, void(GLuint program, GLenum pname, GLint* params));
349 MOCK_METHOD3(GetQueryiv, void(GLenum target, GLenum pname, GLint* params));
350 MOCK_METHOD3(GetQueryivARB, void(GLenum target, GLenum pname, GLint* params));
351 MOCK_METHOD3(GetQueryObjecti64v,
352 void(GLuint id, GLenum pname, GLint64* params));
353 MOCK_METHOD3(GetQueryObjectiv, void(GLuint id, GLenum pname, GLint* params));
354 MOCK_METHOD3(GetQueryObjectivARB, void(GLuint id, GLenum pname, GLint* params));
355 MOCK_METHOD3(GetQueryObjectui64v,
356 void(GLuint id, GLenum pname, GLuint64* params));
357 MOCK_METHOD3(GetQueryObjectuiv, void(GLuint id, GLenum pname, GLuint* params));
358 MOCK_METHOD3(GetQueryObjectuivARB,
359 void(GLuint id, GLenum pname, GLuint* params));
360 MOCK_METHOD3(GetRenderbufferParameterivEXT,
361 void(GLenum target, GLenum pname, GLint* params));
362 MOCK_METHOD3(GetSamplerParameterfv,
363 void(GLuint sampler, GLenum pname, GLfloat* params));
364 MOCK_METHOD3(GetSamplerParameteriv,
365 void(GLuint sampler, GLenum pname, GLint* params));
366 MOCK_METHOD4(
367 GetShaderInfoLog,
368 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog));
369 MOCK_METHOD3(GetShaderiv, void(GLuint shader, GLenum pname, GLint* params));
370 MOCK_METHOD4(GetShaderPrecisionFormat,
371 void(GLenum shadertype,
372 GLenum precisiontype,
373 GLint* range,
374 GLint* precision));
375 MOCK_METHOD4(
376 GetShaderSource,
377 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* source));
378 MOCK_METHOD1(GetString, const GLubyte*(GLenum name));
379 MOCK_METHOD5(GetSynciv,
380 void(GLsync sync,
381 GLenum pname,
382 GLsizei bufSize,
383 GLsizei* length,
384 GLint* values));
385 MOCK_METHOD4(GetTexLevelParameterfv,
386 void(GLenum target, GLint level, GLenum pname, GLfloat* params));
387 MOCK_METHOD4(GetTexLevelParameteriv,
388 void(GLenum target, GLint level, GLenum pname, GLint* params));
389 MOCK_METHOD3(GetTexParameterfv,
390 void(GLenum target, GLenum pname, GLfloat* params));
391 MOCK_METHOD3(GetTexParameteriv,
392 void(GLenum target, GLenum pname, GLint* params));
393 MOCK_METHOD6(GetTransformFeedbackVarying,
394 void(GLuint program,
395 GLuint index,
396 GLsizei bufSize,
397 GLsizei* length,
398 GLenum* type,
399 char* name));
400 MOCK_METHOD4(
401 GetTranslatedShaderSourceANGLE,
402 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* source));
403 MOCK_METHOD2(GetUniformBlockIndex,
404 GLuint(GLuint program, const char* uniformBlockName));
405 MOCK_METHOD3(GetUniformfv,
406 void(GLuint program, GLint location, GLfloat* params));
407 MOCK_METHOD4(GetUniformIndices,
408 void(GLuint program,
409 GLsizei uniformCount,
410 const char* const* uniformNames,
411 GLuint* uniformIndices));
412 MOCK_METHOD3(GetUniformiv, void(GLuint program, GLint location, GLint* params));
413 MOCK_METHOD2(GetUniformLocation, GLint(GLuint program, const char* name));
414 MOCK_METHOD3(GetVertexAttribfv,
415 void(GLuint index, GLenum pname, GLfloat* params));
416 MOCK_METHOD3(GetVertexAttribiv,
417 void(GLuint index, GLenum pname, GLint* params));
418 MOCK_METHOD3(GetVertexAttribPointerv,
419 void(GLuint index, GLenum pname, void** pointer));
420 MOCK_METHOD2(Hint, void(GLenum target, GLenum mode));
421 MOCK_METHOD2(InsertEventMarkerEXT, void(GLsizei length, const char* marker));
422 MOCK_METHOD3(InvalidateFramebuffer,
423 void(GLenum target,
424 GLsizei numAttachments,
425 const GLenum* attachments));
426 MOCK_METHOD7(InvalidateSubFramebuffer,
427 void(GLenum target,
428 GLsizei numAttachments,
429 const GLenum* attachments,
430 GLint x,
431 GLint y,
432 GLint width,
433 GLint height));
434 MOCK_METHOD1(IsBuffer, GLboolean(GLuint buffer));
435 MOCK_METHOD1(IsEnabled, GLboolean(GLenum cap));
436 MOCK_METHOD1(IsFenceAPPLE, GLboolean(GLuint fence));
437 MOCK_METHOD1(IsFenceNV, GLboolean(GLuint fence));
438 MOCK_METHOD1(IsFramebufferEXT, GLboolean(GLuint framebuffer));
439 MOCK_METHOD1(IsProgram, GLboolean(GLuint program));
440 MOCK_METHOD1(IsQuery, GLboolean(GLuint query));
441 MOCK_METHOD1(IsQueryARB, GLboolean(GLuint query));
442 MOCK_METHOD1(IsRenderbufferEXT, GLboolean(GLuint renderbuffer));
443 MOCK_METHOD1(IsSampler, GLboolean(GLuint sampler));
444 MOCK_METHOD1(IsShader, GLboolean(GLuint shader));
445 MOCK_METHOD1(IsSync, GLboolean(GLsync sync));
446 MOCK_METHOD1(IsTexture, GLboolean(GLuint texture));
447 MOCK_METHOD1(IsTransformFeedback, GLboolean(GLuint id));
448 MOCK_METHOD1(IsVertexArrayOES, GLboolean(GLuint array));
449 MOCK_METHOD1(LineWidth, void(GLfloat width));
450 MOCK_METHOD1(LinkProgram, void(GLuint program));
451 MOCK_METHOD2(MapBuffer, void*(GLenum target, GLenum access));
452 MOCK_METHOD4(MapBufferRange,
453 void*(GLenum target,
454 GLintptr offset,
455 GLsizeiptr length,
456 GLbitfield access));
457 MOCK_METHOD2(MatrixLoadfEXT, void(GLenum matrixMode, const GLfloat* m));
458 MOCK_METHOD1(MatrixLoadIdentityEXT, void(GLenum matrixMode));
459 MOCK_METHOD0(PauseTransformFeedback, void());
460 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param));
461 MOCK_METHOD2(PointParameteri, void(GLenum pname, GLint param));
462 MOCK_METHOD2(PolygonOffset, void(GLfloat factor, GLfloat units));
463 MOCK_METHOD0(PopGroupMarkerEXT, void());
464 MOCK_METHOD4(ProgramBinary,
465 void(GLuint program,
466 GLenum binaryFormat,
467 const GLvoid* binary,
468 GLsizei length));
469 MOCK_METHOD3(ProgramParameteri,
470 void(GLuint program, GLenum pname, GLint value));
471 MOCK_METHOD2(PushGroupMarkerEXT, void(GLsizei length, const char* marker));
472 MOCK_METHOD2(QueryCounter, void(GLuint id, GLenum target));
473 MOCK_METHOD1(ReadBuffer, void(GLenum src));
474 MOCK_METHOD7(ReadPixels,
475 void(GLint x,
476 GLint y,
477 GLsizei width,
478 GLsizei height,
479 GLenum format,
480 GLenum type,
481 void* pixels));
482 MOCK_METHOD0(ReleaseShaderCompiler, void());
483 MOCK_METHOD4(
484 RenderbufferStorageEXT,
485 void(GLenum target, GLenum internalformat, GLsizei width, GLsizei height));
486 MOCK_METHOD5(RenderbufferStorageMultisample,
487 void(GLenum target,
488 GLsizei samples,
489 GLenum internalformat,
490 GLsizei width,
491 GLsizei height));
492 MOCK_METHOD5(RenderbufferStorageMultisampleANGLE,
493 void(GLenum target,
494 GLsizei samples,
495 GLenum internalformat,
496 GLsizei width,
497 GLsizei height));
498 MOCK_METHOD5(RenderbufferStorageMultisampleEXT,
499 void(GLenum target,
500 GLsizei samples,
501 GLenum internalformat,
502 GLsizei width,
503 GLsizei height));
504 MOCK_METHOD5(RenderbufferStorageMultisampleIMG,
505 void(GLenum target,
506 GLsizei samples,
507 GLenum internalformat,
508 GLsizei width,
509 GLsizei height));
510 MOCK_METHOD0(ResumeTransformFeedback, void());
511 MOCK_METHOD2(SampleCoverage, void(GLclampf value, GLboolean invert));
512 MOCK_METHOD3(SamplerParameterf,
513 void(GLuint sampler, GLenum pname, GLfloat param));
514 MOCK_METHOD3(SamplerParameterfv,
515 void(GLuint sampler, GLenum pname, const GLfloat* params));
516 MOCK_METHOD3(SamplerParameteri,
517 void(GLuint sampler, GLenum pname, GLint param));
518 MOCK_METHOD3(SamplerParameteriv,
519 void(GLuint sampler, GLenum pname, const GLint* params));
520 MOCK_METHOD4(Scissor, void(GLint x, GLint y, GLsizei width, GLsizei height));
521 MOCK_METHOD1(SetFenceAPPLE, void(GLuint fence));
522 MOCK_METHOD2(SetFenceNV, void(GLuint fence, GLenum condition));
523 MOCK_METHOD5(ShaderBinary,
524 void(GLsizei n,
525 const GLuint* shaders,
526 GLenum binaryformat,
527 const void* binary,
528 GLsizei length));
529 MOCK_METHOD4(ShaderSource,
530 void(GLuint shader,
531 GLsizei count,
532 const char* const* str,
533 const GLint* length));
534 MOCK_METHOD3(StencilFunc, void(GLenum func, GLint ref, GLuint mask));
535 MOCK_METHOD4(StencilFuncSeparate,
536 void(GLenum face, GLenum func, GLint ref, GLuint mask));
537 MOCK_METHOD1(StencilMask, void(GLuint mask));
538 MOCK_METHOD2(StencilMaskSeparate, void(GLenum face, GLuint mask));
539 MOCK_METHOD3(StencilOp, void(GLenum fail, GLenum zfail, GLenum zpass));
540 MOCK_METHOD4(StencilOpSeparate,
541 void(GLenum face, GLenum fail, GLenum zfail, GLenum zpass));
542 MOCK_METHOD1(TestFenceAPPLE, GLboolean(GLuint fence));
543 MOCK_METHOD1(TestFenceNV, GLboolean(GLuint fence));
544 MOCK_METHOD9(TexImage2D,
545 void(GLenum target,
546 GLint level,
547 GLint internalformat,
548 GLsizei width,
549 GLsizei height,
550 GLint border,
551 GLenum format,
552 GLenum type,
553 const void* pixels));
554 MOCK_METHOD10(TexImage3D,
555 void(GLenum target,
556 GLint level,
557 GLint internalformat,
558 GLsizei width,
559 GLsizei height,
560 GLsizei depth,
561 GLint border,
562 GLenum format,
563 GLenum type,
564 const void* pixels));
565 MOCK_METHOD3(TexParameterf, void(GLenum target, GLenum pname, GLfloat param));
566 MOCK_METHOD3(TexParameterfv,
567 void(GLenum target, GLenum pname, const GLfloat* params));
568 MOCK_METHOD3(TexParameteri, void(GLenum target, GLenum pname, GLint param));
569 MOCK_METHOD3(TexParameteriv,
570 void(GLenum target, GLenum pname, const GLint* params));
571 MOCK_METHOD5(TexStorage2DEXT,
572 void(GLenum target,
573 GLsizei levels,
574 GLenum internalformat,
575 GLsizei width,
576 GLsizei height));
577 MOCK_METHOD6(TexStorage3D,
578 void(GLenum target,
579 GLsizei levels,
580 GLenum internalformat,
581 GLsizei width,
582 GLsizei height,
583 GLsizei depth));
584 MOCK_METHOD9(TexSubImage2D,
585 void(GLenum target,
586 GLint level,
587 GLint xoffset,
588 GLint yoffset,
589 GLsizei width,
590 GLsizei height,
591 GLenum format,
592 GLenum type,
593 const void* pixels));
594 MOCK_METHOD4(TransformFeedbackVaryings,
595 void(GLuint program,
596 GLsizei count,
597 const char* const* varyings,
598 GLenum bufferMode));
599 MOCK_METHOD2(Uniform1f, void(GLint location, GLfloat x));
600 MOCK_METHOD3(Uniform1fv, void(GLint location, GLsizei count, const GLfloat* v));
601 MOCK_METHOD2(Uniform1i, void(GLint location, GLint x));
602 MOCK_METHOD3(Uniform1iv, void(GLint location, GLsizei count, const GLint* v));
603 MOCK_METHOD2(Uniform1ui, void(GLint location, GLuint v0));
604 MOCK_METHOD3(Uniform1uiv, void(GLint location, GLsizei count, const GLuint* v));
605 MOCK_METHOD3(Uniform2f, void(GLint location, GLfloat x, GLfloat y));
606 MOCK_METHOD3(Uniform2fv, void(GLint location, GLsizei count, const GLfloat* v));
607 MOCK_METHOD3(Uniform2i, void(GLint location, GLint x, GLint y));
608 MOCK_METHOD3(Uniform2iv, void(GLint location, GLsizei count, const GLint* v));
609 MOCK_METHOD3(Uniform2ui, void(GLint location, GLuint v0, GLuint v1));
610 MOCK_METHOD3(Uniform2uiv, void(GLint location, GLsizei count, const GLuint* v));
611 MOCK_METHOD4(Uniform3f, void(GLint location, GLfloat x, GLfloat y, GLfloat z));
612 MOCK_METHOD3(Uniform3fv, void(GLint location, GLsizei count, const GLfloat* v));
613 MOCK_METHOD4(Uniform3i, void(GLint location, GLint x, GLint y, GLint z));
614 MOCK_METHOD3(Uniform3iv, void(GLint location, GLsizei count, const GLint* v));
615 MOCK_METHOD4(Uniform3ui, void(GLint location, GLuint v0, GLuint v1, GLuint v2));
616 MOCK_METHOD3(Uniform3uiv, void(GLint location, GLsizei count, const GLuint* v));
617 MOCK_METHOD5(Uniform4f,
618 void(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w));
619 MOCK_METHOD3(Uniform4fv, void(GLint location, GLsizei count, const GLfloat* v));
620 MOCK_METHOD5(Uniform4i,
621 void(GLint location, GLint x, GLint y, GLint z, GLint w));
622 MOCK_METHOD3(Uniform4iv, void(GLint location, GLsizei count, const GLint* v));
623 MOCK_METHOD5(Uniform4ui,
624 void(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3));
625 MOCK_METHOD3(Uniform4uiv, void(GLint location, GLsizei count, const GLuint* v));
626 MOCK_METHOD3(UniformBlockBinding,
627 void(GLuint program,
628 GLuint uniformBlockIndex,
629 GLuint uniformBlockBinding));
630 MOCK_METHOD4(UniformMatrix2fv,
631 void(GLint location,
632 GLsizei count,
633 GLboolean transpose,
634 const GLfloat* value));
635 MOCK_METHOD4(UniformMatrix2x3fv,
636 void(GLint location,
637 GLsizei count,
638 GLboolean transpose,
639 const GLfloat* value));
640 MOCK_METHOD4(UniformMatrix2x4fv,
641 void(GLint location,
642 GLsizei count,
643 GLboolean transpose,
644 const GLfloat* value));
645 MOCK_METHOD4(UniformMatrix3fv,
646 void(GLint location,
647 GLsizei count,
648 GLboolean transpose,
649 const GLfloat* value));
650 MOCK_METHOD4(UniformMatrix3x2fv,
651 void(GLint location,
652 GLsizei count,
653 GLboolean transpose,
654 const GLfloat* value));
655 MOCK_METHOD4(UniformMatrix3x4fv,
656 void(GLint location,
657 GLsizei count,
658 GLboolean transpose,
659 const GLfloat* value));
660 MOCK_METHOD4(UniformMatrix4fv,
661 void(GLint location,
662 GLsizei count,
663 GLboolean transpose,
664 const GLfloat* value));
665 MOCK_METHOD4(UniformMatrix4x2fv,
666 void(GLint location,
667 GLsizei count,
668 GLboolean transpose,
669 const GLfloat* value));
670 MOCK_METHOD4(UniformMatrix4x3fv,
671 void(GLint location,
672 GLsizei count,
673 GLboolean transpose,
674 const GLfloat* value));
675 MOCK_METHOD1(UnmapBuffer, GLboolean(GLenum target));
676 MOCK_METHOD1(UseProgram, void(GLuint program));
677 MOCK_METHOD1(ValidateProgram, void(GLuint program));
678 MOCK_METHOD2(VertexAttrib1f, void(GLuint indx, GLfloat x));
679 MOCK_METHOD2(VertexAttrib1fv, void(GLuint indx, const GLfloat* values));
680 MOCK_METHOD3(VertexAttrib2f, void(GLuint indx, GLfloat x, GLfloat y));
681 MOCK_METHOD2(VertexAttrib2fv, void(GLuint indx, const GLfloat* values));
682 MOCK_METHOD4(VertexAttrib3f,
683 void(GLuint indx, GLfloat x, GLfloat y, GLfloat z));
684 MOCK_METHOD2(VertexAttrib3fv, void(GLuint indx, const GLfloat* values));
685 MOCK_METHOD5(VertexAttrib4f,
686 void(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w));
687 MOCK_METHOD2(VertexAttrib4fv, void(GLuint indx, const GLfloat* values));
688 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor));
689 MOCK_METHOD5(VertexAttribI4i,
690 void(GLuint indx, GLint x, GLint y, GLint z, GLint w));
691 MOCK_METHOD2(VertexAttribI4iv, void(GLuint indx, const GLint* values));
692 MOCK_METHOD5(VertexAttribI4ui,
693 void(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w));
694 MOCK_METHOD2(VertexAttribI4uiv, void(GLuint indx, const GLuint* values));
695 MOCK_METHOD5(VertexAttribIPointer,
696 void(GLuint indx,
697 GLint size,
698 GLenum type,
699 GLsizei stride,
700 const void* ptr));
701 MOCK_METHOD6(VertexAttribPointer,
702 void(GLuint indx,
703 GLint size,
704 GLenum type,
705 GLboolean normalized,
706 GLsizei stride,
707 const void* ptr));
708 MOCK_METHOD4(Viewport, void(GLint x, GLint y, GLsizei width, GLsizei height));
709 MOCK_METHOD3(WaitSync, GLenum(GLsync sync, GLbitfield flags, GLuint64 timeout));