mac: Disable Address Book integration.
[chromium-blink-merge.git] / ui / gl / gl_mock_autogen_gl.h
blob2840661c9965cf2a7749cf635f5c4a6d6042b87a
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_METHOD0(CreateProgram, GLuint());
172 MOCK_METHOD1(CreateShader, GLuint(GLenum type));
173 MOCK_METHOD1(CullFace, void(GLenum mode));
174 MOCK_METHOD2(DeleteBuffersARB, void(GLsizei n, const GLuint* buffers));
175 MOCK_METHOD2(DeleteFencesAPPLE, void(GLsizei n, const GLuint* fences));
176 MOCK_METHOD2(DeleteFencesNV, void(GLsizei n, const GLuint* fences));
177 MOCK_METHOD2(DeleteFramebuffersEXT,
178 void(GLsizei n, const GLuint* framebuffers));
179 MOCK_METHOD1(DeleteProgram, void(GLuint program));
180 MOCK_METHOD2(DeleteQueries, 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_METHOD0(EndTransformFeedback, void());
229 MOCK_METHOD2(FenceSync, GLsync(GLenum condition, GLbitfield flags));
230 MOCK_METHOD0(Finish, void());
231 MOCK_METHOD1(FinishFenceAPPLE, void(GLuint fence));
232 MOCK_METHOD1(FinishFenceNV, void(GLuint fence));
233 MOCK_METHOD0(Flush, void());
234 MOCK_METHOD3(FlushMappedBufferRange,
235 void(GLenum target, GLintptr offset, GLsizeiptr length));
236 MOCK_METHOD4(FramebufferRenderbufferEXT,
237 void(GLenum target,
238 GLenum attachment,
239 GLenum renderbuffertarget,
240 GLuint renderbuffer));
241 MOCK_METHOD5(FramebufferTexture2DEXT,
242 void(GLenum target,
243 GLenum attachment,
244 GLenum textarget,
245 GLuint texture,
246 GLint level));
247 MOCK_METHOD6(FramebufferTexture2DMultisampleEXT,
248 void(GLenum target,
249 GLenum attachment,
250 GLenum textarget,
251 GLuint texture,
252 GLint level,
253 GLsizei samples));
254 MOCK_METHOD6(FramebufferTexture2DMultisampleIMG,
255 void(GLenum target,
256 GLenum attachment,
257 GLenum textarget,
258 GLuint texture,
259 GLint level,
260 GLsizei samples));
261 MOCK_METHOD5(FramebufferTextureLayer,
262 void(GLenum target,
263 GLenum attachment,
264 GLuint texture,
265 GLint level,
266 GLint layer));
267 MOCK_METHOD1(FrontFace, void(GLenum mode));
268 MOCK_METHOD2(GenBuffersARB, void(GLsizei n, GLuint* buffers));
269 MOCK_METHOD1(GenerateMipmapEXT, void(GLenum target));
270 MOCK_METHOD2(GenFencesAPPLE, void(GLsizei n, GLuint* fences));
271 MOCK_METHOD2(GenFencesNV, void(GLsizei n, GLuint* fences));
272 MOCK_METHOD2(GenFramebuffersEXT, void(GLsizei n, GLuint* framebuffers));
273 MOCK_METHOD2(GenQueries, void(GLsizei n, GLuint* ids));
274 MOCK_METHOD2(GenRenderbuffersEXT, void(GLsizei n, GLuint* renderbuffers));
275 MOCK_METHOD2(GenSamplers, void(GLsizei n, GLuint* samplers));
276 MOCK_METHOD2(GenTextures, void(GLsizei n, GLuint* textures));
277 MOCK_METHOD2(GenTransformFeedbacks, void(GLsizei n, GLuint* ids));
278 MOCK_METHOD2(GenVertexArraysOES, void(GLsizei n, GLuint* arrays));
279 MOCK_METHOD7(GetActiveAttrib,
280 void(GLuint program,
281 GLuint index,
282 GLsizei bufsize,
283 GLsizei* length,
284 GLint* size,
285 GLenum* type,
286 char* name));
287 MOCK_METHOD7(GetActiveUniform,
288 void(GLuint program,
289 GLuint index,
290 GLsizei bufsize,
291 GLsizei* length,
292 GLint* size,
293 GLenum* type,
294 char* name));
295 MOCK_METHOD4(GetActiveUniformBlockiv,
296 void(GLuint program,
297 GLuint uniformBlockIndex,
298 GLenum pname,
299 GLint* params));
300 MOCK_METHOD5(GetActiveUniformBlockName,
301 void(GLuint program,
302 GLuint uniformBlockIndex,
303 GLsizei bufSize,
304 GLsizei* length,
305 char* uniformBlockName));
306 MOCK_METHOD5(GetActiveUniformsiv,
307 void(GLuint program,
308 GLsizei uniformCount,
309 const GLuint* uniformIndices,
310 GLenum pname,
311 GLint* params));
312 MOCK_METHOD4(
313 GetAttachedShaders,
314 void(GLuint program, GLsizei maxcount, GLsizei* count, GLuint* shaders));
315 MOCK_METHOD2(GetAttribLocation, GLint(GLuint program, const char* name));
316 MOCK_METHOD2(GetBooleanv, void(GLenum pname, GLboolean* params));
317 MOCK_METHOD3(GetBufferParameteriv,
318 void(GLenum target, GLenum pname, GLint* params));
319 MOCK_METHOD0(GetError, GLenum());
320 MOCK_METHOD3(GetFenceivNV, void(GLuint fence, GLenum pname, GLint* params));
321 MOCK_METHOD2(GetFloatv, void(GLenum pname, GLfloat* params));
322 MOCK_METHOD2(GetFragDataLocation, GLint(GLuint program, const char* name));
323 MOCK_METHOD4(
324 GetFramebufferAttachmentParameterivEXT,
325 void(GLenum target, GLenum attachment, GLenum pname, GLint* params));
326 MOCK_METHOD0(GetGraphicsResetStatusARB, GLenum());
327 MOCK_METHOD3(GetInteger64i_v, void(GLenum target, GLuint index, GLint64* data));
328 MOCK_METHOD2(GetInteger64v, void(GLenum pname, GLint64* params));
329 MOCK_METHOD3(GetIntegeri_v, void(GLenum target, GLuint index, GLint* data));
330 MOCK_METHOD2(GetIntegerv, void(GLenum pname, GLint* params));
331 MOCK_METHOD5(GetInternalformativ,
332 void(GLenum target,
333 GLenum internalformat,
334 GLenum pname,
335 GLsizei bufSize,
336 GLint* params));
337 MOCK_METHOD5(GetProgramBinary,
338 void(GLuint program,
339 GLsizei bufSize,
340 GLsizei* length,
341 GLenum* binaryFormat,
342 GLvoid* binary));
343 MOCK_METHOD4(
344 GetProgramInfoLog,
345 void(GLuint program, GLsizei bufsize, GLsizei* length, char* infolog));
346 MOCK_METHOD3(GetProgramiv, void(GLuint program, GLenum pname, GLint* params));
347 MOCK_METHOD3(GetProgramResourceLocation,
348 GLint(GLuint program, GLenum programInterface, const char* name));
349 MOCK_METHOD3(GetQueryiv, void(GLenum target, GLenum pname, GLint* params));
350 MOCK_METHOD3(GetQueryObjecti64v,
351 void(GLuint id, GLenum pname, GLint64* params));
352 MOCK_METHOD3(GetQueryObjectiv, void(GLuint id, GLenum pname, GLint* params));
353 MOCK_METHOD3(GetQueryObjectui64v,
354 void(GLuint id, GLenum pname, GLuint64* params));
355 MOCK_METHOD3(GetQueryObjectuiv, void(GLuint id, GLenum pname, GLuint* params));
356 MOCK_METHOD3(GetRenderbufferParameterivEXT,
357 void(GLenum target, GLenum pname, GLint* params));
358 MOCK_METHOD3(GetSamplerParameterfv,
359 void(GLuint sampler, GLenum pname, GLfloat* params));
360 MOCK_METHOD3(GetSamplerParameteriv,
361 void(GLuint sampler, GLenum pname, GLint* params));
362 MOCK_METHOD4(
363 GetShaderInfoLog,
364 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* infolog));
365 MOCK_METHOD3(GetShaderiv, void(GLuint shader, GLenum pname, GLint* params));
366 MOCK_METHOD4(GetShaderPrecisionFormat,
367 void(GLenum shadertype,
368 GLenum precisiontype,
369 GLint* range,
370 GLint* precision));
371 MOCK_METHOD4(
372 GetShaderSource,
373 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* source));
374 MOCK_METHOD1(GetString, const GLubyte*(GLenum name));
375 MOCK_METHOD2(GetStringi, const GLubyte*(GLenum name, GLuint index));
376 MOCK_METHOD5(GetSynciv,
377 void(GLsync sync,
378 GLenum pname,
379 GLsizei bufSize,
380 GLsizei* length,
381 GLint* values));
382 MOCK_METHOD4(GetTexLevelParameterfv,
383 void(GLenum target, GLint level, GLenum pname, GLfloat* params));
384 MOCK_METHOD4(GetTexLevelParameteriv,
385 void(GLenum target, GLint level, GLenum pname, GLint* params));
386 MOCK_METHOD3(GetTexParameterfv,
387 void(GLenum target, GLenum pname, GLfloat* params));
388 MOCK_METHOD3(GetTexParameteriv,
389 void(GLenum target, GLenum pname, GLint* params));
390 MOCK_METHOD7(GetTransformFeedbackVarying,
391 void(GLuint program,
392 GLuint index,
393 GLsizei bufSize,
394 GLsizei* length,
395 GLsizei* size,
396 GLenum* type,
397 char* name));
398 MOCK_METHOD4(
399 GetTranslatedShaderSourceANGLE,
400 void(GLuint shader, GLsizei bufsize, GLsizei* length, char* source));
401 MOCK_METHOD2(GetUniformBlockIndex,
402 GLuint(GLuint program, const char* uniformBlockName));
403 MOCK_METHOD3(GetUniformfv,
404 void(GLuint program, GLint location, GLfloat* params));
405 MOCK_METHOD4(GetUniformIndices,
406 void(GLuint program,
407 GLsizei uniformCount,
408 const char* const* uniformNames,
409 GLuint* uniformIndices));
410 MOCK_METHOD3(GetUniformiv, void(GLuint program, GLint location, GLint* params));
411 MOCK_METHOD2(GetUniformLocation, GLint(GLuint program, const char* name));
412 MOCK_METHOD3(GetUniformuiv,
413 void(GLuint program, GLint location, GLuint* params));
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(IsRenderbufferEXT, GLboolean(GLuint renderbuffer));
442 MOCK_METHOD1(IsSampler, GLboolean(GLuint sampler));
443 MOCK_METHOD1(IsShader, GLboolean(GLuint shader));
444 MOCK_METHOD1(IsSync, GLboolean(GLsync sync));
445 MOCK_METHOD1(IsTexture, GLboolean(GLuint texture));
446 MOCK_METHOD1(IsTransformFeedback, GLboolean(GLuint id));
447 MOCK_METHOD1(IsVertexArrayOES, GLboolean(GLuint array));
448 MOCK_METHOD1(LineWidth, void(GLfloat width));
449 MOCK_METHOD1(LinkProgram, void(GLuint program));
450 MOCK_METHOD2(MapBuffer, void*(GLenum target, GLenum access));
451 MOCK_METHOD4(MapBufferRange,
452 void*(GLenum target,
453 GLintptr offset,
454 GLsizeiptr length,
455 GLbitfield access));
456 MOCK_METHOD2(MatrixLoadfEXT, void(GLenum matrixMode, const GLfloat* m));
457 MOCK_METHOD1(MatrixLoadIdentityEXT, void(GLenum matrixMode));
458 MOCK_METHOD0(PauseTransformFeedback, void());
459 MOCK_METHOD2(PixelStorei, void(GLenum pname, GLint param));
460 MOCK_METHOD2(PointParameteri, void(GLenum pname, GLint param));
461 MOCK_METHOD2(PolygonOffset, void(GLfloat factor, GLfloat units));
462 MOCK_METHOD0(PopGroupMarkerEXT, void());
463 MOCK_METHOD4(ProgramBinary,
464 void(GLuint program,
465 GLenum binaryFormat,
466 const GLvoid* binary,
467 GLsizei length));
468 MOCK_METHOD3(ProgramParameteri,
469 void(GLuint program, GLenum pname, GLint value));
470 MOCK_METHOD2(PushGroupMarkerEXT, void(GLsizei length, const char* marker));
471 MOCK_METHOD2(QueryCounter, void(GLuint id, GLenum target));
472 MOCK_METHOD1(ReadBuffer, void(GLenum src));
473 MOCK_METHOD7(ReadPixels,
474 void(GLint x,
475 GLint y,
476 GLsizei width,
477 GLsizei height,
478 GLenum format,
479 GLenum type,
480 void* pixels));
481 MOCK_METHOD0(ReleaseShaderCompiler, void());
482 MOCK_METHOD4(
483 RenderbufferStorageEXT,
484 void(GLenum target, GLenum internalformat, GLsizei width, GLsizei height));
485 MOCK_METHOD5(RenderbufferStorageMultisample,
486 void(GLenum target,
487 GLsizei samples,
488 GLenum internalformat,
489 GLsizei width,
490 GLsizei height));
491 MOCK_METHOD5(RenderbufferStorageMultisampleANGLE,
492 void(GLenum target,
493 GLsizei samples,
494 GLenum internalformat,
495 GLsizei width,
496 GLsizei height));
497 MOCK_METHOD5(RenderbufferStorageMultisampleEXT,
498 void(GLenum target,
499 GLsizei samples,
500 GLenum internalformat,
501 GLsizei width,
502 GLsizei height));
503 MOCK_METHOD5(RenderbufferStorageMultisampleIMG,
504 void(GLenum target,
505 GLsizei samples,
506 GLenum internalformat,
507 GLsizei width,
508 GLsizei height));
509 MOCK_METHOD0(ResumeTransformFeedback, void());
510 MOCK_METHOD2(SampleCoverage, void(GLclampf value, GLboolean invert));
511 MOCK_METHOD3(SamplerParameterf,
512 void(GLuint sampler, GLenum pname, GLfloat param));
513 MOCK_METHOD3(SamplerParameterfv,
514 void(GLuint sampler, GLenum pname, const GLfloat* params));
515 MOCK_METHOD3(SamplerParameteri,
516 void(GLuint sampler, GLenum pname, GLint param));
517 MOCK_METHOD3(SamplerParameteriv,
518 void(GLuint sampler, GLenum pname, const GLint* params));
519 MOCK_METHOD4(Scissor, void(GLint x, GLint y, GLsizei width, GLsizei height));
520 MOCK_METHOD1(SetFenceAPPLE, void(GLuint fence));
521 MOCK_METHOD2(SetFenceNV, void(GLuint fence, GLenum condition));
522 MOCK_METHOD5(ShaderBinary,
523 void(GLsizei n,
524 const GLuint* shaders,
525 GLenum binaryformat,
526 const void* binary,
527 GLsizei length));
528 MOCK_METHOD4(ShaderSource,
529 void(GLuint shader,
530 GLsizei count,
531 const char* const* str,
532 const GLint* length));
533 MOCK_METHOD3(StencilFunc, void(GLenum func, GLint ref, GLuint mask));
534 MOCK_METHOD4(StencilFuncSeparate,
535 void(GLenum face, GLenum func, GLint ref, GLuint mask));
536 MOCK_METHOD1(StencilMask, void(GLuint mask));
537 MOCK_METHOD2(StencilMaskSeparate, void(GLenum face, GLuint mask));
538 MOCK_METHOD3(StencilOp, void(GLenum fail, GLenum zfail, GLenum zpass));
539 MOCK_METHOD4(StencilOpSeparate,
540 void(GLenum face, GLenum fail, GLenum zfail, GLenum zpass));
541 MOCK_METHOD1(TestFenceAPPLE, GLboolean(GLuint fence));
542 MOCK_METHOD1(TestFenceNV, GLboolean(GLuint fence));
543 MOCK_METHOD9(TexImage2D,
544 void(GLenum target,
545 GLint level,
546 GLint internalformat,
547 GLsizei width,
548 GLsizei height,
549 GLint border,
550 GLenum format,
551 GLenum type,
552 const void* pixels));
553 MOCK_METHOD10(TexImage3D,
554 void(GLenum target,
555 GLint level,
556 GLint internalformat,
557 GLsizei width,
558 GLsizei height,
559 GLsizei depth,
560 GLint border,
561 GLenum format,
562 GLenum type,
563 const void* pixels));
564 MOCK_METHOD3(TexParameterf, void(GLenum target, GLenum pname, GLfloat param));
565 MOCK_METHOD3(TexParameterfv,
566 void(GLenum target, GLenum pname, const GLfloat* params));
567 MOCK_METHOD3(TexParameteri, void(GLenum target, GLenum pname, GLint param));
568 MOCK_METHOD3(TexParameteriv,
569 void(GLenum target, GLenum pname, const GLint* params));
570 MOCK_METHOD5(TexStorage2DEXT,
571 void(GLenum target,
572 GLsizei levels,
573 GLenum internalformat,
574 GLsizei width,
575 GLsizei height));
576 MOCK_METHOD6(TexStorage3D,
577 void(GLenum target,
578 GLsizei levels,
579 GLenum internalformat,
580 GLsizei width,
581 GLsizei height,
582 GLsizei depth));
583 MOCK_METHOD9(TexSubImage2D,
584 void(GLenum target,
585 GLint level,
586 GLint xoffset,
587 GLint yoffset,
588 GLsizei width,
589 GLsizei height,
590 GLenum format,
591 GLenum type,
592 const void* pixels));
593 // TODO(zmo): crbug.com/456340
594 // glTexSubImage3D cannot be mocked because it has 11 args.
595 MOCK_METHOD4(TransformFeedbackVaryings,
596 void(GLuint program,
597 GLsizei count,
598 const char* const* varyings,
599 GLenum bufferMode));
600 MOCK_METHOD2(Uniform1f, void(GLint location, GLfloat x));
601 MOCK_METHOD3(Uniform1fv, void(GLint location, GLsizei count, const GLfloat* v));
602 MOCK_METHOD2(Uniform1i, void(GLint location, GLint x));
603 MOCK_METHOD3(Uniform1iv, void(GLint location, GLsizei count, const GLint* v));
604 MOCK_METHOD2(Uniform1ui, void(GLint location, GLuint v0));
605 MOCK_METHOD3(Uniform1uiv, void(GLint location, GLsizei count, const GLuint* v));
606 MOCK_METHOD3(Uniform2f, void(GLint location, GLfloat x, GLfloat y));
607 MOCK_METHOD3(Uniform2fv, void(GLint location, GLsizei count, const GLfloat* v));
608 MOCK_METHOD3(Uniform2i, void(GLint location, GLint x, GLint y));
609 MOCK_METHOD3(Uniform2iv, void(GLint location, GLsizei count, const GLint* v));
610 MOCK_METHOD3(Uniform2ui, void(GLint location, GLuint v0, GLuint v1));
611 MOCK_METHOD3(Uniform2uiv, void(GLint location, GLsizei count, const GLuint* v));
612 MOCK_METHOD4(Uniform3f, void(GLint location, GLfloat x, GLfloat y, GLfloat z));
613 MOCK_METHOD3(Uniform3fv, void(GLint location, GLsizei count, const GLfloat* v));
614 MOCK_METHOD4(Uniform3i, void(GLint location, GLint x, GLint y, GLint z));
615 MOCK_METHOD3(Uniform3iv, void(GLint location, GLsizei count, const GLint* v));
616 MOCK_METHOD4(Uniform3ui, void(GLint location, GLuint v0, GLuint v1, GLuint v2));
617 MOCK_METHOD3(Uniform3uiv, void(GLint location, GLsizei count, const GLuint* v));
618 MOCK_METHOD5(Uniform4f,
619 void(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w));
620 MOCK_METHOD3(Uniform4fv, void(GLint location, GLsizei count, const GLfloat* v));
621 MOCK_METHOD5(Uniform4i,
622 void(GLint location, GLint x, GLint y, GLint z, GLint w));
623 MOCK_METHOD3(Uniform4iv, void(GLint location, GLsizei count, const GLint* v));
624 MOCK_METHOD5(Uniform4ui,
625 void(GLint location, GLuint v0, GLuint v1, GLuint v2, GLuint v3));
626 MOCK_METHOD3(Uniform4uiv, void(GLint location, GLsizei count, const GLuint* v));
627 MOCK_METHOD3(UniformBlockBinding,
628 void(GLuint program,
629 GLuint uniformBlockIndex,
630 GLuint uniformBlockBinding));
631 MOCK_METHOD4(UniformMatrix2fv,
632 void(GLint location,
633 GLsizei count,
634 GLboolean transpose,
635 const GLfloat* value));
636 MOCK_METHOD4(UniformMatrix2x3fv,
637 void(GLint location,
638 GLsizei count,
639 GLboolean transpose,
640 const GLfloat* value));
641 MOCK_METHOD4(UniformMatrix2x4fv,
642 void(GLint location,
643 GLsizei count,
644 GLboolean transpose,
645 const GLfloat* value));
646 MOCK_METHOD4(UniformMatrix3fv,
647 void(GLint location,
648 GLsizei count,
649 GLboolean transpose,
650 const GLfloat* value));
651 MOCK_METHOD4(UniformMatrix3x2fv,
652 void(GLint location,
653 GLsizei count,
654 GLboolean transpose,
655 const GLfloat* value));
656 MOCK_METHOD4(UniformMatrix3x4fv,
657 void(GLint location,
658 GLsizei count,
659 GLboolean transpose,
660 const GLfloat* value));
661 MOCK_METHOD4(UniformMatrix4fv,
662 void(GLint location,
663 GLsizei count,
664 GLboolean transpose,
665 const GLfloat* value));
666 MOCK_METHOD4(UniformMatrix4x2fv,
667 void(GLint location,
668 GLsizei count,
669 GLboolean transpose,
670 const GLfloat* value));
671 MOCK_METHOD4(UniformMatrix4x3fv,
672 void(GLint location,
673 GLsizei count,
674 GLboolean transpose,
675 const GLfloat* value));
676 MOCK_METHOD1(UnmapBuffer, GLboolean(GLenum target));
677 MOCK_METHOD1(UseProgram, void(GLuint program));
678 MOCK_METHOD1(ValidateProgram, void(GLuint program));
679 MOCK_METHOD2(VertexAttrib1f, void(GLuint indx, GLfloat x));
680 MOCK_METHOD2(VertexAttrib1fv, void(GLuint indx, const GLfloat* values));
681 MOCK_METHOD3(VertexAttrib2f, void(GLuint indx, GLfloat x, GLfloat y));
682 MOCK_METHOD2(VertexAttrib2fv, void(GLuint indx, const GLfloat* values));
683 MOCK_METHOD4(VertexAttrib3f,
684 void(GLuint indx, GLfloat x, GLfloat y, GLfloat z));
685 MOCK_METHOD2(VertexAttrib3fv, void(GLuint indx, const GLfloat* values));
686 MOCK_METHOD5(VertexAttrib4f,
687 void(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w));
688 MOCK_METHOD2(VertexAttrib4fv, void(GLuint indx, const GLfloat* values));
689 MOCK_METHOD2(VertexAttribDivisorANGLE, void(GLuint index, GLuint divisor));
690 MOCK_METHOD5(VertexAttribI4i,
691 void(GLuint indx, GLint x, GLint y, GLint z, GLint w));
692 MOCK_METHOD2(VertexAttribI4iv, void(GLuint indx, const GLint* values));
693 MOCK_METHOD5(VertexAttribI4ui,
694 void(GLuint indx, GLuint x, GLuint y, GLuint z, GLuint w));
695 MOCK_METHOD2(VertexAttribI4uiv, void(GLuint indx, const GLuint* values));
696 MOCK_METHOD5(VertexAttribIPointer,
697 void(GLuint indx,
698 GLint size,
699 GLenum type,
700 GLsizei stride,
701 const void* ptr));
702 MOCK_METHOD6(VertexAttribPointer,
703 void(GLuint indx,
704 GLint size,
705 GLenum type,
706 GLboolean normalized,
707 GLsizei stride,
708 const void* ptr));
709 MOCK_METHOD4(Viewport, void(GLint x, GLint y, GLsizei width, GLsizei height));
710 MOCK_METHOD3(WaitSync, GLenum(GLsync sync, GLbitfield flags, GLuint64 timeout));