• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
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 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // It's formatted by clang-format using chromium coding style:
8 //    clang-format -i -style=chromium filename
9 // DO NOT EDIT!
10 
11 #include "mojo/gpu/mojo_gles2_impl_autogen.h"
12 
13 #include "base/logging.h"
14 #include "mojo/public/c/gles2/chromium_extension.h"
15 #include "mojo/public/c/gles2/gles2.h"
16 
17 namespace mojo {
18 
ActiveTexture(GLenum texture)19 void MojoGLES2Impl::ActiveTexture(GLenum texture) {
20   MojoGLES2MakeCurrent(context_);
21   glActiveTexture(texture);
22 }
AttachShader(GLuint program,GLuint shader)23 void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) {
24   MojoGLES2MakeCurrent(context_);
25   glAttachShader(program, shader);
26 }
BindAttribLocation(GLuint program,GLuint index,const char * name)27 void MojoGLES2Impl::BindAttribLocation(GLuint program,
28                                        GLuint index,
29                                        const char* name) {
30   MojoGLES2MakeCurrent(context_);
31   glBindAttribLocation(program, index, name);
32 }
BindBuffer(GLenum target,GLuint buffer)33 void MojoGLES2Impl::BindBuffer(GLenum target, GLuint buffer) {
34   MojoGLES2MakeCurrent(context_);
35   glBindBuffer(target, buffer);
36 }
BindBufferBase(GLenum target,GLuint index,GLuint buffer)37 void MojoGLES2Impl::BindBufferBase(GLenum target, GLuint index, GLuint buffer) {
38   NOTREACHED() << "Unimplemented BindBufferBase.";
39 }
BindBufferRange(GLenum target,GLuint index,GLuint buffer,GLintptr offset,GLsizeiptr size)40 void MojoGLES2Impl::BindBufferRange(GLenum target,
41                                     GLuint index,
42                                     GLuint buffer,
43                                     GLintptr offset,
44                                     GLsizeiptr size) {
45   NOTREACHED() << "Unimplemented BindBufferRange.";
46 }
BindFramebuffer(GLenum target,GLuint framebuffer)47 void MojoGLES2Impl::BindFramebuffer(GLenum target, GLuint framebuffer) {
48   MojoGLES2MakeCurrent(context_);
49   glBindFramebuffer(target, framebuffer);
50 }
BindRenderbuffer(GLenum target,GLuint renderbuffer)51 void MojoGLES2Impl::BindRenderbuffer(GLenum target, GLuint renderbuffer) {
52   MojoGLES2MakeCurrent(context_);
53   glBindRenderbuffer(target, renderbuffer);
54 }
BindSampler(GLuint unit,GLuint sampler)55 void MojoGLES2Impl::BindSampler(GLuint unit, GLuint sampler) {
56   NOTREACHED() << "Unimplemented BindSampler.";
57 }
BindTexture(GLenum target,GLuint texture)58 void MojoGLES2Impl::BindTexture(GLenum target, GLuint texture) {
59   MojoGLES2MakeCurrent(context_);
60   glBindTexture(target, texture);
61 }
BindTransformFeedback(GLenum target,GLuint transformfeedback)62 void MojoGLES2Impl::BindTransformFeedback(GLenum target,
63                                           GLuint transformfeedback) {
64   NOTREACHED() << "Unimplemented BindTransformFeedback.";
65 }
BlendColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)66 void MojoGLES2Impl::BlendColor(GLclampf red,
67                                GLclampf green,
68                                GLclampf blue,
69                                GLclampf alpha) {
70   MojoGLES2MakeCurrent(context_);
71   glBlendColor(red, green, blue, alpha);
72 }
BlendEquation(GLenum mode)73 void MojoGLES2Impl::BlendEquation(GLenum mode) {
74   MojoGLES2MakeCurrent(context_);
75   glBlendEquation(mode);
76 }
BlendEquationSeparate(GLenum modeRGB,GLenum modeAlpha)77 void MojoGLES2Impl::BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
78   MojoGLES2MakeCurrent(context_);
79   glBlendEquationSeparate(modeRGB, modeAlpha);
80 }
BlendFunc(GLenum sfactor,GLenum dfactor)81 void MojoGLES2Impl::BlendFunc(GLenum sfactor, GLenum dfactor) {
82   MojoGLES2MakeCurrent(context_);
83   glBlendFunc(sfactor, dfactor);
84 }
BlendFuncSeparate(GLenum srcRGB,GLenum dstRGB,GLenum srcAlpha,GLenum dstAlpha)85 void MojoGLES2Impl::BlendFuncSeparate(GLenum srcRGB,
86                                       GLenum dstRGB,
87                                       GLenum srcAlpha,
88                                       GLenum dstAlpha) {
89   MojoGLES2MakeCurrent(context_);
90   glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
91 }
BufferData(GLenum target,GLsizeiptr size,const void * data,GLenum usage)92 void MojoGLES2Impl::BufferData(GLenum target,
93                                GLsizeiptr size,
94                                const void* data,
95                                GLenum usage) {
96   MojoGLES2MakeCurrent(context_);
97   glBufferData(target, size, data, usage);
98 }
BufferSubData(GLenum target,GLintptr offset,GLsizeiptr size,const void * data)99 void MojoGLES2Impl::BufferSubData(GLenum target,
100                                   GLintptr offset,
101                                   GLsizeiptr size,
102                                   const void* data) {
103   MojoGLES2MakeCurrent(context_);
104   glBufferSubData(target, offset, size, data);
105 }
CheckFramebufferStatus(GLenum target)106 GLenum MojoGLES2Impl::CheckFramebufferStatus(GLenum target) {
107   MojoGLES2MakeCurrent(context_);
108   return glCheckFramebufferStatus(target);
109 }
Clear(GLbitfield mask)110 void MojoGLES2Impl::Clear(GLbitfield mask) {
111   MojoGLES2MakeCurrent(context_);
112   glClear(mask);
113 }
ClearBufferfi(GLenum buffer,GLint drawbuffers,GLfloat depth,GLint stencil)114 void MojoGLES2Impl::ClearBufferfi(GLenum buffer,
115                                   GLint drawbuffers,
116                                   GLfloat depth,
117                                   GLint stencil) {
118   NOTREACHED() << "Unimplemented ClearBufferfi.";
119 }
ClearBufferfv(GLenum buffer,GLint drawbuffers,const GLfloat * value)120 void MojoGLES2Impl::ClearBufferfv(GLenum buffer,
121                                   GLint drawbuffers,
122                                   const GLfloat* value) {
123   NOTREACHED() << "Unimplemented ClearBufferfv.";
124 }
ClearBufferiv(GLenum buffer,GLint drawbuffers,const GLint * value)125 void MojoGLES2Impl::ClearBufferiv(GLenum buffer,
126                                   GLint drawbuffers,
127                                   const GLint* value) {
128   NOTREACHED() << "Unimplemented ClearBufferiv.";
129 }
ClearBufferuiv(GLenum buffer,GLint drawbuffers,const GLuint * value)130 void MojoGLES2Impl::ClearBufferuiv(GLenum buffer,
131                                    GLint drawbuffers,
132                                    const GLuint* value) {
133   NOTREACHED() << "Unimplemented ClearBufferuiv.";
134 }
ClearColor(GLclampf red,GLclampf green,GLclampf blue,GLclampf alpha)135 void MojoGLES2Impl::ClearColor(GLclampf red,
136                                GLclampf green,
137                                GLclampf blue,
138                                GLclampf alpha) {
139   MojoGLES2MakeCurrent(context_);
140   glClearColor(red, green, blue, alpha);
141 }
ClearDepthf(GLclampf depth)142 void MojoGLES2Impl::ClearDepthf(GLclampf depth) {
143   MojoGLES2MakeCurrent(context_);
144   glClearDepthf(depth);
145 }
ClearStencil(GLint s)146 void MojoGLES2Impl::ClearStencil(GLint s) {
147   MojoGLES2MakeCurrent(context_);
148   glClearStencil(s);
149 }
ClientWaitSync(GLsync sync,GLbitfield flags,GLuint64 timeout)150 GLenum MojoGLES2Impl::ClientWaitSync(GLsync sync,
151                                      GLbitfield flags,
152                                      GLuint64 timeout) {
153   NOTREACHED() << "Unimplemented ClientWaitSync.";
154   return 0;
155 }
ColorMask(GLboolean red,GLboolean green,GLboolean blue,GLboolean alpha)156 void MojoGLES2Impl::ColorMask(GLboolean red,
157                               GLboolean green,
158                               GLboolean blue,
159                               GLboolean alpha) {
160   MojoGLES2MakeCurrent(context_);
161   glColorMask(red, green, blue, alpha);
162 }
CompileShader(GLuint shader)163 void MojoGLES2Impl::CompileShader(GLuint shader) {
164   MojoGLES2MakeCurrent(context_);
165   glCompileShader(shader);
166 }
CompressedTexImage2D(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLint border,GLsizei imageSize,const void * data)167 void MojoGLES2Impl::CompressedTexImage2D(GLenum target,
168                                          GLint level,
169                                          GLenum internalformat,
170                                          GLsizei width,
171                                          GLsizei height,
172                                          GLint border,
173                                          GLsizei imageSize,
174                                          const void* data) {
175   MojoGLES2MakeCurrent(context_);
176   glCompressedTexImage2D(target, level, internalformat, width, height, border,
177                          imageSize, data);
178 }
CompressedTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLsizei imageSize,const void * data)179 void MojoGLES2Impl::CompressedTexSubImage2D(GLenum target,
180                                             GLint level,
181                                             GLint xoffset,
182                                             GLint yoffset,
183                                             GLsizei width,
184                                             GLsizei height,
185                                             GLenum format,
186                                             GLsizei imageSize,
187                                             const void* data) {
188   MojoGLES2MakeCurrent(context_);
189   glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height,
190                             format, imageSize, data);
191 }
CompressedTexImage3D(GLenum target,GLint level,GLenum internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLsizei imageSize,const void * data)192 void MojoGLES2Impl::CompressedTexImage3D(GLenum target,
193                                          GLint level,
194                                          GLenum internalformat,
195                                          GLsizei width,
196                                          GLsizei height,
197                                          GLsizei depth,
198                                          GLint border,
199                                          GLsizei imageSize,
200                                          const void* data) {
201   NOTREACHED() << "Unimplemented CompressedTexImage3D.";
202 }
CompressedTexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLsizei imageSize,const void * data)203 void MojoGLES2Impl::CompressedTexSubImage3D(GLenum target,
204                                             GLint level,
205                                             GLint xoffset,
206                                             GLint yoffset,
207                                             GLint zoffset,
208                                             GLsizei width,
209                                             GLsizei height,
210                                             GLsizei depth,
211                                             GLenum format,
212                                             GLsizei imageSize,
213                                             const void* data) {
214   NOTREACHED() << "Unimplemented CompressedTexSubImage3D.";
215 }
CopyBufferSubData(GLenum readtarget,GLenum writetarget,GLintptr readoffset,GLintptr writeoffset,GLsizeiptr size)216 void MojoGLES2Impl::CopyBufferSubData(GLenum readtarget,
217                                       GLenum writetarget,
218                                       GLintptr readoffset,
219                                       GLintptr writeoffset,
220                                       GLsizeiptr size) {
221   NOTREACHED() << "Unimplemented CopyBufferSubData.";
222 }
CopyTexImage2D(GLenum target,GLint level,GLenum internalformat,GLint x,GLint y,GLsizei width,GLsizei height,GLint border)223 void MojoGLES2Impl::CopyTexImage2D(GLenum target,
224                                    GLint level,
225                                    GLenum internalformat,
226                                    GLint x,
227                                    GLint y,
228                                    GLsizei width,
229                                    GLsizei height,
230                                    GLint border) {
231   MojoGLES2MakeCurrent(context_);
232   glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
233 }
CopyTexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height)234 void MojoGLES2Impl::CopyTexSubImage2D(GLenum target,
235                                       GLint level,
236                                       GLint xoffset,
237                                       GLint yoffset,
238                                       GLint x,
239                                       GLint y,
240                                       GLsizei width,
241                                       GLsizei height) {
242   MojoGLES2MakeCurrent(context_);
243   glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
244 }
CopyTexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLint x,GLint y,GLsizei width,GLsizei height)245 void MojoGLES2Impl::CopyTexSubImage3D(GLenum target,
246                                       GLint level,
247                                       GLint xoffset,
248                                       GLint yoffset,
249                                       GLint zoffset,
250                                       GLint x,
251                                       GLint y,
252                                       GLsizei width,
253                                       GLsizei height) {
254   NOTREACHED() << "Unimplemented CopyTexSubImage3D.";
255 }
CreateProgram()256 GLuint MojoGLES2Impl::CreateProgram() {
257   MojoGLES2MakeCurrent(context_);
258   return glCreateProgram();
259 }
CreateShader(GLenum type)260 GLuint MojoGLES2Impl::CreateShader(GLenum type) {
261   MojoGLES2MakeCurrent(context_);
262   return glCreateShader(type);
263 }
CullFace(GLenum mode)264 void MojoGLES2Impl::CullFace(GLenum mode) {
265   MojoGLES2MakeCurrent(context_);
266   glCullFace(mode);
267 }
DeleteBuffers(GLsizei n,const GLuint * buffers)268 void MojoGLES2Impl::DeleteBuffers(GLsizei n, const GLuint* buffers) {
269   MojoGLES2MakeCurrent(context_);
270   glDeleteBuffers(n, buffers);
271 }
DeleteFramebuffers(GLsizei n,const GLuint * framebuffers)272 void MojoGLES2Impl::DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
273   MojoGLES2MakeCurrent(context_);
274   glDeleteFramebuffers(n, framebuffers);
275 }
DeleteProgram(GLuint program)276 void MojoGLES2Impl::DeleteProgram(GLuint program) {
277   MojoGLES2MakeCurrent(context_);
278   glDeleteProgram(program);
279 }
DeleteRenderbuffers(GLsizei n,const GLuint * renderbuffers)280 void MojoGLES2Impl::DeleteRenderbuffers(GLsizei n,
281                                         const GLuint* renderbuffers) {
282   MojoGLES2MakeCurrent(context_);
283   glDeleteRenderbuffers(n, renderbuffers);
284 }
DeleteSamplers(GLsizei n,const GLuint * samplers)285 void MojoGLES2Impl::DeleteSamplers(GLsizei n, const GLuint* samplers) {
286   NOTREACHED() << "Unimplemented DeleteSamplers.";
287 }
DeleteSync(GLsync sync)288 void MojoGLES2Impl::DeleteSync(GLsync sync) {
289   NOTREACHED() << "Unimplemented DeleteSync.";
290 }
DeleteShader(GLuint shader)291 void MojoGLES2Impl::DeleteShader(GLuint shader) {
292   MojoGLES2MakeCurrent(context_);
293   glDeleteShader(shader);
294 }
DeleteTextures(GLsizei n,const GLuint * textures)295 void MojoGLES2Impl::DeleteTextures(GLsizei n, const GLuint* textures) {
296   MojoGLES2MakeCurrent(context_);
297   glDeleteTextures(n, textures);
298 }
DeleteTransformFeedbacks(GLsizei n,const GLuint * ids)299 void MojoGLES2Impl::DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
300   NOTREACHED() << "Unimplemented DeleteTransformFeedbacks.";
301 }
DepthFunc(GLenum func)302 void MojoGLES2Impl::DepthFunc(GLenum func) {
303   MojoGLES2MakeCurrent(context_);
304   glDepthFunc(func);
305 }
DepthMask(GLboolean flag)306 void MojoGLES2Impl::DepthMask(GLboolean flag) {
307   MojoGLES2MakeCurrent(context_);
308   glDepthMask(flag);
309 }
DepthRangef(GLclampf zNear,GLclampf zFar)310 void MojoGLES2Impl::DepthRangef(GLclampf zNear, GLclampf zFar) {
311   MojoGLES2MakeCurrent(context_);
312   glDepthRangef(zNear, zFar);
313 }
DetachShader(GLuint program,GLuint shader)314 void MojoGLES2Impl::DetachShader(GLuint program, GLuint shader) {
315   MojoGLES2MakeCurrent(context_);
316   glDetachShader(program, shader);
317 }
Disable(GLenum cap)318 void MojoGLES2Impl::Disable(GLenum cap) {
319   MojoGLES2MakeCurrent(context_);
320   glDisable(cap);
321 }
DisableVertexAttribArray(GLuint index)322 void MojoGLES2Impl::DisableVertexAttribArray(GLuint index) {
323   MojoGLES2MakeCurrent(context_);
324   glDisableVertexAttribArray(index);
325 }
DrawArrays(GLenum mode,GLint first,GLsizei count)326 void MojoGLES2Impl::DrawArrays(GLenum mode, GLint first, GLsizei count) {
327   MojoGLES2MakeCurrent(context_);
328   glDrawArrays(mode, first, count);
329 }
DrawElements(GLenum mode,GLsizei count,GLenum type,const void * indices)330 void MojoGLES2Impl::DrawElements(GLenum mode,
331                                  GLsizei count,
332                                  GLenum type,
333                                  const void* indices) {
334   MojoGLES2MakeCurrent(context_);
335   glDrawElements(mode, count, type, indices);
336 }
DrawRangeElements(GLenum mode,GLuint start,GLuint end,GLsizei count,GLenum type,const void * indices)337 void MojoGLES2Impl::DrawRangeElements(GLenum mode,
338                                       GLuint start,
339                                       GLuint end,
340                                       GLsizei count,
341                                       GLenum type,
342                                       const void* indices) {
343   NOTREACHED() << "Unimplemented DrawRangeElements.";
344 }
Enable(GLenum cap)345 void MojoGLES2Impl::Enable(GLenum cap) {
346   MojoGLES2MakeCurrent(context_);
347   glEnable(cap);
348 }
EnableVertexAttribArray(GLuint index)349 void MojoGLES2Impl::EnableVertexAttribArray(GLuint index) {
350   MojoGLES2MakeCurrent(context_);
351   glEnableVertexAttribArray(index);
352 }
FenceSync(GLenum condition,GLbitfield flags)353 GLsync MojoGLES2Impl::FenceSync(GLenum condition, GLbitfield flags) {
354   NOTREACHED() << "Unimplemented FenceSync.";
355   return 0;
356 }
Finish()357 void MojoGLES2Impl::Finish() {
358   MojoGLES2MakeCurrent(context_);
359   glFinish();
360 }
Flush()361 void MojoGLES2Impl::Flush() {
362   MojoGLES2MakeCurrent(context_);
363   glFlush();
364 }
FramebufferRenderbuffer(GLenum target,GLenum attachment,GLenum renderbuffertarget,GLuint renderbuffer)365 void MojoGLES2Impl::FramebufferRenderbuffer(GLenum target,
366                                             GLenum attachment,
367                                             GLenum renderbuffertarget,
368                                             GLuint renderbuffer) {
369   MojoGLES2MakeCurrent(context_);
370   glFramebufferRenderbuffer(target, attachment, renderbuffertarget,
371                             renderbuffer);
372 }
FramebufferTexture2D(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level)373 void MojoGLES2Impl::FramebufferTexture2D(GLenum target,
374                                          GLenum attachment,
375                                          GLenum textarget,
376                                          GLuint texture,
377                                          GLint level) {
378   MojoGLES2MakeCurrent(context_);
379   glFramebufferTexture2D(target, attachment, textarget, texture, level);
380 }
FramebufferTextureLayer(GLenum target,GLenum attachment,GLuint texture,GLint level,GLint layer)381 void MojoGLES2Impl::FramebufferTextureLayer(GLenum target,
382                                             GLenum attachment,
383                                             GLuint texture,
384                                             GLint level,
385                                             GLint layer) {
386   NOTREACHED() << "Unimplemented FramebufferTextureLayer.";
387 }
FrontFace(GLenum mode)388 void MojoGLES2Impl::FrontFace(GLenum mode) {
389   MojoGLES2MakeCurrent(context_);
390   glFrontFace(mode);
391 }
GenBuffers(GLsizei n,GLuint * buffers)392 void MojoGLES2Impl::GenBuffers(GLsizei n, GLuint* buffers) {
393   MojoGLES2MakeCurrent(context_);
394   glGenBuffers(n, buffers);
395 }
GenerateMipmap(GLenum target)396 void MojoGLES2Impl::GenerateMipmap(GLenum target) {
397   MojoGLES2MakeCurrent(context_);
398   glGenerateMipmap(target);
399 }
GenFramebuffers(GLsizei n,GLuint * framebuffers)400 void MojoGLES2Impl::GenFramebuffers(GLsizei n, GLuint* framebuffers) {
401   MojoGLES2MakeCurrent(context_);
402   glGenFramebuffers(n, framebuffers);
403 }
GenRenderbuffers(GLsizei n,GLuint * renderbuffers)404 void MojoGLES2Impl::GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
405   MojoGLES2MakeCurrent(context_);
406   glGenRenderbuffers(n, renderbuffers);
407 }
GenSamplers(GLsizei n,GLuint * samplers)408 void MojoGLES2Impl::GenSamplers(GLsizei n, GLuint* samplers) {
409   NOTREACHED() << "Unimplemented GenSamplers.";
410 }
GenTextures(GLsizei n,GLuint * textures)411 void MojoGLES2Impl::GenTextures(GLsizei n, GLuint* textures) {
412   MojoGLES2MakeCurrent(context_);
413   glGenTextures(n, textures);
414 }
GenTransformFeedbacks(GLsizei n,GLuint * ids)415 void MojoGLES2Impl::GenTransformFeedbacks(GLsizei n, GLuint* ids) {
416   NOTREACHED() << "Unimplemented GenTransformFeedbacks.";
417 }
GetActiveAttrib(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,GLint * size,GLenum * type,char * name)418 void MojoGLES2Impl::GetActiveAttrib(GLuint program,
419                                     GLuint index,
420                                     GLsizei bufsize,
421                                     GLsizei* length,
422                                     GLint* size,
423                                     GLenum* type,
424                                     char* name) {
425   MojoGLES2MakeCurrent(context_);
426   glGetActiveAttrib(program, index, bufsize, length, size, type, name);
427 }
GetActiveUniform(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,GLint * size,GLenum * type,char * name)428 void MojoGLES2Impl::GetActiveUniform(GLuint program,
429                                      GLuint index,
430                                      GLsizei bufsize,
431                                      GLsizei* length,
432                                      GLint* size,
433                                      GLenum* type,
434                                      char* name) {
435   MojoGLES2MakeCurrent(context_);
436   glGetActiveUniform(program, index, bufsize, length, size, type, name);
437 }
GetActiveUniformBlockiv(GLuint program,GLuint index,GLenum pname,GLint * params)438 void MojoGLES2Impl::GetActiveUniformBlockiv(GLuint program,
439                                             GLuint index,
440                                             GLenum pname,
441                                             GLint* params) {
442   NOTREACHED() << "Unimplemented GetActiveUniformBlockiv.";
443 }
GetActiveUniformBlockName(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,char * name)444 void MojoGLES2Impl::GetActiveUniformBlockName(GLuint program,
445                                               GLuint index,
446                                               GLsizei bufsize,
447                                               GLsizei* length,
448                                               char* name) {
449   NOTREACHED() << "Unimplemented GetActiveUniformBlockName.";
450 }
GetActiveUniformsiv(GLuint program,GLsizei count,const GLuint * indices,GLenum pname,GLint * params)451 void MojoGLES2Impl::GetActiveUniformsiv(GLuint program,
452                                         GLsizei count,
453                                         const GLuint* indices,
454                                         GLenum pname,
455                                         GLint* params) {
456   NOTREACHED() << "Unimplemented GetActiveUniformsiv.";
457 }
GetAttachedShaders(GLuint program,GLsizei maxcount,GLsizei * count,GLuint * shaders)458 void MojoGLES2Impl::GetAttachedShaders(GLuint program,
459                                        GLsizei maxcount,
460                                        GLsizei* count,
461                                        GLuint* shaders) {
462   MojoGLES2MakeCurrent(context_);
463   glGetAttachedShaders(program, maxcount, count, shaders);
464 }
GetAttribLocation(GLuint program,const char * name)465 GLint MojoGLES2Impl::GetAttribLocation(GLuint program, const char* name) {
466   MojoGLES2MakeCurrent(context_);
467   return glGetAttribLocation(program, name);
468 }
GetBooleanv(GLenum pname,GLboolean * params)469 void MojoGLES2Impl::GetBooleanv(GLenum pname, GLboolean* params) {
470   MojoGLES2MakeCurrent(context_);
471   glGetBooleanv(pname, params);
472 }
GetBufferParameteri64v(GLenum target,GLenum pname,GLint64 * params)473 void MojoGLES2Impl::GetBufferParameteri64v(GLenum target,
474                                            GLenum pname,
475                                            GLint64* params) {
476   NOTREACHED() << "Unimplemented GetBufferParameteri64v.";
477 }
GetBufferParameteriv(GLenum target,GLenum pname,GLint * params)478 void MojoGLES2Impl::GetBufferParameteriv(GLenum target,
479                                          GLenum pname,
480                                          GLint* params) {
481   MojoGLES2MakeCurrent(context_);
482   glGetBufferParameteriv(target, pname, params);
483 }
GetError()484 GLenum MojoGLES2Impl::GetError() {
485   MojoGLES2MakeCurrent(context_);
486   return glGetError();
487 }
GetFloatv(GLenum pname,GLfloat * params)488 void MojoGLES2Impl::GetFloatv(GLenum pname, GLfloat* params) {
489   MojoGLES2MakeCurrent(context_);
490   glGetFloatv(pname, params);
491 }
GetFragDataLocation(GLuint program,const char * name)492 GLint MojoGLES2Impl::GetFragDataLocation(GLuint program, const char* name) {
493   NOTREACHED() << "Unimplemented GetFragDataLocation.";
494   return 0;
495 }
GetFramebufferAttachmentParameteriv(GLenum target,GLenum attachment,GLenum pname,GLint * params)496 void MojoGLES2Impl::GetFramebufferAttachmentParameteriv(GLenum target,
497                                                         GLenum attachment,
498                                                         GLenum pname,
499                                                         GLint* params) {
500   MojoGLES2MakeCurrent(context_);
501   glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
502 }
GetInteger64v(GLenum pname,GLint64 * params)503 void MojoGLES2Impl::GetInteger64v(GLenum pname, GLint64* params) {
504   NOTREACHED() << "Unimplemented GetInteger64v.";
505 }
GetIntegeri_v(GLenum pname,GLuint index,GLint * data)506 void MojoGLES2Impl::GetIntegeri_v(GLenum pname, GLuint index, GLint* data) {
507   NOTREACHED() << "Unimplemented GetIntegeri_v.";
508 }
GetInteger64i_v(GLenum pname,GLuint index,GLint64 * data)509 void MojoGLES2Impl::GetInteger64i_v(GLenum pname, GLuint index, GLint64* data) {
510   NOTREACHED() << "Unimplemented GetInteger64i_v.";
511 }
GetIntegerv(GLenum pname,GLint * params)512 void MojoGLES2Impl::GetIntegerv(GLenum pname, GLint* params) {
513   MojoGLES2MakeCurrent(context_);
514   glGetIntegerv(pname, params);
515 }
GetInternalformativ(GLenum target,GLenum format,GLenum pname,GLsizei bufSize,GLint * params)516 void MojoGLES2Impl::GetInternalformativ(GLenum target,
517                                         GLenum format,
518                                         GLenum pname,
519                                         GLsizei bufSize,
520                                         GLint* params) {
521   NOTREACHED() << "Unimplemented GetInternalformativ.";
522 }
GetProgramiv(GLuint program,GLenum pname,GLint * params)523 void MojoGLES2Impl::GetProgramiv(GLuint program, GLenum pname, GLint* params) {
524   MojoGLES2MakeCurrent(context_);
525   glGetProgramiv(program, pname, params);
526 }
GetProgramInfoLog(GLuint program,GLsizei bufsize,GLsizei * length,char * infolog)527 void MojoGLES2Impl::GetProgramInfoLog(GLuint program,
528                                       GLsizei bufsize,
529                                       GLsizei* length,
530                                       char* infolog) {
531   MojoGLES2MakeCurrent(context_);
532   glGetProgramInfoLog(program, bufsize, length, infolog);
533 }
GetRenderbufferParameteriv(GLenum target,GLenum pname,GLint * params)534 void MojoGLES2Impl::GetRenderbufferParameteriv(GLenum target,
535                                                GLenum pname,
536                                                GLint* params) {
537   MojoGLES2MakeCurrent(context_);
538   glGetRenderbufferParameteriv(target, pname, params);
539 }
GetSamplerParameterfv(GLuint sampler,GLenum pname,GLfloat * params)540 void MojoGLES2Impl::GetSamplerParameterfv(GLuint sampler,
541                                           GLenum pname,
542                                           GLfloat* params) {
543   NOTREACHED() << "Unimplemented GetSamplerParameterfv.";
544 }
GetSamplerParameteriv(GLuint sampler,GLenum pname,GLint * params)545 void MojoGLES2Impl::GetSamplerParameteriv(GLuint sampler,
546                                           GLenum pname,
547                                           GLint* params) {
548   NOTREACHED() << "Unimplemented GetSamplerParameteriv.";
549 }
GetShaderiv(GLuint shader,GLenum pname,GLint * params)550 void MojoGLES2Impl::GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
551   MojoGLES2MakeCurrent(context_);
552   glGetShaderiv(shader, pname, params);
553 }
GetShaderInfoLog(GLuint shader,GLsizei bufsize,GLsizei * length,char * infolog)554 void MojoGLES2Impl::GetShaderInfoLog(GLuint shader,
555                                      GLsizei bufsize,
556                                      GLsizei* length,
557                                      char* infolog) {
558   MojoGLES2MakeCurrent(context_);
559   glGetShaderInfoLog(shader, bufsize, length, infolog);
560 }
GetShaderPrecisionFormat(GLenum shadertype,GLenum precisiontype,GLint * range,GLint * precision)561 void MojoGLES2Impl::GetShaderPrecisionFormat(GLenum shadertype,
562                                              GLenum precisiontype,
563                                              GLint* range,
564                                              GLint* precision) {
565   MojoGLES2MakeCurrent(context_);
566   glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
567 }
GetShaderSource(GLuint shader,GLsizei bufsize,GLsizei * length,char * source)568 void MojoGLES2Impl::GetShaderSource(GLuint shader,
569                                     GLsizei bufsize,
570                                     GLsizei* length,
571                                     char* source) {
572   MojoGLES2MakeCurrent(context_);
573   glGetShaderSource(shader, bufsize, length, source);
574 }
GetString(GLenum name)575 const GLubyte* MojoGLES2Impl::GetString(GLenum name) {
576   MojoGLES2MakeCurrent(context_);
577   return glGetString(name);
578 }
GetStringi(GLenum name,GLuint index)579 const GLubyte* MojoGLES2Impl::GetStringi(GLenum name, GLuint index) {
580   NOTREACHED() << "Unimplemented GetStringi.";
581   return 0;
582 }
GetSynciv(GLsync sync,GLenum pname,GLsizei bufsize,GLsizei * length,GLint * values)583 void MojoGLES2Impl::GetSynciv(GLsync sync,
584                               GLenum pname,
585                               GLsizei bufsize,
586                               GLsizei* length,
587                               GLint* values) {
588   NOTREACHED() << "Unimplemented GetSynciv.";
589 }
GetTexParameterfv(GLenum target,GLenum pname,GLfloat * params)590 void MojoGLES2Impl::GetTexParameterfv(GLenum target,
591                                       GLenum pname,
592                                       GLfloat* params) {
593   MojoGLES2MakeCurrent(context_);
594   glGetTexParameterfv(target, pname, params);
595 }
GetTexParameteriv(GLenum target,GLenum pname,GLint * params)596 void MojoGLES2Impl::GetTexParameteriv(GLenum target,
597                                       GLenum pname,
598                                       GLint* params) {
599   MojoGLES2MakeCurrent(context_);
600   glGetTexParameteriv(target, pname, params);
601 }
GetTransformFeedbackVarying(GLuint program,GLuint index,GLsizei bufsize,GLsizei * length,GLsizei * size,GLenum * type,char * name)602 void MojoGLES2Impl::GetTransformFeedbackVarying(GLuint program,
603                                                 GLuint index,
604                                                 GLsizei bufsize,
605                                                 GLsizei* length,
606                                                 GLsizei* size,
607                                                 GLenum* type,
608                                                 char* name) {
609   NOTREACHED() << "Unimplemented GetTransformFeedbackVarying.";
610 }
GetUniformBlockIndex(GLuint program,const char * name)611 GLuint MojoGLES2Impl::GetUniformBlockIndex(GLuint program, const char* name) {
612   NOTREACHED() << "Unimplemented GetUniformBlockIndex.";
613   return 0;
614 }
GetUniformfv(GLuint program,GLint location,GLfloat * params)615 void MojoGLES2Impl::GetUniformfv(GLuint program,
616                                  GLint location,
617                                  GLfloat* params) {
618   MojoGLES2MakeCurrent(context_);
619   glGetUniformfv(program, location, params);
620 }
GetUniformiv(GLuint program,GLint location,GLint * params)621 void MojoGLES2Impl::GetUniformiv(GLuint program,
622                                  GLint location,
623                                  GLint* params) {
624   MojoGLES2MakeCurrent(context_);
625   glGetUniformiv(program, location, params);
626 }
GetUniformuiv(GLuint program,GLint location,GLuint * params)627 void MojoGLES2Impl::GetUniformuiv(GLuint program,
628                                   GLint location,
629                                   GLuint* params) {
630   NOTREACHED() << "Unimplemented GetUniformuiv.";
631 }
GetUniformIndices(GLuint program,GLsizei count,const char * const * names,GLuint * indices)632 void MojoGLES2Impl::GetUniformIndices(GLuint program,
633                                       GLsizei count,
634                                       const char* const* names,
635                                       GLuint* indices) {
636   NOTREACHED() << "Unimplemented GetUniformIndices.";
637 }
GetUniformLocation(GLuint program,const char * name)638 GLint MojoGLES2Impl::GetUniformLocation(GLuint program, const char* name) {
639   MojoGLES2MakeCurrent(context_);
640   return glGetUniformLocation(program, name);
641 }
GetVertexAttribfv(GLuint index,GLenum pname,GLfloat * params)642 void MojoGLES2Impl::GetVertexAttribfv(GLuint index,
643                                       GLenum pname,
644                                       GLfloat* params) {
645   MojoGLES2MakeCurrent(context_);
646   glGetVertexAttribfv(index, pname, params);
647 }
GetVertexAttribiv(GLuint index,GLenum pname,GLint * params)648 void MojoGLES2Impl::GetVertexAttribiv(GLuint index,
649                                       GLenum pname,
650                                       GLint* params) {
651   MojoGLES2MakeCurrent(context_);
652   glGetVertexAttribiv(index, pname, params);
653 }
GetVertexAttribIiv(GLuint index,GLenum pname,GLint * params)654 void MojoGLES2Impl::GetVertexAttribIiv(GLuint index,
655                                        GLenum pname,
656                                        GLint* params) {
657   NOTREACHED() << "Unimplemented GetVertexAttribIiv.";
658 }
GetVertexAttribIuiv(GLuint index,GLenum pname,GLuint * params)659 void MojoGLES2Impl::GetVertexAttribIuiv(GLuint index,
660                                         GLenum pname,
661                                         GLuint* params) {
662   NOTREACHED() << "Unimplemented GetVertexAttribIuiv.";
663 }
GetVertexAttribPointerv(GLuint index,GLenum pname,void ** pointer)664 void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index,
665                                             GLenum pname,
666                                             void** pointer) {
667   MojoGLES2MakeCurrent(context_);
668   glGetVertexAttribPointerv(index, pname, pointer);
669 }
Hint(GLenum target,GLenum mode)670 void MojoGLES2Impl::Hint(GLenum target, GLenum mode) {
671   MojoGLES2MakeCurrent(context_);
672   glHint(target, mode);
673 }
InvalidateFramebuffer(GLenum target,GLsizei count,const GLenum * attachments)674 void MojoGLES2Impl::InvalidateFramebuffer(GLenum target,
675                                           GLsizei count,
676                                           const GLenum* attachments) {
677   NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
678 }
InvalidateSubFramebuffer(GLenum target,GLsizei count,const GLenum * attachments,GLint x,GLint y,GLsizei width,GLsizei height)679 void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target,
680                                              GLsizei count,
681                                              const GLenum* attachments,
682                                              GLint x,
683                                              GLint y,
684                                              GLsizei width,
685                                              GLsizei height) {
686   NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
687 }
IsBuffer(GLuint buffer)688 GLboolean MojoGLES2Impl::IsBuffer(GLuint buffer) {
689   MojoGLES2MakeCurrent(context_);
690   return glIsBuffer(buffer);
691 }
IsEnabled(GLenum cap)692 GLboolean MojoGLES2Impl::IsEnabled(GLenum cap) {
693   MojoGLES2MakeCurrent(context_);
694   return glIsEnabled(cap);
695 }
IsFramebuffer(GLuint framebuffer)696 GLboolean MojoGLES2Impl::IsFramebuffer(GLuint framebuffer) {
697   MojoGLES2MakeCurrent(context_);
698   return glIsFramebuffer(framebuffer);
699 }
IsProgram(GLuint program)700 GLboolean MojoGLES2Impl::IsProgram(GLuint program) {
701   MojoGLES2MakeCurrent(context_);
702   return glIsProgram(program);
703 }
IsRenderbuffer(GLuint renderbuffer)704 GLboolean MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer) {
705   MojoGLES2MakeCurrent(context_);
706   return glIsRenderbuffer(renderbuffer);
707 }
IsSampler(GLuint sampler)708 GLboolean MojoGLES2Impl::IsSampler(GLuint sampler) {
709   NOTREACHED() << "Unimplemented IsSampler.";
710   return 0;
711 }
IsShader(GLuint shader)712 GLboolean MojoGLES2Impl::IsShader(GLuint shader) {
713   MojoGLES2MakeCurrent(context_);
714   return glIsShader(shader);
715 }
IsSync(GLsync sync)716 GLboolean MojoGLES2Impl::IsSync(GLsync sync) {
717   NOTREACHED() << "Unimplemented IsSync.";
718   return 0;
719 }
IsTexture(GLuint texture)720 GLboolean MojoGLES2Impl::IsTexture(GLuint texture) {
721   MojoGLES2MakeCurrent(context_);
722   return glIsTexture(texture);
723 }
IsTransformFeedback(GLuint transformfeedback)724 GLboolean MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback) {
725   NOTREACHED() << "Unimplemented IsTransformFeedback.";
726   return 0;
727 }
LineWidth(GLfloat width)728 void MojoGLES2Impl::LineWidth(GLfloat width) {
729   MojoGLES2MakeCurrent(context_);
730   glLineWidth(width);
731 }
LinkProgram(GLuint program)732 void MojoGLES2Impl::LinkProgram(GLuint program) {
733   MojoGLES2MakeCurrent(context_);
734   glLinkProgram(program);
735 }
PauseTransformFeedback()736 void MojoGLES2Impl::PauseTransformFeedback() {
737   NOTREACHED() << "Unimplemented PauseTransformFeedback.";
738 }
PixelStorei(GLenum pname,GLint param)739 void MojoGLES2Impl::PixelStorei(GLenum pname, GLint param) {
740   MojoGLES2MakeCurrent(context_);
741   glPixelStorei(pname, param);
742 }
PolygonOffset(GLfloat factor,GLfloat units)743 void MojoGLES2Impl::PolygonOffset(GLfloat factor, GLfloat units) {
744   MojoGLES2MakeCurrent(context_);
745   glPolygonOffset(factor, units);
746 }
ReadBuffer(GLenum src)747 void MojoGLES2Impl::ReadBuffer(GLenum src) {
748   NOTREACHED() << "Unimplemented ReadBuffer.";
749 }
ReadPixels(GLint x,GLint y,GLsizei width,GLsizei height,GLenum format,GLenum type,void * pixels)750 void MojoGLES2Impl::ReadPixels(GLint x,
751                                GLint y,
752                                GLsizei width,
753                                GLsizei height,
754                                GLenum format,
755                                GLenum type,
756                                void* pixels) {
757   MojoGLES2MakeCurrent(context_);
758   glReadPixels(x, y, width, height, format, type, pixels);
759 }
ReleaseShaderCompiler()760 void MojoGLES2Impl::ReleaseShaderCompiler() {
761   MojoGLES2MakeCurrent(context_);
762   glReleaseShaderCompiler();
763 }
RenderbufferStorage(GLenum target,GLenum internalformat,GLsizei width,GLsizei height)764 void MojoGLES2Impl::RenderbufferStorage(GLenum target,
765                                         GLenum internalformat,
766                                         GLsizei width,
767                                         GLsizei height) {
768   MojoGLES2MakeCurrent(context_);
769   glRenderbufferStorage(target, internalformat, width, height);
770 }
ResumeTransformFeedback()771 void MojoGLES2Impl::ResumeTransformFeedback() {
772   NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
773 }
SampleCoverage(GLclampf value,GLboolean invert)774 void MojoGLES2Impl::SampleCoverage(GLclampf value, GLboolean invert) {
775   MojoGLES2MakeCurrent(context_);
776   glSampleCoverage(value, invert);
777 }
SamplerParameterf(GLuint sampler,GLenum pname,GLfloat param)778 void MojoGLES2Impl::SamplerParameterf(GLuint sampler,
779                                       GLenum pname,
780                                       GLfloat param) {
781   NOTREACHED() << "Unimplemented SamplerParameterf.";
782 }
SamplerParameterfv(GLuint sampler,GLenum pname,const GLfloat * params)783 void MojoGLES2Impl::SamplerParameterfv(GLuint sampler,
784                                        GLenum pname,
785                                        const GLfloat* params) {
786   NOTREACHED() << "Unimplemented SamplerParameterfv.";
787 }
SamplerParameteri(GLuint sampler,GLenum pname,GLint param)788 void MojoGLES2Impl::SamplerParameteri(GLuint sampler,
789                                       GLenum pname,
790                                       GLint param) {
791   NOTREACHED() << "Unimplemented SamplerParameteri.";
792 }
SamplerParameteriv(GLuint sampler,GLenum pname,const GLint * params)793 void MojoGLES2Impl::SamplerParameteriv(GLuint sampler,
794                                        GLenum pname,
795                                        const GLint* params) {
796   NOTREACHED() << "Unimplemented SamplerParameteriv.";
797 }
Scissor(GLint x,GLint y,GLsizei width,GLsizei height)798 void MojoGLES2Impl::Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
799   MojoGLES2MakeCurrent(context_);
800   glScissor(x, y, width, height);
801 }
ShaderBinary(GLsizei n,const GLuint * shaders,GLenum binaryformat,const void * binary,GLsizei length)802 void MojoGLES2Impl::ShaderBinary(GLsizei n,
803                                  const GLuint* shaders,
804                                  GLenum binaryformat,
805                                  const void* binary,
806                                  GLsizei length) {
807   MojoGLES2MakeCurrent(context_);
808   glShaderBinary(n, shaders, binaryformat, binary, length);
809 }
ShaderSource(GLuint shader,GLsizei count,const GLchar * const * str,const GLint * length)810 void MojoGLES2Impl::ShaderSource(GLuint shader,
811                                  GLsizei count,
812                                  const GLchar* const* str,
813                                  const GLint* length) {
814   MojoGLES2MakeCurrent(context_);
815   glShaderSource(shader, count, str, length);
816 }
ShallowFinishCHROMIUM()817 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
818   MojoGLES2MakeCurrent(context_);
819   glShallowFinishCHROMIUM();
820 }
ShallowFlushCHROMIUM()821 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
822   MojoGLES2MakeCurrent(context_);
823   glShallowFlushCHROMIUM();
824 }
OrderingBarrierCHROMIUM()825 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
826   MojoGLES2MakeCurrent(context_);
827   glOrderingBarrierCHROMIUM();
828 }
StencilFunc(GLenum func,GLint ref,GLuint mask)829 void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) {
830   MojoGLES2MakeCurrent(context_);
831   glStencilFunc(func, ref, mask);
832 }
StencilFuncSeparate(GLenum face,GLenum func,GLint ref,GLuint mask)833 void MojoGLES2Impl::StencilFuncSeparate(GLenum face,
834                                         GLenum func,
835                                         GLint ref,
836                                         GLuint mask) {
837   MojoGLES2MakeCurrent(context_);
838   glStencilFuncSeparate(face, func, ref, mask);
839 }
StencilMask(GLuint mask)840 void MojoGLES2Impl::StencilMask(GLuint mask) {
841   MojoGLES2MakeCurrent(context_);
842   glStencilMask(mask);
843 }
StencilMaskSeparate(GLenum face,GLuint mask)844 void MojoGLES2Impl::StencilMaskSeparate(GLenum face, GLuint mask) {
845   MojoGLES2MakeCurrent(context_);
846   glStencilMaskSeparate(face, mask);
847 }
StencilOp(GLenum fail,GLenum zfail,GLenum zpass)848 void MojoGLES2Impl::StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
849   MojoGLES2MakeCurrent(context_);
850   glStencilOp(fail, zfail, zpass);
851 }
StencilOpSeparate(GLenum face,GLenum fail,GLenum zfail,GLenum zpass)852 void MojoGLES2Impl::StencilOpSeparate(GLenum face,
853                                       GLenum fail,
854                                       GLenum zfail,
855                                       GLenum zpass) {
856   MojoGLES2MakeCurrent(context_);
857   glStencilOpSeparate(face, fail, zfail, zpass);
858 }
TexImage2D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLint border,GLenum format,GLenum type,const void * pixels)859 void MojoGLES2Impl::TexImage2D(GLenum target,
860                                GLint level,
861                                GLint internalformat,
862                                GLsizei width,
863                                GLsizei height,
864                                GLint border,
865                                GLenum format,
866                                GLenum type,
867                                const void* pixels) {
868   MojoGLES2MakeCurrent(context_);
869   glTexImage2D(target, level, internalformat, width, height, border, format,
870                type, pixels);
871 }
TexImage3D(GLenum target,GLint level,GLint internalformat,GLsizei width,GLsizei height,GLsizei depth,GLint border,GLenum format,GLenum type,const void * pixels)872 void MojoGLES2Impl::TexImage3D(GLenum target,
873                                GLint level,
874                                GLint internalformat,
875                                GLsizei width,
876                                GLsizei height,
877                                GLsizei depth,
878                                GLint border,
879                                GLenum format,
880                                GLenum type,
881                                const void* pixels) {
882   NOTREACHED() << "Unimplemented TexImage3D.";
883 }
TexParameterf(GLenum target,GLenum pname,GLfloat param)884 void MojoGLES2Impl::TexParameterf(GLenum target, GLenum pname, GLfloat param) {
885   MojoGLES2MakeCurrent(context_);
886   glTexParameterf(target, pname, param);
887 }
TexParameterfv(GLenum target,GLenum pname,const GLfloat * params)888 void MojoGLES2Impl::TexParameterfv(GLenum target,
889                                    GLenum pname,
890                                    const GLfloat* params) {
891   MojoGLES2MakeCurrent(context_);
892   glTexParameterfv(target, pname, params);
893 }
TexParameteri(GLenum target,GLenum pname,GLint param)894 void MojoGLES2Impl::TexParameteri(GLenum target, GLenum pname, GLint param) {
895   MojoGLES2MakeCurrent(context_);
896   glTexParameteri(target, pname, param);
897 }
TexParameteriv(GLenum target,GLenum pname,const GLint * params)898 void MojoGLES2Impl::TexParameteriv(GLenum target,
899                                    GLenum pname,
900                                    const GLint* params) {
901   MojoGLES2MakeCurrent(context_);
902   glTexParameteriv(target, pname, params);
903 }
TexStorage3D(GLenum target,GLsizei levels,GLenum internalFormat,GLsizei width,GLsizei height,GLsizei depth)904 void MojoGLES2Impl::TexStorage3D(GLenum target,
905                                  GLsizei levels,
906                                  GLenum internalFormat,
907                                  GLsizei width,
908                                  GLsizei height,
909                                  GLsizei depth) {
910   NOTREACHED() << "Unimplemented TexStorage3D.";
911 }
TexSubImage2D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLenum type,const void * pixels)912 void MojoGLES2Impl::TexSubImage2D(GLenum target,
913                                   GLint level,
914                                   GLint xoffset,
915                                   GLint yoffset,
916                                   GLsizei width,
917                                   GLsizei height,
918                                   GLenum format,
919                                   GLenum type,
920                                   const void* pixels) {
921   MojoGLES2MakeCurrent(context_);
922   glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,
923                   pixels);
924 }
TexSubImage3D(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLint zoffset,GLsizei width,GLsizei height,GLsizei depth,GLenum format,GLenum type,const void * pixels)925 void MojoGLES2Impl::TexSubImage3D(GLenum target,
926                                   GLint level,
927                                   GLint xoffset,
928                                   GLint yoffset,
929                                   GLint zoffset,
930                                   GLsizei width,
931                                   GLsizei height,
932                                   GLsizei depth,
933                                   GLenum format,
934                                   GLenum type,
935                                   const void* pixels) {
936   NOTREACHED() << "Unimplemented TexSubImage3D.";
937 }
TransformFeedbackVaryings(GLuint program,GLsizei count,const char * const * varyings,GLenum buffermode)938 void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program,
939                                               GLsizei count,
940                                               const char* const* varyings,
941                                               GLenum buffermode) {
942   NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
943 }
Uniform1f(GLint location,GLfloat x)944 void MojoGLES2Impl::Uniform1f(GLint location, GLfloat x) {
945   MojoGLES2MakeCurrent(context_);
946   glUniform1f(location, x);
947 }
Uniform1fv(GLint location,GLsizei count,const GLfloat * v)948 void MojoGLES2Impl::Uniform1fv(GLint location,
949                                GLsizei count,
950                                const GLfloat* v) {
951   MojoGLES2MakeCurrent(context_);
952   glUniform1fv(location, count, v);
953 }
Uniform1i(GLint location,GLint x)954 void MojoGLES2Impl::Uniform1i(GLint location, GLint x) {
955   MojoGLES2MakeCurrent(context_);
956   glUniform1i(location, x);
957 }
Uniform1iv(GLint location,GLsizei count,const GLint * v)958 void MojoGLES2Impl::Uniform1iv(GLint location, GLsizei count, const GLint* v) {
959   MojoGLES2MakeCurrent(context_);
960   glUniform1iv(location, count, v);
961 }
Uniform1ui(GLint location,GLuint x)962 void MojoGLES2Impl::Uniform1ui(GLint location, GLuint x) {
963   NOTREACHED() << "Unimplemented Uniform1ui.";
964 }
Uniform1uiv(GLint location,GLsizei count,const GLuint * v)965 void MojoGLES2Impl::Uniform1uiv(GLint location,
966                                 GLsizei count,
967                                 const GLuint* v) {
968   NOTREACHED() << "Unimplemented Uniform1uiv.";
969 }
Uniform2f(GLint location,GLfloat x,GLfloat y)970 void MojoGLES2Impl::Uniform2f(GLint location, GLfloat x, GLfloat y) {
971   MojoGLES2MakeCurrent(context_);
972   glUniform2f(location, x, y);
973 }
Uniform2fv(GLint location,GLsizei count,const GLfloat * v)974 void MojoGLES2Impl::Uniform2fv(GLint location,
975                                GLsizei count,
976                                const GLfloat* v) {
977   MojoGLES2MakeCurrent(context_);
978   glUniform2fv(location, count, v);
979 }
Uniform2i(GLint location,GLint x,GLint y)980 void MojoGLES2Impl::Uniform2i(GLint location, GLint x, GLint y) {
981   MojoGLES2MakeCurrent(context_);
982   glUniform2i(location, x, y);
983 }
Uniform2iv(GLint location,GLsizei count,const GLint * v)984 void MojoGLES2Impl::Uniform2iv(GLint location, GLsizei count, const GLint* v) {
985   MojoGLES2MakeCurrent(context_);
986   glUniform2iv(location, count, v);
987 }
Uniform2ui(GLint location,GLuint x,GLuint y)988 void MojoGLES2Impl::Uniform2ui(GLint location, GLuint x, GLuint y) {
989   NOTREACHED() << "Unimplemented Uniform2ui.";
990 }
Uniform2uiv(GLint location,GLsizei count,const GLuint * v)991 void MojoGLES2Impl::Uniform2uiv(GLint location,
992                                 GLsizei count,
993                                 const GLuint* v) {
994   NOTREACHED() << "Unimplemented Uniform2uiv.";
995 }
Uniform3f(GLint location,GLfloat x,GLfloat y,GLfloat z)996 void MojoGLES2Impl::Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
997   MojoGLES2MakeCurrent(context_);
998   glUniform3f(location, x, y, z);
999 }
Uniform3fv(GLint location,GLsizei count,const GLfloat * v)1000 void MojoGLES2Impl::Uniform3fv(GLint location,
1001                                GLsizei count,
1002                                const GLfloat* v) {
1003   MojoGLES2MakeCurrent(context_);
1004   glUniform3fv(location, count, v);
1005 }
Uniform3i(GLint location,GLint x,GLint y,GLint z)1006 void MojoGLES2Impl::Uniform3i(GLint location, GLint x, GLint y, GLint z) {
1007   MojoGLES2MakeCurrent(context_);
1008   glUniform3i(location, x, y, z);
1009 }
Uniform3iv(GLint location,GLsizei count,const GLint * v)1010 void MojoGLES2Impl::Uniform3iv(GLint location, GLsizei count, const GLint* v) {
1011   MojoGLES2MakeCurrent(context_);
1012   glUniform3iv(location, count, v);
1013 }
Uniform3ui(GLint location,GLuint x,GLuint y,GLuint z)1014 void MojoGLES2Impl::Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
1015   NOTREACHED() << "Unimplemented Uniform3ui.";
1016 }
Uniform3uiv(GLint location,GLsizei count,const GLuint * v)1017 void MojoGLES2Impl::Uniform3uiv(GLint location,
1018                                 GLsizei count,
1019                                 const GLuint* v) {
1020   NOTREACHED() << "Unimplemented Uniform3uiv.";
1021 }
Uniform4f(GLint location,GLfloat x,GLfloat y,GLfloat z,GLfloat w)1022 void MojoGLES2Impl::Uniform4f(GLint location,
1023                               GLfloat x,
1024                               GLfloat y,
1025                               GLfloat z,
1026                               GLfloat w) {
1027   MojoGLES2MakeCurrent(context_);
1028   glUniform4f(location, x, y, z, w);
1029 }
Uniform4fv(GLint location,GLsizei count,const GLfloat * v)1030 void MojoGLES2Impl::Uniform4fv(GLint location,
1031                                GLsizei count,
1032                                const GLfloat* v) {
1033   MojoGLES2MakeCurrent(context_);
1034   glUniform4fv(location, count, v);
1035 }
Uniform4i(GLint location,GLint x,GLint y,GLint z,GLint w)1036 void MojoGLES2Impl::Uniform4i(GLint location,
1037                               GLint x,
1038                               GLint y,
1039                               GLint z,
1040                               GLint w) {
1041   MojoGLES2MakeCurrent(context_);
1042   glUniform4i(location, x, y, z, w);
1043 }
Uniform4iv(GLint location,GLsizei count,const GLint * v)1044 void MojoGLES2Impl::Uniform4iv(GLint location, GLsizei count, const GLint* v) {
1045   MojoGLES2MakeCurrent(context_);
1046   glUniform4iv(location, count, v);
1047 }
Uniform4ui(GLint location,GLuint x,GLuint y,GLuint z,GLuint w)1048 void MojoGLES2Impl::Uniform4ui(GLint location,
1049                                GLuint x,
1050                                GLuint y,
1051                                GLuint z,
1052                                GLuint w) {
1053   NOTREACHED() << "Unimplemented Uniform4ui.";
1054 }
Uniform4uiv(GLint location,GLsizei count,const GLuint * v)1055 void MojoGLES2Impl::Uniform4uiv(GLint location,
1056                                 GLsizei count,
1057                                 const GLuint* v) {
1058   NOTREACHED() << "Unimplemented Uniform4uiv.";
1059 }
UniformBlockBinding(GLuint program,GLuint index,GLuint binding)1060 void MojoGLES2Impl::UniformBlockBinding(GLuint program,
1061                                         GLuint index,
1062                                         GLuint binding) {
1063   NOTREACHED() << "Unimplemented UniformBlockBinding.";
1064 }
UniformMatrix2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1065 void MojoGLES2Impl::UniformMatrix2fv(GLint location,
1066                                      GLsizei count,
1067                                      GLboolean transpose,
1068                                      const GLfloat* value) {
1069   MojoGLES2MakeCurrent(context_);
1070   glUniformMatrix2fv(location, count, transpose, value);
1071 }
UniformMatrix2x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1072 void MojoGLES2Impl::UniformMatrix2x3fv(GLint location,
1073                                        GLsizei count,
1074                                        GLboolean transpose,
1075                                        const GLfloat* value) {
1076   NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
1077 }
UniformMatrix2x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1078 void MojoGLES2Impl::UniformMatrix2x4fv(GLint location,
1079                                        GLsizei count,
1080                                        GLboolean transpose,
1081                                        const GLfloat* value) {
1082   NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
1083 }
UniformMatrix3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1084 void MojoGLES2Impl::UniformMatrix3fv(GLint location,
1085                                      GLsizei count,
1086                                      GLboolean transpose,
1087                                      const GLfloat* value) {
1088   MojoGLES2MakeCurrent(context_);
1089   glUniformMatrix3fv(location, count, transpose, value);
1090 }
UniformMatrix3x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1091 void MojoGLES2Impl::UniformMatrix3x2fv(GLint location,
1092                                        GLsizei count,
1093                                        GLboolean transpose,
1094                                        const GLfloat* value) {
1095   NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
1096 }
UniformMatrix3x4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1097 void MojoGLES2Impl::UniformMatrix3x4fv(GLint location,
1098                                        GLsizei count,
1099                                        GLboolean transpose,
1100                                        const GLfloat* value) {
1101   NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
1102 }
UniformMatrix4fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1103 void MojoGLES2Impl::UniformMatrix4fv(GLint location,
1104                                      GLsizei count,
1105                                      GLboolean transpose,
1106                                      const GLfloat* value) {
1107   MojoGLES2MakeCurrent(context_);
1108   glUniformMatrix4fv(location, count, transpose, value);
1109 }
UniformMatrix4x2fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1110 void MojoGLES2Impl::UniformMatrix4x2fv(GLint location,
1111                                        GLsizei count,
1112                                        GLboolean transpose,
1113                                        const GLfloat* value) {
1114   NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
1115 }
UniformMatrix4x3fv(GLint location,GLsizei count,GLboolean transpose,const GLfloat * value)1116 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location,
1117                                        GLsizei count,
1118                                        GLboolean transpose,
1119                                        const GLfloat* value) {
1120   NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
1121 }
UseProgram(GLuint program)1122 void MojoGLES2Impl::UseProgram(GLuint program) {
1123   MojoGLES2MakeCurrent(context_);
1124   glUseProgram(program);
1125 }
ValidateProgram(GLuint program)1126 void MojoGLES2Impl::ValidateProgram(GLuint program) {
1127   MojoGLES2MakeCurrent(context_);
1128   glValidateProgram(program);
1129 }
VertexAttrib1f(GLuint indx,GLfloat x)1130 void MojoGLES2Impl::VertexAttrib1f(GLuint indx, GLfloat x) {
1131   MojoGLES2MakeCurrent(context_);
1132   glVertexAttrib1f(indx, x);
1133 }
VertexAttrib1fv(GLuint indx,const GLfloat * values)1134 void MojoGLES2Impl::VertexAttrib1fv(GLuint indx, const GLfloat* values) {
1135   MojoGLES2MakeCurrent(context_);
1136   glVertexAttrib1fv(indx, values);
1137 }
VertexAttrib2f(GLuint indx,GLfloat x,GLfloat y)1138 void MojoGLES2Impl::VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
1139   MojoGLES2MakeCurrent(context_);
1140   glVertexAttrib2f(indx, x, y);
1141 }
VertexAttrib2fv(GLuint indx,const GLfloat * values)1142 void MojoGLES2Impl::VertexAttrib2fv(GLuint indx, const GLfloat* values) {
1143   MojoGLES2MakeCurrent(context_);
1144   glVertexAttrib2fv(indx, values);
1145 }
VertexAttrib3f(GLuint indx,GLfloat x,GLfloat y,GLfloat z)1146 void MojoGLES2Impl::VertexAttrib3f(GLuint indx,
1147                                    GLfloat x,
1148                                    GLfloat y,
1149                                    GLfloat z) {
1150   MojoGLES2MakeCurrent(context_);
1151   glVertexAttrib3f(indx, x, y, z);
1152 }
VertexAttrib3fv(GLuint indx,const GLfloat * values)1153 void MojoGLES2Impl::VertexAttrib3fv(GLuint indx, const GLfloat* values) {
1154   MojoGLES2MakeCurrent(context_);
1155   glVertexAttrib3fv(indx, values);
1156 }
VertexAttrib4f(GLuint indx,GLfloat x,GLfloat y,GLfloat z,GLfloat w)1157 void MojoGLES2Impl::VertexAttrib4f(GLuint indx,
1158                                    GLfloat x,
1159                                    GLfloat y,
1160                                    GLfloat z,
1161                                    GLfloat w) {
1162   MojoGLES2MakeCurrent(context_);
1163   glVertexAttrib4f(indx, x, y, z, w);
1164 }
VertexAttrib4fv(GLuint indx,const GLfloat * values)1165 void MojoGLES2Impl::VertexAttrib4fv(GLuint indx, const GLfloat* values) {
1166   MojoGLES2MakeCurrent(context_);
1167   glVertexAttrib4fv(indx, values);
1168 }
VertexAttribI4i(GLuint indx,GLint x,GLint y,GLint z,GLint w)1169 void MojoGLES2Impl::VertexAttribI4i(GLuint indx,
1170                                     GLint x,
1171                                     GLint y,
1172                                     GLint z,
1173                                     GLint w) {
1174   NOTREACHED() << "Unimplemented VertexAttribI4i.";
1175 }
VertexAttribI4iv(GLuint indx,const GLint * values)1176 void MojoGLES2Impl::VertexAttribI4iv(GLuint indx, const GLint* values) {
1177   NOTREACHED() << "Unimplemented VertexAttribI4iv.";
1178 }
VertexAttribI4ui(GLuint indx,GLuint x,GLuint y,GLuint z,GLuint w)1179 void MojoGLES2Impl::VertexAttribI4ui(GLuint indx,
1180                                      GLuint x,
1181                                      GLuint y,
1182                                      GLuint z,
1183                                      GLuint w) {
1184   NOTREACHED() << "Unimplemented VertexAttribI4ui.";
1185 }
VertexAttribI4uiv(GLuint indx,const GLuint * values)1186 void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx, const GLuint* values) {
1187   NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
1188 }
VertexAttribIPointer(GLuint indx,GLint size,GLenum type,GLsizei stride,const void * ptr)1189 void MojoGLES2Impl::VertexAttribIPointer(GLuint indx,
1190                                          GLint size,
1191                                          GLenum type,
1192                                          GLsizei stride,
1193                                          const void* ptr) {
1194   NOTREACHED() << "Unimplemented VertexAttribIPointer.";
1195 }
VertexAttribPointer(GLuint indx,GLint size,GLenum type,GLboolean normalized,GLsizei stride,const void * ptr)1196 void MojoGLES2Impl::VertexAttribPointer(GLuint indx,
1197                                         GLint size,
1198                                         GLenum type,
1199                                         GLboolean normalized,
1200                                         GLsizei stride,
1201                                         const void* ptr) {
1202   MojoGLES2MakeCurrent(context_);
1203   glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
1204 }
Viewport(GLint x,GLint y,GLsizei width,GLsizei height)1205 void MojoGLES2Impl::Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
1206   MojoGLES2MakeCurrent(context_);
1207   glViewport(x, y, width, height);
1208 }
WaitSync(GLsync sync,GLbitfield flags,GLuint64 timeout)1209 void MojoGLES2Impl::WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
1210   NOTREACHED() << "Unimplemented WaitSync.";
1211 }
BlitFramebufferCHROMIUM(GLint srcX0,GLint srcY0,GLint srcX1,GLint srcY1,GLint dstX0,GLint dstY0,GLint dstX1,GLint dstY1,GLbitfield mask,GLenum filter)1212 void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0,
1213                                             GLint srcY0,
1214                                             GLint srcX1,
1215                                             GLint srcY1,
1216                                             GLint dstX0,
1217                                             GLint dstY0,
1218                                             GLint dstX1,
1219                                             GLint dstY1,
1220                                             GLbitfield mask,
1221                                             GLenum filter) {
1222   MojoGLES2MakeCurrent(context_);
1223   glBlitFramebufferCHROMIUM(srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1,
1224                             dstY1, mask, filter);
1225 }
RenderbufferStorageMultisampleCHROMIUM(GLenum target,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height)1226 void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
1227     GLenum target,
1228     GLsizei samples,
1229     GLenum internalformat,
1230     GLsizei width,
1231     GLsizei height) {
1232   MojoGLES2MakeCurrent(context_);
1233   glRenderbufferStorageMultisampleCHROMIUM(target, samples, internalformat,
1234                                            width, height);
1235 }
RenderbufferStorageMultisampleEXT(GLenum target,GLsizei samples,GLenum internalformat,GLsizei width,GLsizei height)1236 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target,
1237                                                       GLsizei samples,
1238                                                       GLenum internalformat,
1239                                                       GLsizei width,
1240                                                       GLsizei height) {
1241   MojoGLES2MakeCurrent(context_);
1242   glRenderbufferStorageMultisampleEXT(target, samples, internalformat, width,
1243                                       height);
1244 }
FramebufferTexture2DMultisampleEXT(GLenum target,GLenum attachment,GLenum textarget,GLuint texture,GLint level,GLsizei samples)1245 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target,
1246                                                        GLenum attachment,
1247                                                        GLenum textarget,
1248                                                        GLuint texture,
1249                                                        GLint level,
1250                                                        GLsizei samples) {
1251   MojoGLES2MakeCurrent(context_);
1252   glFramebufferTexture2DMultisampleEXT(target, attachment, textarget, texture,
1253                                        level, samples);
1254 }
TexStorage2DEXT(GLenum target,GLsizei levels,GLenum internalFormat,GLsizei width,GLsizei height)1255 void MojoGLES2Impl::TexStorage2DEXT(GLenum target,
1256                                     GLsizei levels,
1257                                     GLenum internalFormat,
1258                                     GLsizei width,
1259                                     GLsizei height) {
1260   MojoGLES2MakeCurrent(context_);
1261   glTexStorage2DEXT(target, levels, internalFormat, width, height);
1262 }
GenQueriesEXT(GLsizei n,GLuint * queries)1263 void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) {
1264   MojoGLES2MakeCurrent(context_);
1265   glGenQueriesEXT(n, queries);
1266 }
DeleteQueriesEXT(GLsizei n,const GLuint * queries)1267 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
1268   MojoGLES2MakeCurrent(context_);
1269   glDeleteQueriesEXT(n, queries);
1270 }
QueryCounterEXT(GLuint id,GLenum target)1271 void MojoGLES2Impl::QueryCounterEXT(GLuint id, GLenum target) {
1272   MojoGLES2MakeCurrent(context_);
1273   glQueryCounterEXT(id, target);
1274 }
IsQueryEXT(GLuint id)1275 GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) {
1276   MojoGLES2MakeCurrent(context_);
1277   return glIsQueryEXT(id);
1278 }
BeginQueryEXT(GLenum target,GLuint id)1279 void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) {
1280   MojoGLES2MakeCurrent(context_);
1281   glBeginQueryEXT(target, id);
1282 }
BeginTransformFeedback(GLenum primitivemode)1283 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) {
1284   NOTREACHED() << "Unimplemented BeginTransformFeedback.";
1285 }
EndQueryEXT(GLenum target)1286 void MojoGLES2Impl::EndQueryEXT(GLenum target) {
1287   MojoGLES2MakeCurrent(context_);
1288   glEndQueryEXT(target);
1289 }
EndTransformFeedback()1290 void MojoGLES2Impl::EndTransformFeedback() {
1291   NOTREACHED() << "Unimplemented EndTransformFeedback.";
1292 }
GetQueryivEXT(GLenum target,GLenum pname,GLint * params)1293 void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
1294   MojoGLES2MakeCurrent(context_);
1295   glGetQueryivEXT(target, pname, params);
1296 }
GetQueryObjectivEXT(GLuint id,GLenum pname,GLint * params)1297 void MojoGLES2Impl::GetQueryObjectivEXT(GLuint id,
1298                                         GLenum pname,
1299                                         GLint* params) {
1300   MojoGLES2MakeCurrent(context_);
1301   glGetQueryObjectivEXT(id, pname, params);
1302 }
GetQueryObjectuivEXT(GLuint id,GLenum pname,GLuint * params)1303 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id,
1304                                          GLenum pname,
1305                                          GLuint* params) {
1306   MojoGLES2MakeCurrent(context_);
1307   glGetQueryObjectuivEXT(id, pname, params);
1308 }
GetQueryObjecti64vEXT(GLuint id,GLenum pname,GLint64 * params)1309 void MojoGLES2Impl::GetQueryObjecti64vEXT(GLuint id,
1310                                           GLenum pname,
1311                                           GLint64* params) {
1312   MojoGLES2MakeCurrent(context_);
1313   glGetQueryObjecti64vEXT(id, pname, params);
1314 }
GetQueryObjectui64vEXT(GLuint id,GLenum pname,GLuint64 * params)1315 void MojoGLES2Impl::GetQueryObjectui64vEXT(GLuint id,
1316                                            GLenum pname,
1317                                            GLuint64* params) {
1318   MojoGLES2MakeCurrent(context_);
1319   glGetQueryObjectui64vEXT(id, pname, params);
1320 }
SetDisjointValueSyncCHROMIUM()1321 void MojoGLES2Impl::SetDisjointValueSyncCHROMIUM() {
1322   MojoGLES2MakeCurrent(context_);
1323   glSetDisjointValueSyncCHROMIUM();
1324 }
InsertEventMarkerEXT(GLsizei length,const GLchar * marker)1325 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
1326   MojoGLES2MakeCurrent(context_);
1327   glInsertEventMarkerEXT(length, marker);
1328 }
PushGroupMarkerEXT(GLsizei length,const GLchar * marker)1329 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
1330   MojoGLES2MakeCurrent(context_);
1331   glPushGroupMarkerEXT(length, marker);
1332 }
PopGroupMarkerEXT()1333 void MojoGLES2Impl::PopGroupMarkerEXT() {
1334   MojoGLES2MakeCurrent(context_);
1335   glPopGroupMarkerEXT();
1336 }
GenVertexArraysOES(GLsizei n,GLuint * arrays)1337 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
1338   MojoGLES2MakeCurrent(context_);
1339   glGenVertexArraysOES(n, arrays);
1340 }
DeleteVertexArraysOES(GLsizei n,const GLuint * arrays)1341 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
1342   MojoGLES2MakeCurrent(context_);
1343   glDeleteVertexArraysOES(n, arrays);
1344 }
IsVertexArrayOES(GLuint array)1345 GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) {
1346   MojoGLES2MakeCurrent(context_);
1347   return glIsVertexArrayOES(array);
1348 }
BindVertexArrayOES(GLuint array)1349 void MojoGLES2Impl::BindVertexArrayOES(GLuint array) {
1350   MojoGLES2MakeCurrent(context_);
1351   glBindVertexArrayOES(array);
1352 }
SwapBuffers()1353 void MojoGLES2Impl::SwapBuffers() {
1354   MojoGLES2MakeCurrent(context_);
1355   glSwapBuffers();
1356 }
GetMaxValueInBufferCHROMIUM(GLuint buffer_id,GLsizei count,GLenum type,GLuint offset)1357 GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
1358                                                   GLsizei count,
1359                                                   GLenum type,
1360                                                   GLuint offset) {
1361   MojoGLES2MakeCurrent(context_);
1362   return glGetMaxValueInBufferCHROMIUM(buffer_id, count, type, offset);
1363 }
EnableFeatureCHROMIUM(const char * feature)1364 GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) {
1365   MojoGLES2MakeCurrent(context_);
1366   return glEnableFeatureCHROMIUM(feature);
1367 }
MapBufferCHROMIUM(GLuint target,GLenum access)1368 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) {
1369   MojoGLES2MakeCurrent(context_);
1370   return glMapBufferCHROMIUM(target, access);
1371 }
UnmapBufferCHROMIUM(GLuint target)1372 GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) {
1373   MojoGLES2MakeCurrent(context_);
1374   return glUnmapBufferCHROMIUM(target);
1375 }
MapBufferSubDataCHROMIUM(GLuint target,GLintptr offset,GLsizeiptr size,GLenum access)1376 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target,
1377                                               GLintptr offset,
1378                                               GLsizeiptr size,
1379                                               GLenum access) {
1380   MojoGLES2MakeCurrent(context_);
1381   return glMapBufferSubDataCHROMIUM(target, offset, size, access);
1382 }
UnmapBufferSubDataCHROMIUM(const void * mem)1383 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) {
1384   MojoGLES2MakeCurrent(context_);
1385   glUnmapBufferSubDataCHROMIUM(mem);
1386 }
MapBufferRange(GLenum target,GLintptr offset,GLsizeiptr size,GLbitfield access)1387 void* MojoGLES2Impl::MapBufferRange(GLenum target,
1388                                     GLintptr offset,
1389                                     GLsizeiptr size,
1390                                     GLbitfield access) {
1391   NOTREACHED() << "Unimplemented MapBufferRange.";
1392   return 0;
1393 }
UnmapBuffer(GLenum target)1394 GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) {
1395   NOTREACHED() << "Unimplemented UnmapBuffer.";
1396   return 0;
1397 }
MapTexSubImage2DCHROMIUM(GLenum target,GLint level,GLint xoffset,GLint yoffset,GLsizei width,GLsizei height,GLenum format,GLenum type,GLenum access)1398 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target,
1399                                               GLint level,
1400                                               GLint xoffset,
1401                                               GLint yoffset,
1402                                               GLsizei width,
1403                                               GLsizei height,
1404                                               GLenum format,
1405                                               GLenum type,
1406                                               GLenum access) {
1407   MojoGLES2MakeCurrent(context_);
1408   return glMapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width,
1409                                     height, format, type, access);
1410 }
UnmapTexSubImage2DCHROMIUM(const void * mem)1411 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) {
1412   MojoGLES2MakeCurrent(context_);
1413   glUnmapTexSubImage2DCHROMIUM(mem);
1414 }
ResizeCHROMIUM(GLuint width,GLuint height,GLfloat scale_factor,GLboolean alpha)1415 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width,
1416                                    GLuint height,
1417                                    GLfloat scale_factor,
1418                                    GLboolean alpha) {
1419   MojoGLES2MakeCurrent(context_);
1420   glResizeCHROMIUM(width, height, scale_factor, alpha);
1421 }
GetRequestableExtensionsCHROMIUM()1422 const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1423   MojoGLES2MakeCurrent(context_);
1424   return glGetRequestableExtensionsCHROMIUM();
1425 }
RequestExtensionCHROMIUM(const char * extension)1426 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) {
1427   MojoGLES2MakeCurrent(context_);
1428   glRequestExtensionCHROMIUM(extension);
1429 }
GetProgramInfoCHROMIUM(GLuint program,GLsizei bufsize,GLsizei * size,void * info)1430 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program,
1431                                            GLsizei bufsize,
1432                                            GLsizei* size,
1433                                            void* info) {
1434   MojoGLES2MakeCurrent(context_);
1435   glGetProgramInfoCHROMIUM(program, bufsize, size, info);
1436 }
GetUniformBlocksCHROMIUM(GLuint program,GLsizei bufsize,GLsizei * size,void * info)1437 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program,
1438                                              GLsizei bufsize,
1439                                              GLsizei* size,
1440                                              void* info) {
1441   NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1442 }
GetTransformFeedbackVaryingsCHROMIUM(GLuint program,GLsizei bufsize,GLsizei * size,void * info)1443 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
1444                                                          GLsizei bufsize,
1445                                                          GLsizei* size,
1446                                                          void* info) {
1447   NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1448 }
GetUniformsES3CHROMIUM(GLuint program,GLsizei bufsize,GLsizei * size,void * info)1449 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program,
1450                                            GLsizei bufsize,
1451                                            GLsizei* size,
1452                                            void* info) {
1453   NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1454 }
CreateImageCHROMIUM(ClientBuffer buffer,GLsizei width,GLsizei height,GLenum internalformat)1455 GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer,
1456                                           GLsizei width,
1457                                           GLsizei height,
1458                                           GLenum internalformat) {
1459   MojoGLES2MakeCurrent(context_);
1460   return glCreateImageCHROMIUM(buffer, width, height, internalformat);
1461 }
DestroyImageCHROMIUM(GLuint image_id)1462 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) {
1463   MojoGLES2MakeCurrent(context_);
1464   glDestroyImageCHROMIUM(image_id);
1465 }
CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,GLsizei height,GLenum internalformat,GLenum usage)1466 GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
1467                                                          GLsizei height,
1468                                                          GLenum internalformat,
1469                                                          GLenum usage) {
1470   MojoGLES2MakeCurrent(context_);
1471   return glCreateGpuMemoryBufferImageCHROMIUM(width, height, internalformat,
1472                                               usage);
1473 }
GetTranslatedShaderSourceANGLE(GLuint shader,GLsizei bufsize,GLsizei * length,char * source)1474 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader,
1475                                                    GLsizei bufsize,
1476                                                    GLsizei* length,
1477                                                    char* source) {
1478   MojoGLES2MakeCurrent(context_);
1479   glGetTranslatedShaderSourceANGLE(shader, bufsize, length, source);
1480 }
PostSubBufferCHROMIUM(GLint x,GLint y,GLint width,GLint height)1481 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x,
1482                                           GLint y,
1483                                           GLint width,
1484                                           GLint height) {
1485   MojoGLES2MakeCurrent(context_);
1486   glPostSubBufferCHROMIUM(x, y, width, height);
1487 }
CopyTextureCHROMIUM(GLenum source_id,GLenum dest_id,GLint internalformat,GLenum dest_type,GLboolean unpack_flip_y,GLboolean unpack_premultiply_alpha,GLboolean unpack_unmultiply_alpha)1488 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum source_id,
1489                                         GLenum dest_id,
1490                                         GLint internalformat,
1491                                         GLenum dest_type,
1492                                         GLboolean unpack_flip_y,
1493                                         GLboolean unpack_premultiply_alpha,
1494                                         GLboolean unpack_unmultiply_alpha) {
1495   MojoGLES2MakeCurrent(context_);
1496   glCopyTextureCHROMIUM(source_id, dest_id, internalformat, dest_type,
1497                         unpack_flip_y, unpack_premultiply_alpha,
1498                         unpack_unmultiply_alpha);
1499 }
CopySubTextureCHROMIUM(GLenum source_id,GLenum dest_id,GLint xoffset,GLint yoffset,GLint x,GLint y,GLsizei width,GLsizei height,GLboolean unpack_flip_y,GLboolean unpack_premultiply_alpha,GLboolean unpack_unmultiply_alpha)1500 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum source_id,
1501                                            GLenum dest_id,
1502                                            GLint xoffset,
1503                                            GLint yoffset,
1504                                            GLint x,
1505                                            GLint y,
1506                                            GLsizei width,
1507                                            GLsizei height,
1508                                            GLboolean unpack_flip_y,
1509                                            GLboolean unpack_premultiply_alpha,
1510                                            GLboolean unpack_unmultiply_alpha) {
1511   MojoGLES2MakeCurrent(context_);
1512   glCopySubTextureCHROMIUM(source_id, dest_id, xoffset, yoffset, x, y, width,
1513                            height, unpack_flip_y, unpack_premultiply_alpha,
1514                            unpack_unmultiply_alpha);
1515 }
CompressedCopyTextureCHROMIUM(GLenum source_id,GLenum dest_id)1516 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum source_id,
1517                                                   GLenum dest_id) {
1518   MojoGLES2MakeCurrent(context_);
1519   glCompressedCopyTextureCHROMIUM(source_id, dest_id);
1520 }
DrawArraysInstancedANGLE(GLenum mode,GLint first,GLsizei count,GLsizei primcount)1521 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode,
1522                                              GLint first,
1523                                              GLsizei count,
1524                                              GLsizei primcount) {
1525   MojoGLES2MakeCurrent(context_);
1526   glDrawArraysInstancedANGLE(mode, first, count, primcount);
1527 }
DrawElementsInstancedANGLE(GLenum mode,GLsizei count,GLenum type,const void * indices,GLsizei primcount)1528 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode,
1529                                                GLsizei count,
1530                                                GLenum type,
1531                                                const void* indices,
1532                                                GLsizei primcount) {
1533   MojoGLES2MakeCurrent(context_);
1534   glDrawElementsInstancedANGLE(mode, count, type, indices, primcount);
1535 }
VertexAttribDivisorANGLE(GLuint index,GLuint divisor)1536 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1537   MojoGLES2MakeCurrent(context_);
1538   glVertexAttribDivisorANGLE(index, divisor);
1539 }
GenMailboxCHROMIUM(GLbyte * mailbox)1540 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) {
1541   MojoGLES2MakeCurrent(context_);
1542   glGenMailboxCHROMIUM(mailbox);
1543 }
ProduceTextureCHROMIUM(GLenum target,const GLbyte * mailbox)1544 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target,
1545                                            const GLbyte* mailbox) {
1546   MojoGLES2MakeCurrent(context_);
1547   glProduceTextureCHROMIUM(target, mailbox);
1548 }
ProduceTextureDirectCHROMIUM(GLuint texture,GLenum target,const GLbyte * mailbox)1549 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture,
1550                                                  GLenum target,
1551                                                  const GLbyte* mailbox) {
1552   MojoGLES2MakeCurrent(context_);
1553   glProduceTextureDirectCHROMIUM(texture, target, mailbox);
1554 }
ConsumeTextureCHROMIUM(GLenum target,const GLbyte * mailbox)1555 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target,
1556                                            const GLbyte* mailbox) {
1557   MojoGLES2MakeCurrent(context_);
1558   glConsumeTextureCHROMIUM(target, mailbox);
1559 }
CreateAndConsumeTextureCHROMIUM(GLenum target,const GLbyte * mailbox)1560 GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target,
1561                                                       const GLbyte* mailbox) {
1562   MojoGLES2MakeCurrent(context_);
1563   return glCreateAndConsumeTextureCHROMIUM(target, mailbox);
1564 }
BindUniformLocationCHROMIUM(GLuint program,GLint location,const char * name)1565 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program,
1566                                                 GLint location,
1567                                                 const char* name) {
1568   MojoGLES2MakeCurrent(context_);
1569   glBindUniformLocationCHROMIUM(program, location, name);
1570 }
BindTexImage2DCHROMIUM(GLenum target,GLint imageId)1571 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1572   MojoGLES2MakeCurrent(context_);
1573   glBindTexImage2DCHROMIUM(target, imageId);
1574 }
ReleaseTexImage2DCHROMIUM(GLenum target,GLint imageId)1575 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
1576   MojoGLES2MakeCurrent(context_);
1577   glReleaseTexImage2DCHROMIUM(target, imageId);
1578 }
TraceBeginCHROMIUM(const char * category_name,const char * trace_name)1579 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name,
1580                                        const char* trace_name) {
1581   MojoGLES2MakeCurrent(context_);
1582   glTraceBeginCHROMIUM(category_name, trace_name);
1583 }
TraceEndCHROMIUM()1584 void MojoGLES2Impl::TraceEndCHROMIUM() {
1585   MojoGLES2MakeCurrent(context_);
1586   glTraceEndCHROMIUM();
1587 }
DiscardFramebufferEXT(GLenum target,GLsizei count,const GLenum * attachments)1588 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target,
1589                                           GLsizei count,
1590                                           const GLenum* attachments) {
1591   MojoGLES2MakeCurrent(context_);
1592   glDiscardFramebufferEXT(target, count, attachments);
1593 }
LoseContextCHROMIUM(GLenum current,GLenum other)1594 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) {
1595   MojoGLES2MakeCurrent(context_);
1596   glLoseContextCHROMIUM(current, other);
1597 }
InsertFenceSyncCHROMIUM()1598 GLuint64 MojoGLES2Impl::InsertFenceSyncCHROMIUM() {
1599   MojoGLES2MakeCurrent(context_);
1600   return glInsertFenceSyncCHROMIUM();
1601 }
GenSyncTokenCHROMIUM(GLuint64 fence_sync,GLbyte * sync_token)1602 void MojoGLES2Impl::GenSyncTokenCHROMIUM(GLuint64 fence_sync,
1603                                          GLbyte* sync_token) {
1604   MojoGLES2MakeCurrent(context_);
1605   glGenSyncTokenCHROMIUM(fence_sync, sync_token);
1606 }
GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync,GLbyte * sync_token)1607 void MojoGLES2Impl::GenUnverifiedSyncTokenCHROMIUM(GLuint64 fence_sync,
1608                                                    GLbyte* sync_token) {
1609   MojoGLES2MakeCurrent(context_);
1610   glGenUnverifiedSyncTokenCHROMIUM(fence_sync, sync_token);
1611 }
VerifySyncTokensCHROMIUM(GLbyte ** sync_tokens,GLsizei count)1612 void MojoGLES2Impl::VerifySyncTokensCHROMIUM(GLbyte** sync_tokens,
1613                                              GLsizei count) {
1614   MojoGLES2MakeCurrent(context_);
1615   glVerifySyncTokensCHROMIUM(sync_tokens, count);
1616 }
WaitSyncTokenCHROMIUM(const GLbyte * sync_token)1617 void MojoGLES2Impl::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) {
1618   MojoGLES2MakeCurrent(context_);
1619   glWaitSyncTokenCHROMIUM(sync_token);
1620 }
DrawBuffersEXT(GLsizei count,const GLenum * bufs)1621 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
1622   MojoGLES2MakeCurrent(context_);
1623   glDrawBuffersEXT(count, bufs);
1624 }
DiscardBackbufferCHROMIUM()1625 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
1626   MojoGLES2MakeCurrent(context_);
1627   glDiscardBackbufferCHROMIUM();
1628 }
ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,GLenum plane_transform,GLuint overlay_texture_id,GLint bounds_x,GLint bounds_y,GLint bounds_width,GLint bounds_height,GLfloat uv_x,GLfloat uv_y,GLfloat uv_width,GLfloat uv_height)1629 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
1630                                                  GLenum plane_transform,
1631                                                  GLuint overlay_texture_id,
1632                                                  GLint bounds_x,
1633                                                  GLint bounds_y,
1634                                                  GLint bounds_width,
1635                                                  GLint bounds_height,
1636                                                  GLfloat uv_x,
1637                                                  GLfloat uv_y,
1638                                                  GLfloat uv_width,
1639                                                  GLfloat uv_height) {
1640   MojoGLES2MakeCurrent(context_);
1641   glScheduleOverlayPlaneCHROMIUM(
1642       plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y,
1643       bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height);
1644 }
ScheduleCALayerCHROMIUM(GLuint contents_texture_id,const GLfloat * contents_rect,GLfloat opacity,GLuint background_color,GLuint edge_aa_mask,const GLfloat * bounds_rect,GLboolean is_clipped,const GLfloat * clip_rect,GLint sorting_context_id,const GLfloat * transform,GLuint filter)1645 void MojoGLES2Impl::ScheduleCALayerCHROMIUM(GLuint contents_texture_id,
1646                                             const GLfloat* contents_rect,
1647                                             GLfloat opacity,
1648                                             GLuint background_color,
1649                                             GLuint edge_aa_mask,
1650                                             const GLfloat* bounds_rect,
1651                                             GLboolean is_clipped,
1652                                             const GLfloat* clip_rect,
1653                                             GLint sorting_context_id,
1654                                             const GLfloat* transform,
1655                                             GLuint filter) {
1656   MojoGLES2MakeCurrent(context_);
1657   glScheduleCALayerCHROMIUM(contents_texture_id, contents_rect, opacity,
1658                             background_color, edge_aa_mask, bounds_rect,
1659                             is_clipped, clip_rect, sorting_context_id,
1660                             transform, filter);
1661 }
CommitOverlayPlanesCHROMIUM()1662 void MojoGLES2Impl::CommitOverlayPlanesCHROMIUM() {
1663   MojoGLES2MakeCurrent(context_);
1664   glCommitOverlayPlanesCHROMIUM();
1665 }
SwapInterval(GLint interval)1666 void MojoGLES2Impl::SwapInterval(GLint interval) {
1667   MojoGLES2MakeCurrent(context_);
1668   glSwapInterval(interval);
1669 }
FlushDriverCachesCHROMIUM()1670 void MojoGLES2Impl::FlushDriverCachesCHROMIUM() {
1671   MojoGLES2MakeCurrent(context_);
1672   glFlushDriverCachesCHROMIUM();
1673 }
GetLastFlushIdCHROMIUM()1674 GLuint MojoGLES2Impl::GetLastFlushIdCHROMIUM() {
1675   MojoGLES2MakeCurrent(context_);
1676   return glGetLastFlushIdCHROMIUM();
1677 }
MatrixLoadfCHROMIUM(GLenum matrixMode,const GLfloat * m)1678 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
1679   MojoGLES2MakeCurrent(context_);
1680   glMatrixLoadfCHROMIUM(matrixMode, m);
1681 }
MatrixLoadIdentityCHROMIUM(GLenum matrixMode)1682 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
1683   MojoGLES2MakeCurrent(context_);
1684   glMatrixLoadIdentityCHROMIUM(matrixMode);
1685 }
GenPathsCHROMIUM(GLsizei range)1686 GLuint MojoGLES2Impl::GenPathsCHROMIUM(GLsizei range) {
1687   MojoGLES2MakeCurrent(context_);
1688   return glGenPathsCHROMIUM(range);
1689 }
DeletePathsCHROMIUM(GLuint path,GLsizei range)1690 void MojoGLES2Impl::DeletePathsCHROMIUM(GLuint path, GLsizei range) {
1691   MojoGLES2MakeCurrent(context_);
1692   glDeletePathsCHROMIUM(path, range);
1693 }
IsPathCHROMIUM(GLuint path)1694 GLboolean MojoGLES2Impl::IsPathCHROMIUM(GLuint path) {
1695   MojoGLES2MakeCurrent(context_);
1696   return glIsPathCHROMIUM(path);
1697 }
PathCommandsCHROMIUM(GLuint path,GLsizei numCommands,const GLubyte * commands,GLsizei numCoords,GLenum coordType,const GLvoid * coords)1698 void MojoGLES2Impl::PathCommandsCHROMIUM(GLuint path,
1699                                          GLsizei numCommands,
1700                                          const GLubyte* commands,
1701                                          GLsizei numCoords,
1702                                          GLenum coordType,
1703                                          const GLvoid* coords) {
1704   MojoGLES2MakeCurrent(context_);
1705   glPathCommandsCHROMIUM(path, numCommands, commands, numCoords, coordType,
1706                          coords);
1707 }
PathParameterfCHROMIUM(GLuint path,GLenum pname,GLfloat value)1708 void MojoGLES2Impl::PathParameterfCHROMIUM(GLuint path,
1709                                            GLenum pname,
1710                                            GLfloat value) {
1711   MojoGLES2MakeCurrent(context_);
1712   glPathParameterfCHROMIUM(path, pname, value);
1713 }
PathParameteriCHROMIUM(GLuint path,GLenum pname,GLint value)1714 void MojoGLES2Impl::PathParameteriCHROMIUM(GLuint path,
1715                                            GLenum pname,
1716                                            GLint value) {
1717   MojoGLES2MakeCurrent(context_);
1718   glPathParameteriCHROMIUM(path, pname, value);
1719 }
PathStencilFuncCHROMIUM(GLenum func,GLint ref,GLuint mask)1720 void MojoGLES2Impl::PathStencilFuncCHROMIUM(GLenum func,
1721                                             GLint ref,
1722                                             GLuint mask) {
1723   MojoGLES2MakeCurrent(context_);
1724   glPathStencilFuncCHROMIUM(func, ref, mask);
1725 }
StencilFillPathCHROMIUM(GLuint path,GLenum fillMode,GLuint mask)1726 void MojoGLES2Impl::StencilFillPathCHROMIUM(GLuint path,
1727                                             GLenum fillMode,
1728                                             GLuint mask) {
1729   MojoGLES2MakeCurrent(context_);
1730   glStencilFillPathCHROMIUM(path, fillMode, mask);
1731 }
StencilStrokePathCHROMIUM(GLuint path,GLint reference,GLuint mask)1732 void MojoGLES2Impl::StencilStrokePathCHROMIUM(GLuint path,
1733                                               GLint reference,
1734                                               GLuint mask) {
1735   MojoGLES2MakeCurrent(context_);
1736   glStencilStrokePathCHROMIUM(path, reference, mask);
1737 }
CoverFillPathCHROMIUM(GLuint path,GLenum coverMode)1738 void MojoGLES2Impl::CoverFillPathCHROMIUM(GLuint path, GLenum coverMode) {
1739   MojoGLES2MakeCurrent(context_);
1740   glCoverFillPathCHROMIUM(path, coverMode);
1741 }
CoverStrokePathCHROMIUM(GLuint path,GLenum coverMode)1742 void MojoGLES2Impl::CoverStrokePathCHROMIUM(GLuint path, GLenum coverMode) {
1743   MojoGLES2MakeCurrent(context_);
1744   glCoverStrokePathCHROMIUM(path, coverMode);
1745 }
StencilThenCoverFillPathCHROMIUM(GLuint path,GLenum fillMode,GLuint mask,GLenum coverMode)1746 void MojoGLES2Impl::StencilThenCoverFillPathCHROMIUM(GLuint path,
1747                                                      GLenum fillMode,
1748                                                      GLuint mask,
1749                                                      GLenum coverMode) {
1750   MojoGLES2MakeCurrent(context_);
1751   glStencilThenCoverFillPathCHROMIUM(path, fillMode, mask, coverMode);
1752 }
StencilThenCoverStrokePathCHROMIUM(GLuint path,GLint reference,GLuint mask,GLenum coverMode)1753 void MojoGLES2Impl::StencilThenCoverStrokePathCHROMIUM(GLuint path,
1754                                                        GLint reference,
1755                                                        GLuint mask,
1756                                                        GLenum coverMode) {
1757   MojoGLES2MakeCurrent(context_);
1758   glStencilThenCoverStrokePathCHROMIUM(path, reference, mask, coverMode);
1759 }
StencilFillPathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLenum fillMode,GLuint mask,GLenum transformType,const GLfloat * transformValues)1760 void MojoGLES2Impl::StencilFillPathInstancedCHROMIUM(
1761     GLsizei numPaths,
1762     GLenum pathNameType,
1763     const GLvoid* paths,
1764     GLuint pathBase,
1765     GLenum fillMode,
1766     GLuint mask,
1767     GLenum transformType,
1768     const GLfloat* transformValues) {
1769   MojoGLES2MakeCurrent(context_);
1770   glStencilFillPathInstancedCHROMIUM(numPaths, pathNameType, paths, pathBase,
1771                                      fillMode, mask, transformType,
1772                                      transformValues);
1773 }
StencilStrokePathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLint reference,GLuint mask,GLenum transformType,const GLfloat * transformValues)1774 void MojoGLES2Impl::StencilStrokePathInstancedCHROMIUM(
1775     GLsizei numPaths,
1776     GLenum pathNameType,
1777     const GLvoid* paths,
1778     GLuint pathBase,
1779     GLint reference,
1780     GLuint mask,
1781     GLenum transformType,
1782     const GLfloat* transformValues) {
1783   MojoGLES2MakeCurrent(context_);
1784   glStencilStrokePathInstancedCHROMIUM(numPaths, pathNameType, paths, pathBase,
1785                                        reference, mask, transformType,
1786                                        transformValues);
1787 }
CoverFillPathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)1788 void MojoGLES2Impl::CoverFillPathInstancedCHROMIUM(
1789     GLsizei numPaths,
1790     GLenum pathNameType,
1791     const GLvoid* paths,
1792     GLuint pathBase,
1793     GLenum coverMode,
1794     GLenum transformType,
1795     const GLfloat* transformValues) {
1796   MojoGLES2MakeCurrent(context_);
1797   glCoverFillPathInstancedCHROMIUM(numPaths, pathNameType, paths, pathBase,
1798                                    coverMode, transformType, transformValues);
1799 }
CoverStrokePathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)1800 void MojoGLES2Impl::CoverStrokePathInstancedCHROMIUM(
1801     GLsizei numPaths,
1802     GLenum pathNameType,
1803     const GLvoid* paths,
1804     GLuint pathBase,
1805     GLenum coverMode,
1806     GLenum transformType,
1807     const GLfloat* transformValues) {
1808   MojoGLES2MakeCurrent(context_);
1809   glCoverStrokePathInstancedCHROMIUM(numPaths, pathNameType, paths, pathBase,
1810                                      coverMode, transformType, transformValues);
1811 }
StencilThenCoverFillPathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLenum fillMode,GLuint mask,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)1812 void MojoGLES2Impl::StencilThenCoverFillPathInstancedCHROMIUM(
1813     GLsizei numPaths,
1814     GLenum pathNameType,
1815     const GLvoid* paths,
1816     GLuint pathBase,
1817     GLenum fillMode,
1818     GLuint mask,
1819     GLenum coverMode,
1820     GLenum transformType,
1821     const GLfloat* transformValues) {
1822   MojoGLES2MakeCurrent(context_);
1823   glStencilThenCoverFillPathInstancedCHROMIUM(
1824       numPaths, pathNameType, paths, pathBase, fillMode, mask, coverMode,
1825       transformType, transformValues);
1826 }
StencilThenCoverStrokePathInstancedCHROMIUM(GLsizei numPaths,GLenum pathNameType,const GLvoid * paths,GLuint pathBase,GLint reference,GLuint mask,GLenum coverMode,GLenum transformType,const GLfloat * transformValues)1827 void MojoGLES2Impl::StencilThenCoverStrokePathInstancedCHROMIUM(
1828     GLsizei numPaths,
1829     GLenum pathNameType,
1830     const GLvoid* paths,
1831     GLuint pathBase,
1832     GLint reference,
1833     GLuint mask,
1834     GLenum coverMode,
1835     GLenum transformType,
1836     const GLfloat* transformValues) {
1837   MojoGLES2MakeCurrent(context_);
1838   glStencilThenCoverStrokePathInstancedCHROMIUM(
1839       numPaths, pathNameType, paths, pathBase, reference, mask, coverMode,
1840       transformType, transformValues);
1841 }
BindFragmentInputLocationCHROMIUM(GLuint program,GLint location,const char * name)1842 void MojoGLES2Impl::BindFragmentInputLocationCHROMIUM(GLuint program,
1843                                                       GLint location,
1844                                                       const char* name) {
1845   MojoGLES2MakeCurrent(context_);
1846   glBindFragmentInputLocationCHROMIUM(program, location, name);
1847 }
ProgramPathFragmentInputGenCHROMIUM(GLuint program,GLint location,GLenum genMode,GLint components,const GLfloat * coeffs)1848 void MojoGLES2Impl::ProgramPathFragmentInputGenCHROMIUM(GLuint program,
1849                                                         GLint location,
1850                                                         GLenum genMode,
1851                                                         GLint components,
1852                                                         const GLfloat* coeffs) {
1853   MojoGLES2MakeCurrent(context_);
1854   glProgramPathFragmentInputGenCHROMIUM(program, location, genMode, components,
1855                                         coeffs);
1856 }
CoverageModulationCHROMIUM(GLenum components)1857 void MojoGLES2Impl::CoverageModulationCHROMIUM(GLenum components) {
1858   MojoGLES2MakeCurrent(context_);
1859   glCoverageModulationCHROMIUM(components);
1860 }
GetGraphicsResetStatusKHR()1861 GLenum MojoGLES2Impl::GetGraphicsResetStatusKHR() {
1862   MojoGLES2MakeCurrent(context_);
1863   return glGetGraphicsResetStatusKHR();
1864 }
BlendBarrierKHR()1865 void MojoGLES2Impl::BlendBarrierKHR() {
1866   MojoGLES2MakeCurrent(context_);
1867   glBlendBarrierKHR();
1868 }
ApplyScreenSpaceAntialiasingCHROMIUM()1869 void MojoGLES2Impl::ApplyScreenSpaceAntialiasingCHROMIUM() {
1870   MojoGLES2MakeCurrent(context_);
1871   glApplyScreenSpaceAntialiasingCHROMIUM();
1872 }
BindFragDataLocationIndexedEXT(GLuint program,GLuint colorNumber,GLuint index,const char * name)1873 void MojoGLES2Impl::BindFragDataLocationIndexedEXT(GLuint program,
1874                                                    GLuint colorNumber,
1875                                                    GLuint index,
1876                                                    const char* name) {
1877   MojoGLES2MakeCurrent(context_);
1878   glBindFragDataLocationIndexedEXT(program, colorNumber, index, name);
1879 }
BindFragDataLocationEXT(GLuint program,GLuint colorNumber,const char * name)1880 void MojoGLES2Impl::BindFragDataLocationEXT(GLuint program,
1881                                             GLuint colorNumber,
1882                                             const char* name) {
1883   MojoGLES2MakeCurrent(context_);
1884   glBindFragDataLocationEXT(program, colorNumber, name);
1885 }
GetFragDataIndexEXT(GLuint program,const char * name)1886 GLint MojoGLES2Impl::GetFragDataIndexEXT(GLuint program, const char* name) {
1887   MojoGLES2MakeCurrent(context_);
1888   return glGetFragDataIndexEXT(program, name);
1889 }
UniformMatrix4fvStreamTextureMatrixCHROMIUM(GLint location,GLboolean transpose,const GLfloat * default_value)1890 void MojoGLES2Impl::UniformMatrix4fvStreamTextureMatrixCHROMIUM(
1891     GLint location,
1892     GLboolean transpose,
1893     const GLfloat* default_value) {
1894   MojoGLES2MakeCurrent(context_);
1895   glUniformMatrix4fvStreamTextureMatrixCHROMIUM(location, transpose,
1896                                                 default_value);
1897 }
1898 
1899 }  // namespace mojo
1900