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