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