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.
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
11 #include "mojo/gpu/mojo_gles2_impl_autogen.h"
13 #include "base/logging.h"
14 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h"
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h"
16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h"
17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h"
18 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
19 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h"
23 void MojoGLES2Impl::ActiveTexture(GLenum texture
) {
24 MojoGLES2MakeCurrent(context_
);
25 glActiveTexture(texture
);
27 void MojoGLES2Impl::AttachShader(GLuint program
, GLuint shader
) {
28 MojoGLES2MakeCurrent(context_
);
29 glAttachShader(program
, shader
);
31 void MojoGLES2Impl::BindAttribLocation(GLuint program
,
34 MojoGLES2MakeCurrent(context_
);
35 glBindAttribLocation(program
, index
, name
);
37 void MojoGLES2Impl::BindBuffer(GLenum target
, GLuint buffer
) {
38 MojoGLES2MakeCurrent(context_
);
39 glBindBuffer(target
, buffer
);
41 void MojoGLES2Impl::BindBufferBase(GLenum target
, GLuint index
, GLuint buffer
) {
42 NOTREACHED() << "Unimplemented BindBufferBase.";
44 void MojoGLES2Impl::BindBufferRange(GLenum target
,
49 NOTREACHED() << "Unimplemented BindBufferRange.";
51 void MojoGLES2Impl::BindFramebuffer(GLenum target
, GLuint framebuffer
) {
52 MojoGLES2MakeCurrent(context_
);
53 glBindFramebuffer(target
, framebuffer
);
55 void MojoGLES2Impl::BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
56 MojoGLES2MakeCurrent(context_
);
57 glBindRenderbuffer(target
, renderbuffer
);
59 void MojoGLES2Impl::BindSampler(GLuint unit
, GLuint sampler
) {
60 NOTREACHED() << "Unimplemented BindSampler.";
62 void MojoGLES2Impl::BindTexture(GLenum target
, GLuint texture
) {
63 MojoGLES2MakeCurrent(context_
);
64 glBindTexture(target
, texture
);
66 void MojoGLES2Impl::BindTransformFeedback(GLenum target
,
67 GLuint transformfeedback
) {
68 NOTREACHED() << "Unimplemented BindTransformFeedback.";
70 void MojoGLES2Impl::BlendColor(GLclampf red
,
74 MojoGLES2MakeCurrent(context_
);
75 glBlendColor(red
, green
, blue
, alpha
);
77 void MojoGLES2Impl::BlendEquation(GLenum mode
) {
78 MojoGLES2MakeCurrent(context_
);
79 glBlendEquation(mode
);
81 void MojoGLES2Impl::BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
82 MojoGLES2MakeCurrent(context_
);
83 glBlendEquationSeparate(modeRGB
, modeAlpha
);
85 void MojoGLES2Impl::BlendFunc(GLenum sfactor
, GLenum dfactor
) {
86 MojoGLES2MakeCurrent(context_
);
87 glBlendFunc(sfactor
, dfactor
);
89 void MojoGLES2Impl::BlendFuncSeparate(GLenum srcRGB
,
93 MojoGLES2MakeCurrent(context_
);
94 glBlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
96 void MojoGLES2Impl::BufferData(GLenum target
,
100 MojoGLES2MakeCurrent(context_
);
101 glBufferData(target
, size
, data
, usage
);
103 void MojoGLES2Impl::BufferSubData(GLenum target
,
107 MojoGLES2MakeCurrent(context_
);
108 glBufferSubData(target
, offset
, size
, data
);
110 GLenum
MojoGLES2Impl::CheckFramebufferStatus(GLenum target
) {
111 MojoGLES2MakeCurrent(context_
);
112 return glCheckFramebufferStatus(target
);
114 void MojoGLES2Impl::Clear(GLbitfield mask
) {
115 MojoGLES2MakeCurrent(context_
);
118 void MojoGLES2Impl::ClearBufferfi(GLenum buffer
,
122 NOTREACHED() << "Unimplemented ClearBufferfi.";
124 void MojoGLES2Impl::ClearBufferfv(GLenum buffer
,
126 const GLfloat
* value
) {
127 NOTREACHED() << "Unimplemented ClearBufferfv.";
129 void MojoGLES2Impl::ClearBufferiv(GLenum buffer
,
131 const GLint
* value
) {
132 NOTREACHED() << "Unimplemented ClearBufferiv.";
134 void MojoGLES2Impl::ClearBufferuiv(GLenum buffer
,
136 const GLuint
* value
) {
137 NOTREACHED() << "Unimplemented ClearBufferuiv.";
139 void MojoGLES2Impl::ClearColor(GLclampf red
,
143 MojoGLES2MakeCurrent(context_
);
144 glClearColor(red
, green
, blue
, alpha
);
146 void MojoGLES2Impl::ClearDepthf(GLclampf depth
) {
147 MojoGLES2MakeCurrent(context_
);
148 glClearDepthf(depth
);
150 void MojoGLES2Impl::ClearStencil(GLint s
) {
151 MojoGLES2MakeCurrent(context_
);
154 GLenum
MojoGLES2Impl::ClientWaitSync(GLsync sync
,
157 NOTREACHED() << "Unimplemented ClientWaitSync.";
160 void MojoGLES2Impl::ColorMask(GLboolean red
,
164 MojoGLES2MakeCurrent(context_
);
165 glColorMask(red
, green
, blue
, alpha
);
167 void MojoGLES2Impl::CompileShader(GLuint shader
) {
168 MojoGLES2MakeCurrent(context_
);
169 glCompileShader(shader
);
171 void MojoGLES2Impl::CompressedTexImage2D(GLenum target
,
173 GLenum internalformat
,
179 MojoGLES2MakeCurrent(context_
);
180 glCompressedTexImage2D(target
, level
, internalformat
, width
, height
, border
,
183 void MojoGLES2Impl::CompressedTexSubImage2D(GLenum target
,
192 MojoGLES2MakeCurrent(context_
);
193 glCompressedTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
,
194 format
, imageSize
, data
);
196 void MojoGLES2Impl::CompressedTexImage3D(GLenum target
,
198 GLenum internalformat
,
205 NOTREACHED() << "Unimplemented CompressedTexImage3D.";
207 void MojoGLES2Impl::CompressedTexSubImage3D(GLenum target
,
218 NOTREACHED() << "Unimplemented CompressedTexSubImage3D.";
220 void MojoGLES2Impl::CopyBufferSubData(GLenum readtarget
,
223 GLintptr writeoffset
,
225 NOTREACHED() << "Unimplemented CopyBufferSubData.";
227 void MojoGLES2Impl::CopyTexImage2D(GLenum target
,
229 GLenum internalformat
,
235 MojoGLES2MakeCurrent(context_
);
236 glCopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
, border
);
238 void MojoGLES2Impl::CopyTexSubImage2D(GLenum target
,
246 MojoGLES2MakeCurrent(context_
);
247 glCopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
249 void MojoGLES2Impl::CopyTexSubImage3D(GLenum target
,
258 NOTREACHED() << "Unimplemented CopyTexSubImage3D.";
260 GLuint
MojoGLES2Impl::CreateProgram() {
261 MojoGLES2MakeCurrent(context_
);
262 return glCreateProgram();
264 GLuint
MojoGLES2Impl::CreateShader(GLenum type
) {
265 MojoGLES2MakeCurrent(context_
);
266 return glCreateShader(type
);
268 void MojoGLES2Impl::CullFace(GLenum mode
) {
269 MojoGLES2MakeCurrent(context_
);
272 void MojoGLES2Impl::DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
273 MojoGLES2MakeCurrent(context_
);
274 glDeleteBuffers(n
, buffers
);
276 void MojoGLES2Impl::DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
277 MojoGLES2MakeCurrent(context_
);
278 glDeleteFramebuffers(n
, framebuffers
);
280 void MojoGLES2Impl::DeleteProgram(GLuint program
) {
281 MojoGLES2MakeCurrent(context_
);
282 glDeleteProgram(program
);
284 void MojoGLES2Impl::DeleteRenderbuffers(GLsizei n
,
285 const GLuint
* renderbuffers
) {
286 MojoGLES2MakeCurrent(context_
);
287 glDeleteRenderbuffers(n
, renderbuffers
);
289 void MojoGLES2Impl::DeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
290 NOTREACHED() << "Unimplemented DeleteSamplers.";
292 void MojoGLES2Impl::DeleteSync(GLsync sync
) {
293 NOTREACHED() << "Unimplemented DeleteSync.";
295 void MojoGLES2Impl::DeleteShader(GLuint shader
) {
296 MojoGLES2MakeCurrent(context_
);
297 glDeleteShader(shader
);
299 void MojoGLES2Impl::DeleteTextures(GLsizei n
, const GLuint
* textures
) {
300 MojoGLES2MakeCurrent(context_
);
301 glDeleteTextures(n
, textures
);
303 void MojoGLES2Impl::DeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
304 NOTREACHED() << "Unimplemented DeleteTransformFeedbacks.";
306 void MojoGLES2Impl::DepthFunc(GLenum func
) {
307 MojoGLES2MakeCurrent(context_
);
310 void MojoGLES2Impl::DepthMask(GLboolean flag
) {
311 MojoGLES2MakeCurrent(context_
);
314 void MojoGLES2Impl::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
315 MojoGLES2MakeCurrent(context_
);
316 glDepthRangef(zNear
, zFar
);
318 void MojoGLES2Impl::DetachShader(GLuint program
, GLuint shader
) {
319 MojoGLES2MakeCurrent(context_
);
320 glDetachShader(program
, shader
);
322 void MojoGLES2Impl::Disable(GLenum cap
) {
323 MojoGLES2MakeCurrent(context_
);
326 void MojoGLES2Impl::DisableVertexAttribArray(GLuint index
) {
327 MojoGLES2MakeCurrent(context_
);
328 glDisableVertexAttribArray(index
);
330 void MojoGLES2Impl::DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
331 MojoGLES2MakeCurrent(context_
);
332 glDrawArrays(mode
, first
, count
);
334 void MojoGLES2Impl::DrawElements(GLenum mode
,
337 const void* indices
) {
338 MojoGLES2MakeCurrent(context_
);
339 glDrawElements(mode
, count
, type
, indices
);
341 void MojoGLES2Impl::DrawRangeElements(GLenum mode
,
346 const void* indices
) {
347 NOTREACHED() << "Unimplemented DrawRangeElements.";
349 void MojoGLES2Impl::Enable(GLenum cap
) {
350 MojoGLES2MakeCurrent(context_
);
353 void MojoGLES2Impl::EnableVertexAttribArray(GLuint index
) {
354 MojoGLES2MakeCurrent(context_
);
355 glEnableVertexAttribArray(index
);
357 GLsync
MojoGLES2Impl::FenceSync(GLenum condition
, GLbitfield flags
) {
358 NOTREACHED() << "Unimplemented FenceSync.";
361 void MojoGLES2Impl::Finish() {
362 MojoGLES2MakeCurrent(context_
);
365 void MojoGLES2Impl::Flush() {
366 MojoGLES2MakeCurrent(context_
);
369 void MojoGLES2Impl::FramebufferRenderbuffer(GLenum target
,
371 GLenum renderbuffertarget
,
372 GLuint renderbuffer
) {
373 MojoGLES2MakeCurrent(context_
);
374 glFramebufferRenderbuffer(target
, attachment
, renderbuffertarget
,
377 void MojoGLES2Impl::FramebufferTexture2D(GLenum target
,
382 MojoGLES2MakeCurrent(context_
);
383 glFramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
385 void MojoGLES2Impl::FramebufferTextureLayer(GLenum target
,
390 NOTREACHED() << "Unimplemented FramebufferTextureLayer.";
392 void MojoGLES2Impl::FrontFace(GLenum mode
) {
393 MojoGLES2MakeCurrent(context_
);
396 void MojoGLES2Impl::GenBuffers(GLsizei n
, GLuint
* buffers
) {
397 MojoGLES2MakeCurrent(context_
);
398 glGenBuffers(n
, buffers
);
400 void MojoGLES2Impl::GenerateMipmap(GLenum target
) {
401 MojoGLES2MakeCurrent(context_
);
402 glGenerateMipmap(target
);
404 void MojoGLES2Impl::GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
405 MojoGLES2MakeCurrent(context_
);
406 glGenFramebuffers(n
, framebuffers
);
408 void MojoGLES2Impl::GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
409 MojoGLES2MakeCurrent(context_
);
410 glGenRenderbuffers(n
, renderbuffers
);
412 void MojoGLES2Impl::GenSamplers(GLsizei n
, GLuint
* samplers
) {
413 NOTREACHED() << "Unimplemented GenSamplers.";
415 void MojoGLES2Impl::GenTextures(GLsizei n
, GLuint
* textures
) {
416 MojoGLES2MakeCurrent(context_
);
417 glGenTextures(n
, textures
);
419 void MojoGLES2Impl::GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
420 NOTREACHED() << "Unimplemented GenTransformFeedbacks.";
422 void MojoGLES2Impl::GetActiveAttrib(GLuint program
,
429 MojoGLES2MakeCurrent(context_
);
430 glGetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
432 void MojoGLES2Impl::GetActiveUniform(GLuint program
,
439 MojoGLES2MakeCurrent(context_
);
440 glGetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
442 void MojoGLES2Impl::GetActiveUniformBlockiv(GLuint program
,
446 NOTREACHED() << "Unimplemented GetActiveUniformBlockiv.";
448 void MojoGLES2Impl::GetActiveUniformBlockName(GLuint program
,
453 NOTREACHED() << "Unimplemented GetActiveUniformBlockName.";
455 void MojoGLES2Impl::GetActiveUniformsiv(GLuint program
,
457 const GLuint
* indices
,
460 NOTREACHED() << "Unimplemented GetActiveUniformsiv.";
462 void MojoGLES2Impl::GetAttachedShaders(GLuint program
,
466 MojoGLES2MakeCurrent(context_
);
467 glGetAttachedShaders(program
, maxcount
, count
, shaders
);
469 GLint
MojoGLES2Impl::GetAttribLocation(GLuint program
, const char* name
) {
470 MojoGLES2MakeCurrent(context_
);
471 return glGetAttribLocation(program
, name
);
473 void MojoGLES2Impl::GetBooleanv(GLenum pname
, GLboolean
* params
) {
474 MojoGLES2MakeCurrent(context_
);
475 glGetBooleanv(pname
, params
);
477 void MojoGLES2Impl::GetBufferParameteriv(GLenum target
,
480 MojoGLES2MakeCurrent(context_
);
481 glGetBufferParameteriv(target
, pname
, params
);
483 GLenum
MojoGLES2Impl::GetError() {
484 MojoGLES2MakeCurrent(context_
);
487 void MojoGLES2Impl::GetFloatv(GLenum pname
, GLfloat
* params
) {
488 MojoGLES2MakeCurrent(context_
);
489 glGetFloatv(pname
, params
);
491 GLint
MojoGLES2Impl::GetFragDataLocation(GLuint program
, const char* name
) {
492 NOTREACHED() << "Unimplemented GetFragDataLocation.";
495 void MojoGLES2Impl::GetFramebufferAttachmentParameteriv(GLenum target
,
499 MojoGLES2MakeCurrent(context_
);
500 glGetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
502 void MojoGLES2Impl::GetInteger64v(GLenum pname
, GLint64
* params
) {
503 NOTREACHED() << "Unimplemented GetInteger64v.";
505 void MojoGLES2Impl::GetIntegeri_v(GLenum pname
, GLuint index
, GLint
* data
) {
506 NOTREACHED() << "Unimplemented GetIntegeri_v.";
508 void MojoGLES2Impl::GetInteger64i_v(GLenum pname
, GLuint index
, GLint64
* data
) {
509 NOTREACHED() << "Unimplemented GetInteger64i_v.";
511 void MojoGLES2Impl::GetIntegerv(GLenum pname
, GLint
* params
) {
512 MojoGLES2MakeCurrent(context_
);
513 glGetIntegerv(pname
, params
);
515 void MojoGLES2Impl::GetInternalformativ(GLenum target
,
520 NOTREACHED() << "Unimplemented GetInternalformativ.";
522 void MojoGLES2Impl::GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
523 MojoGLES2MakeCurrent(context_
);
524 glGetProgramiv(program
, pname
, params
);
526 void MojoGLES2Impl::GetProgramInfoLog(GLuint program
,
530 MojoGLES2MakeCurrent(context_
);
531 glGetProgramInfoLog(program
, bufsize
, length
, infolog
);
533 void MojoGLES2Impl::GetRenderbufferParameteriv(GLenum target
,
536 MojoGLES2MakeCurrent(context_
);
537 glGetRenderbufferParameteriv(target
, pname
, params
);
539 void MojoGLES2Impl::GetSamplerParameterfv(GLuint sampler
,
542 NOTREACHED() << "Unimplemented GetSamplerParameterfv.";
544 void MojoGLES2Impl::GetSamplerParameteriv(GLuint sampler
,
547 NOTREACHED() << "Unimplemented GetSamplerParameteriv.";
549 void MojoGLES2Impl::GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
550 MojoGLES2MakeCurrent(context_
);
551 glGetShaderiv(shader
, pname
, params
);
553 void MojoGLES2Impl::GetShaderInfoLog(GLuint shader
,
557 MojoGLES2MakeCurrent(context_
);
558 glGetShaderInfoLog(shader
, bufsize
, length
, infolog
);
560 void MojoGLES2Impl::GetShaderPrecisionFormat(GLenum shadertype
,
561 GLenum precisiontype
,
564 MojoGLES2MakeCurrent(context_
);
565 glGetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
567 void MojoGLES2Impl::GetShaderSource(GLuint shader
,
571 MojoGLES2MakeCurrent(context_
);
572 glGetShaderSource(shader
, bufsize
, length
, source
);
574 const GLubyte
* MojoGLES2Impl::GetString(GLenum name
) {
575 MojoGLES2MakeCurrent(context_
);
576 return glGetString(name
);
578 void MojoGLES2Impl::GetSynciv(GLsync sync
,
583 NOTREACHED() << "Unimplemented GetSynciv.";
585 void MojoGLES2Impl::GetTexParameterfv(GLenum target
,
588 MojoGLES2MakeCurrent(context_
);
589 glGetTexParameterfv(target
, pname
, params
);
591 void MojoGLES2Impl::GetTexParameteriv(GLenum target
,
594 MojoGLES2MakeCurrent(context_
);
595 glGetTexParameteriv(target
, pname
, params
);
597 void MojoGLES2Impl::GetTransformFeedbackVarying(GLuint program
,
604 NOTREACHED() << "Unimplemented GetTransformFeedbackVarying.";
606 GLuint
MojoGLES2Impl::GetUniformBlockIndex(GLuint program
, const char* name
) {
607 NOTREACHED() << "Unimplemented GetUniformBlockIndex.";
610 void MojoGLES2Impl::GetUniformfv(GLuint program
,
613 MojoGLES2MakeCurrent(context_
);
614 glGetUniformfv(program
, location
, params
);
616 void MojoGLES2Impl::GetUniformiv(GLuint program
,
619 MojoGLES2MakeCurrent(context_
);
620 glGetUniformiv(program
, location
, params
);
622 void MojoGLES2Impl::GetUniformuiv(GLuint program
,
625 NOTREACHED() << "Unimplemented GetUniformuiv.";
627 void MojoGLES2Impl::GetUniformIndices(GLuint program
,
629 const char* const* names
,
631 NOTREACHED() << "Unimplemented GetUniformIndices.";
633 GLint
MojoGLES2Impl::GetUniformLocation(GLuint program
, const char* name
) {
634 MojoGLES2MakeCurrent(context_
);
635 return glGetUniformLocation(program
, name
);
637 void MojoGLES2Impl::GetVertexAttribfv(GLuint index
,
640 MojoGLES2MakeCurrent(context_
);
641 glGetVertexAttribfv(index
, pname
, params
);
643 void MojoGLES2Impl::GetVertexAttribiv(GLuint index
,
646 MojoGLES2MakeCurrent(context_
);
647 glGetVertexAttribiv(index
, pname
, params
);
649 void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index
,
652 MojoGLES2MakeCurrent(context_
);
653 glGetVertexAttribPointerv(index
, pname
, pointer
);
655 void MojoGLES2Impl::Hint(GLenum target
, GLenum mode
) {
656 MojoGLES2MakeCurrent(context_
);
657 glHint(target
, mode
);
659 void MojoGLES2Impl::InvalidateFramebuffer(GLenum target
,
661 const GLenum
* attachments
) {
662 NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
664 void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target
,
666 const GLenum
* attachments
,
671 NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
673 GLboolean
MojoGLES2Impl::IsBuffer(GLuint buffer
) {
674 MojoGLES2MakeCurrent(context_
);
675 return glIsBuffer(buffer
);
677 GLboolean
MojoGLES2Impl::IsEnabled(GLenum cap
) {
678 MojoGLES2MakeCurrent(context_
);
679 return glIsEnabled(cap
);
681 GLboolean
MojoGLES2Impl::IsFramebuffer(GLuint framebuffer
) {
682 MojoGLES2MakeCurrent(context_
);
683 return glIsFramebuffer(framebuffer
);
685 GLboolean
MojoGLES2Impl::IsProgram(GLuint program
) {
686 MojoGLES2MakeCurrent(context_
);
687 return glIsProgram(program
);
689 GLboolean
MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer
) {
690 MojoGLES2MakeCurrent(context_
);
691 return glIsRenderbuffer(renderbuffer
);
693 GLboolean
MojoGLES2Impl::IsSampler(GLuint sampler
) {
694 NOTREACHED() << "Unimplemented IsSampler.";
697 GLboolean
MojoGLES2Impl::IsShader(GLuint shader
) {
698 MojoGLES2MakeCurrent(context_
);
699 return glIsShader(shader
);
701 GLboolean
MojoGLES2Impl::IsSync(GLsync sync
) {
702 NOTREACHED() << "Unimplemented IsSync.";
705 GLboolean
MojoGLES2Impl::IsTexture(GLuint texture
) {
706 MojoGLES2MakeCurrent(context_
);
707 return glIsTexture(texture
);
709 GLboolean
MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback
) {
710 NOTREACHED() << "Unimplemented IsTransformFeedback.";
713 void MojoGLES2Impl::LineWidth(GLfloat width
) {
714 MojoGLES2MakeCurrent(context_
);
717 void MojoGLES2Impl::LinkProgram(GLuint program
) {
718 MojoGLES2MakeCurrent(context_
);
719 glLinkProgram(program
);
721 void MojoGLES2Impl::PauseTransformFeedback() {
722 NOTREACHED() << "Unimplemented PauseTransformFeedback.";
724 void MojoGLES2Impl::PixelStorei(GLenum pname
, GLint param
) {
725 MojoGLES2MakeCurrent(context_
);
726 glPixelStorei(pname
, param
);
728 void MojoGLES2Impl::PolygonOffset(GLfloat factor
, GLfloat units
) {
729 MojoGLES2MakeCurrent(context_
);
730 glPolygonOffset(factor
, units
);
732 void MojoGLES2Impl::ReadBuffer(GLenum src
) {
733 NOTREACHED() << "Unimplemented ReadBuffer.";
735 void MojoGLES2Impl::ReadPixels(GLint x
,
742 MojoGLES2MakeCurrent(context_
);
743 glReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
745 void MojoGLES2Impl::ReleaseShaderCompiler() {
746 MojoGLES2MakeCurrent(context_
);
747 glReleaseShaderCompiler();
749 void MojoGLES2Impl::RenderbufferStorage(GLenum target
,
750 GLenum internalformat
,
753 MojoGLES2MakeCurrent(context_
);
754 glRenderbufferStorage(target
, internalformat
, width
, height
);
756 void MojoGLES2Impl::ResumeTransformFeedback() {
757 NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
759 void MojoGLES2Impl::SampleCoverage(GLclampf value
, GLboolean invert
) {
760 MojoGLES2MakeCurrent(context_
);
761 glSampleCoverage(value
, invert
);
763 void MojoGLES2Impl::SamplerParameterf(GLuint sampler
,
766 NOTREACHED() << "Unimplemented SamplerParameterf.";
768 void MojoGLES2Impl::SamplerParameterfv(GLuint sampler
,
770 const GLfloat
* params
) {
771 NOTREACHED() << "Unimplemented SamplerParameterfv.";
773 void MojoGLES2Impl::SamplerParameteri(GLuint sampler
,
776 NOTREACHED() << "Unimplemented SamplerParameteri.";
778 void MojoGLES2Impl::SamplerParameteriv(GLuint sampler
,
780 const GLint
* params
) {
781 NOTREACHED() << "Unimplemented SamplerParameteriv.";
783 void MojoGLES2Impl::Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
784 MojoGLES2MakeCurrent(context_
);
785 glScissor(x
, y
, width
, height
);
787 void MojoGLES2Impl::ShaderBinary(GLsizei n
,
788 const GLuint
* shaders
,
792 MojoGLES2MakeCurrent(context_
);
793 glShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
795 void MojoGLES2Impl::ShaderSource(GLuint shader
,
797 const GLchar
* const* str
,
798 const GLint
* length
) {
799 MojoGLES2MakeCurrent(context_
);
800 glShaderSource(shader
, count
, str
, length
);
802 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
803 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM.";
805 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
806 MojoGLES2MakeCurrent(context_
);
807 glShallowFlushCHROMIUM();
809 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
810 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM.";
812 void MojoGLES2Impl::StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
813 MojoGLES2MakeCurrent(context_
);
814 glStencilFunc(func
, ref
, mask
);
816 void MojoGLES2Impl::StencilFuncSeparate(GLenum face
,
820 MojoGLES2MakeCurrent(context_
);
821 glStencilFuncSeparate(face
, func
, ref
, mask
);
823 void MojoGLES2Impl::StencilMask(GLuint mask
) {
824 MojoGLES2MakeCurrent(context_
);
827 void MojoGLES2Impl::StencilMaskSeparate(GLenum face
, GLuint mask
) {
828 MojoGLES2MakeCurrent(context_
);
829 glStencilMaskSeparate(face
, mask
);
831 void MojoGLES2Impl::StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
832 MojoGLES2MakeCurrent(context_
);
833 glStencilOp(fail
, zfail
, zpass
);
835 void MojoGLES2Impl::StencilOpSeparate(GLenum face
,
839 MojoGLES2MakeCurrent(context_
);
840 glStencilOpSeparate(face
, fail
, zfail
, zpass
);
842 void MojoGLES2Impl::TexImage2D(GLenum target
,
844 GLint internalformat
,
850 const void* pixels
) {
851 MojoGLES2MakeCurrent(context_
);
852 glTexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
855 void MojoGLES2Impl::TexImage3D(GLenum target
,
857 GLint internalformat
,
864 const void* pixels
) {
865 NOTREACHED() << "Unimplemented TexImage3D.";
867 void MojoGLES2Impl::TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
868 MojoGLES2MakeCurrent(context_
);
869 glTexParameterf(target
, pname
, param
);
871 void MojoGLES2Impl::TexParameterfv(GLenum target
,
873 const GLfloat
* params
) {
874 MojoGLES2MakeCurrent(context_
);
875 glTexParameterfv(target
, pname
, params
);
877 void MojoGLES2Impl::TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
878 MojoGLES2MakeCurrent(context_
);
879 glTexParameteri(target
, pname
, param
);
881 void MojoGLES2Impl::TexParameteriv(GLenum target
,
883 const GLint
* params
) {
884 MojoGLES2MakeCurrent(context_
);
885 glTexParameteriv(target
, pname
, params
);
887 void MojoGLES2Impl::TexStorage3D(GLenum target
,
889 GLenum internalFormat
,
893 NOTREACHED() << "Unimplemented TexStorage3D.";
895 void MojoGLES2Impl::TexSubImage2D(GLenum target
,
903 const void* pixels
) {
904 MojoGLES2MakeCurrent(context_
);
905 glTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
908 void MojoGLES2Impl::TexSubImage3D(GLenum target
,
918 const void* pixels
) {
919 NOTREACHED() << "Unimplemented TexSubImage3D.";
921 void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program
,
923 const char* const* varyings
,
925 NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
927 void MojoGLES2Impl::Uniform1f(GLint location
, GLfloat x
) {
928 MojoGLES2MakeCurrent(context_
);
929 glUniform1f(location
, x
);
931 void MojoGLES2Impl::Uniform1fv(GLint location
,
934 MojoGLES2MakeCurrent(context_
);
935 glUniform1fv(location
, count
, v
);
937 void MojoGLES2Impl::Uniform1i(GLint location
, GLint x
) {
938 MojoGLES2MakeCurrent(context_
);
939 glUniform1i(location
, x
);
941 void MojoGLES2Impl::Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
942 MojoGLES2MakeCurrent(context_
);
943 glUniform1iv(location
, count
, v
);
945 void MojoGLES2Impl::Uniform1ui(GLint location
, GLuint x
) {
946 NOTREACHED() << "Unimplemented Uniform1ui.";
948 void MojoGLES2Impl::Uniform1uiv(GLint location
,
951 NOTREACHED() << "Unimplemented Uniform1uiv.";
953 void MojoGLES2Impl::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
954 MojoGLES2MakeCurrent(context_
);
955 glUniform2f(location
, x
, y
);
957 void MojoGLES2Impl::Uniform2fv(GLint location
,
960 MojoGLES2MakeCurrent(context_
);
961 glUniform2fv(location
, count
, v
);
963 void MojoGLES2Impl::Uniform2i(GLint location
, GLint x
, GLint y
) {
964 MojoGLES2MakeCurrent(context_
);
965 glUniform2i(location
, x
, y
);
967 void MojoGLES2Impl::Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
968 MojoGLES2MakeCurrent(context_
);
969 glUniform2iv(location
, count
, v
);
971 void MojoGLES2Impl::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
972 NOTREACHED() << "Unimplemented Uniform2ui.";
974 void MojoGLES2Impl::Uniform2uiv(GLint location
,
977 NOTREACHED() << "Unimplemented Uniform2uiv.";
979 void MojoGLES2Impl::Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
980 MojoGLES2MakeCurrent(context_
);
981 glUniform3f(location
, x
, y
, z
);
983 void MojoGLES2Impl::Uniform3fv(GLint location
,
986 MojoGLES2MakeCurrent(context_
);
987 glUniform3fv(location
, count
, v
);
989 void MojoGLES2Impl::Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
990 MojoGLES2MakeCurrent(context_
);
991 glUniform3i(location
, x
, y
, z
);
993 void MojoGLES2Impl::Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
994 MojoGLES2MakeCurrent(context_
);
995 glUniform3iv(location
, count
, v
);
997 void MojoGLES2Impl::Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
998 NOTREACHED() << "Unimplemented Uniform3ui.";
1000 void MojoGLES2Impl::Uniform3uiv(GLint location
,
1003 NOTREACHED() << "Unimplemented Uniform3uiv.";
1005 void MojoGLES2Impl::Uniform4f(GLint location
,
1010 MojoGLES2MakeCurrent(context_
);
1011 glUniform4f(location
, x
, y
, z
, w
);
1013 void MojoGLES2Impl::Uniform4fv(GLint location
,
1016 MojoGLES2MakeCurrent(context_
);
1017 glUniform4fv(location
, count
, v
);
1019 void MojoGLES2Impl::Uniform4i(GLint location
,
1024 MojoGLES2MakeCurrent(context_
);
1025 glUniform4i(location
, x
, y
, z
, w
);
1027 void MojoGLES2Impl::Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
1028 MojoGLES2MakeCurrent(context_
);
1029 glUniform4iv(location
, count
, v
);
1031 void MojoGLES2Impl::Uniform4ui(GLint location
,
1036 NOTREACHED() << "Unimplemented Uniform4ui.";
1038 void MojoGLES2Impl::Uniform4uiv(GLint location
,
1041 NOTREACHED() << "Unimplemented Uniform4uiv.";
1043 void MojoGLES2Impl::UniformBlockBinding(GLuint program
,
1046 NOTREACHED() << "Unimplemented UniformBlockBinding.";
1048 void MojoGLES2Impl::UniformMatrix2fv(GLint location
,
1050 GLboolean transpose
,
1051 const GLfloat
* value
) {
1052 MojoGLES2MakeCurrent(context_
);
1053 glUniformMatrix2fv(location
, count
, transpose
, value
);
1055 void MojoGLES2Impl::UniformMatrix2x3fv(GLint location
,
1057 GLboolean transpose
,
1058 const GLfloat
* value
) {
1059 NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
1061 void MojoGLES2Impl::UniformMatrix2x4fv(GLint location
,
1063 GLboolean transpose
,
1064 const GLfloat
* value
) {
1065 NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
1067 void MojoGLES2Impl::UniformMatrix3fv(GLint location
,
1069 GLboolean transpose
,
1070 const GLfloat
* value
) {
1071 MojoGLES2MakeCurrent(context_
);
1072 glUniformMatrix3fv(location
, count
, transpose
, value
);
1074 void MojoGLES2Impl::UniformMatrix3x2fv(GLint location
,
1076 GLboolean transpose
,
1077 const GLfloat
* value
) {
1078 NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
1080 void MojoGLES2Impl::UniformMatrix3x4fv(GLint location
,
1082 GLboolean transpose
,
1083 const GLfloat
* value
) {
1084 NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
1086 void MojoGLES2Impl::UniformMatrix4fv(GLint location
,
1088 GLboolean transpose
,
1089 const GLfloat
* value
) {
1090 MojoGLES2MakeCurrent(context_
);
1091 glUniformMatrix4fv(location
, count
, transpose
, value
);
1093 void MojoGLES2Impl::UniformMatrix4x2fv(GLint location
,
1095 GLboolean transpose
,
1096 const GLfloat
* value
) {
1097 NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
1099 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location
,
1101 GLboolean transpose
,
1102 const GLfloat
* value
) {
1103 NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
1105 void MojoGLES2Impl::UseProgram(GLuint program
) {
1106 MojoGLES2MakeCurrent(context_
);
1107 glUseProgram(program
);
1109 void MojoGLES2Impl::ValidateProgram(GLuint program
) {
1110 MojoGLES2MakeCurrent(context_
);
1111 glValidateProgram(program
);
1113 void MojoGLES2Impl::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1114 MojoGLES2MakeCurrent(context_
);
1115 glVertexAttrib1f(indx
, x
);
1117 void MojoGLES2Impl::VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
1118 MojoGLES2MakeCurrent(context_
);
1119 glVertexAttrib1fv(indx
, values
);
1121 void MojoGLES2Impl::VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
1122 MojoGLES2MakeCurrent(context_
);
1123 glVertexAttrib2f(indx
, x
, y
);
1125 void MojoGLES2Impl::VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
1126 MojoGLES2MakeCurrent(context_
);
1127 glVertexAttrib2fv(indx
, values
);
1129 void MojoGLES2Impl::VertexAttrib3f(GLuint indx
,
1133 MojoGLES2MakeCurrent(context_
);
1134 glVertexAttrib3f(indx
, x
, y
, z
);
1136 void MojoGLES2Impl::VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
1137 MojoGLES2MakeCurrent(context_
);
1138 glVertexAttrib3fv(indx
, values
);
1140 void MojoGLES2Impl::VertexAttrib4f(GLuint indx
,
1145 MojoGLES2MakeCurrent(context_
);
1146 glVertexAttrib4f(indx
, x
, y
, z
, w
);
1148 void MojoGLES2Impl::VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
1149 MojoGLES2MakeCurrent(context_
);
1150 glVertexAttrib4fv(indx
, values
);
1152 void MojoGLES2Impl::VertexAttribI4i(GLuint indx
,
1157 NOTREACHED() << "Unimplemented VertexAttribI4i.";
1159 void MojoGLES2Impl::VertexAttribI4iv(GLuint indx
, const GLint
* values
) {
1160 NOTREACHED() << "Unimplemented VertexAttribI4iv.";
1162 void MojoGLES2Impl::VertexAttribI4ui(GLuint indx
,
1167 NOTREACHED() << "Unimplemented VertexAttribI4ui.";
1169 void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
1170 NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
1172 void MojoGLES2Impl::VertexAttribIPointer(GLuint indx
,
1177 NOTREACHED() << "Unimplemented VertexAttribIPointer.";
1179 void MojoGLES2Impl::VertexAttribPointer(GLuint indx
,
1182 GLboolean normalized
,
1185 MojoGLES2MakeCurrent(context_
);
1186 glVertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1188 void MojoGLES2Impl::Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1189 MojoGLES2MakeCurrent(context_
);
1190 glViewport(x
, y
, width
, height
);
1192 void MojoGLES2Impl::WaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
1193 NOTREACHED() << "Unimplemented WaitSync.";
1195 void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0
,
1205 NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
1207 void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
1210 GLenum internalformat
,
1213 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
1215 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target
,
1217 GLenum internalformat
,
1220 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT.";
1222 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target
,
1228 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
1230 void MojoGLES2Impl::TexStorage2DEXT(GLenum target
,
1232 GLenum internalFormat
,
1235 NOTREACHED() << "Unimplemented TexStorage2DEXT.";
1237 void MojoGLES2Impl::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1238 MojoGLES2MakeCurrent(context_
);
1239 glGenQueriesEXT(n
, queries
);
1241 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
1242 MojoGLES2MakeCurrent(context_
);
1243 glDeleteQueriesEXT(n
, queries
);
1245 GLboolean
MojoGLES2Impl::IsQueryEXT(GLuint id
) {
1246 MojoGLES2MakeCurrent(context_
);
1247 return glIsQueryEXT(id
);
1249 void MojoGLES2Impl::BeginQueryEXT(GLenum target
, GLuint id
) {
1250 MojoGLES2MakeCurrent(context_
);
1251 glBeginQueryEXT(target
, id
);
1253 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode
) {
1254 NOTREACHED() << "Unimplemented BeginTransformFeedback.";
1256 void MojoGLES2Impl::EndQueryEXT(GLenum target
) {
1257 MojoGLES2MakeCurrent(context_
);
1258 glEndQueryEXT(target
);
1260 void MojoGLES2Impl::EndTransformFeedback() {
1261 NOTREACHED() << "Unimplemented EndTransformFeedback.";
1263 void MojoGLES2Impl::GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
1264 MojoGLES2MakeCurrent(context_
);
1265 glGetQueryivEXT(target
, pname
, params
);
1267 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id
,
1270 MojoGLES2MakeCurrent(context_
);
1271 glGetQueryObjectuivEXT(id
, pname
, params
);
1273 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1274 NOTREACHED() << "Unimplemented InsertEventMarkerEXT.";
1276 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1277 NOTREACHED() << "Unimplemented PushGroupMarkerEXT.";
1279 void MojoGLES2Impl::PopGroupMarkerEXT() {
1280 NOTREACHED() << "Unimplemented PopGroupMarkerEXT.";
1282 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1283 NOTREACHED() << "Unimplemented GenVertexArraysOES.";
1285 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
1286 NOTREACHED() << "Unimplemented DeleteVertexArraysOES.";
1288 GLboolean
MojoGLES2Impl::IsVertexArrayOES(GLuint array
) {
1289 NOTREACHED() << "Unimplemented IsVertexArrayOES.";
1292 void MojoGLES2Impl::BindVertexArrayOES(GLuint array
) {
1293 NOTREACHED() << "Unimplemented BindVertexArrayOES.";
1295 void MojoGLES2Impl::SwapBuffers() {
1296 NOTREACHED() << "Unimplemented SwapBuffers.";
1298 GLuint
MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1302 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
1305 GLboolean
MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature
) {
1306 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
1309 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target
, GLenum access
) {
1310 NOTREACHED() << "Unimplemented MapBufferCHROMIUM.";
1313 GLboolean
MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target
) {
1314 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM.";
1317 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target
,
1321 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM.";
1324 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1325 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM.";
1327 void* MojoGLES2Impl::MapBufferRange(GLenum target
,
1330 GLbitfield access
) {
1331 NOTREACHED() << "Unimplemented MapBufferRange.";
1334 GLboolean
MojoGLES2Impl::UnmapBuffer(GLenum target
) {
1335 NOTREACHED() << "Unimplemented UnmapBuffer.";
1338 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target
,
1347 MojoGLES2MakeCurrent(context_
);
1348 return glMapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1349 height
, format
, type
, access
);
1351 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1352 MojoGLES2MakeCurrent(context_
);
1353 glUnmapTexSubImage2DCHROMIUM(mem
);
1355 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width
,
1357 GLfloat scale_factor
) {
1358 NOTREACHED() << "Unimplemented ResizeCHROMIUM.";
1360 const GLchar
* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1361 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM.";
1364 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension
) {
1365 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM.";
1367 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
1368 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM.";
1370 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program
,
1374 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM.";
1376 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program
,
1380 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1382 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program
,
1386 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1388 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program
,
1392 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1394 GLuint
MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture
) {
1395 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM.";
1398 GLuint
MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer
,
1401 GLenum internalformat
) {
1402 NOTREACHED() << "Unimplemented CreateImageCHROMIUM.";
1405 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id
) {
1406 NOTREACHED() << "Unimplemented DestroyImageCHROMIUM.";
1408 GLuint
MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
1410 GLenum internalformat
,
1412 NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM.";
1415 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader
,
1419 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE.";
1421 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x
,
1425 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM.";
1427 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target
,
1432 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM.";
1434 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target
,
1437 GLint internalformat
,
1439 NOTREACHED() << "Unimplemented CopyTextureCHROMIUM.";
1441 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target
,
1446 NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM.";
1448 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode
,
1451 GLsizei primcount
) {
1452 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE.";
1454 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode
,
1457 const void* indices
,
1458 GLsizei primcount
) {
1459 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE.";
1461 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1462 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE.";
1464 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1465 MojoGLES2MakeCurrent(context_
);
1466 glGenMailboxCHROMIUM(mailbox
);
1468 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target
,
1469 const GLbyte
* mailbox
) {
1470 MojoGLES2MakeCurrent(context_
);
1471 glProduceTextureCHROMIUM(target
, mailbox
);
1473 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture
,
1475 const GLbyte
* mailbox
) {
1476 MojoGLES2MakeCurrent(context_
);
1477 glProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1479 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target
,
1480 const GLbyte
* mailbox
) {
1481 MojoGLES2MakeCurrent(context_
);
1482 glConsumeTextureCHROMIUM(target
, mailbox
);
1484 GLuint
MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target
,
1485 const GLbyte
* mailbox
) {
1486 MojoGLES2MakeCurrent(context_
);
1487 return glCreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1489 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program
,
1492 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM.";
1494 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
1495 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM.";
1497 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n
,
1498 const GLuint
* valuebuffers
) {
1499 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM.";
1501 GLboolean
MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1502 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM.";
1505 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
1506 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM.";
1508 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
1509 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM.";
1511 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1512 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM.";
1514 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location
,
1516 GLenum subscription
) {
1517 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM.";
1519 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1520 NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM.";
1522 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1523 NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM.";
1525 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name
,
1526 const char* trace_name
) {
1527 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM.";
1529 void MojoGLES2Impl::TraceEndCHROMIUM() {
1530 NOTREACHED() << "Unimplemented TraceEndCHROMIUM.";
1532 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target
,
1541 NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM.";
1543 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target
,
1545 GLenum internalformat
,
1551 const void* pixels
) {
1552 NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM.";
1554 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1555 NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM.";
1557 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() {
1558 NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM.";
1560 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target
,
1562 const GLenum
* attachments
) {
1563 NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
1565 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1566 NOTREACHED() << "Unimplemented LoseContextCHROMIUM.";
1568 GLuint
MojoGLES2Impl::InsertSyncPointCHROMIUM() {
1569 MojoGLES2MakeCurrent(context_
);
1570 return glInsertSyncPointCHROMIUM();
1572 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point
) {
1573 MojoGLES2MakeCurrent(context_
);
1574 glWaitSyncPointCHROMIUM(sync_point
);
1576 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1577 NOTREACHED() << "Unimplemented DrawBuffersEXT.";
1579 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
1580 NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM.";
1582 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1583 GLenum plane_transform
,
1584 GLuint overlay_texture_id
,
1588 GLint bounds_height
,
1592 GLfloat uv_height
) {
1593 NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM.";
1595 void MojoGLES2Impl::SwapInterval(GLint interval
) {
1596 NOTREACHED() << "Unimplemented SwapInterval.";
1598 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
1599 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
1601 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1602 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
1604 void MojoGLES2Impl::BlendBarrierKHR() {
1605 NOTREACHED() << "Unimplemented BlendBarrierKHR.";