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::GetVertexAttribIiv(GLuint index
,
652 NOTREACHED() << "Unimplemented GetVertexAttribIiv.";
654 void MojoGLES2Impl::GetVertexAttribIuiv(GLuint index
,
657 NOTREACHED() << "Unimplemented GetVertexAttribIuiv.";
659 void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index
,
662 MojoGLES2MakeCurrent(context_
);
663 glGetVertexAttribPointerv(index
, pname
, pointer
);
665 void MojoGLES2Impl::Hint(GLenum target
, GLenum mode
) {
666 MojoGLES2MakeCurrent(context_
);
667 glHint(target
, mode
);
669 void MojoGLES2Impl::InvalidateFramebuffer(GLenum target
,
671 const GLenum
* attachments
) {
672 NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
674 void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target
,
676 const GLenum
* attachments
,
681 NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
683 GLboolean
MojoGLES2Impl::IsBuffer(GLuint buffer
) {
684 MojoGLES2MakeCurrent(context_
);
685 return glIsBuffer(buffer
);
687 GLboolean
MojoGLES2Impl::IsEnabled(GLenum cap
) {
688 MojoGLES2MakeCurrent(context_
);
689 return glIsEnabled(cap
);
691 GLboolean
MojoGLES2Impl::IsFramebuffer(GLuint framebuffer
) {
692 MojoGLES2MakeCurrent(context_
);
693 return glIsFramebuffer(framebuffer
);
695 GLboolean
MojoGLES2Impl::IsProgram(GLuint program
) {
696 MojoGLES2MakeCurrent(context_
);
697 return glIsProgram(program
);
699 GLboolean
MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer
) {
700 MojoGLES2MakeCurrent(context_
);
701 return glIsRenderbuffer(renderbuffer
);
703 GLboolean
MojoGLES2Impl::IsSampler(GLuint sampler
) {
704 NOTREACHED() << "Unimplemented IsSampler.";
707 GLboolean
MojoGLES2Impl::IsShader(GLuint shader
) {
708 MojoGLES2MakeCurrent(context_
);
709 return glIsShader(shader
);
711 GLboolean
MojoGLES2Impl::IsSync(GLsync sync
) {
712 NOTREACHED() << "Unimplemented IsSync.";
715 GLboolean
MojoGLES2Impl::IsTexture(GLuint texture
) {
716 MojoGLES2MakeCurrent(context_
);
717 return glIsTexture(texture
);
719 GLboolean
MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback
) {
720 NOTREACHED() << "Unimplemented IsTransformFeedback.";
723 void MojoGLES2Impl::LineWidth(GLfloat width
) {
724 MojoGLES2MakeCurrent(context_
);
727 void MojoGLES2Impl::LinkProgram(GLuint program
) {
728 MojoGLES2MakeCurrent(context_
);
729 glLinkProgram(program
);
731 void MojoGLES2Impl::PauseTransformFeedback() {
732 NOTREACHED() << "Unimplemented PauseTransformFeedback.";
734 void MojoGLES2Impl::PixelStorei(GLenum pname
, GLint param
) {
735 MojoGLES2MakeCurrent(context_
);
736 glPixelStorei(pname
, param
);
738 void MojoGLES2Impl::PolygonOffset(GLfloat factor
, GLfloat units
) {
739 MojoGLES2MakeCurrent(context_
);
740 glPolygonOffset(factor
, units
);
742 void MojoGLES2Impl::ReadBuffer(GLenum src
) {
743 NOTREACHED() << "Unimplemented ReadBuffer.";
745 void MojoGLES2Impl::ReadPixels(GLint x
,
752 MojoGLES2MakeCurrent(context_
);
753 glReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
755 void MojoGLES2Impl::ReleaseShaderCompiler() {
756 MojoGLES2MakeCurrent(context_
);
757 glReleaseShaderCompiler();
759 void MojoGLES2Impl::RenderbufferStorage(GLenum target
,
760 GLenum internalformat
,
763 MojoGLES2MakeCurrent(context_
);
764 glRenderbufferStorage(target
, internalformat
, width
, height
);
766 void MojoGLES2Impl::ResumeTransformFeedback() {
767 NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
769 void MojoGLES2Impl::SampleCoverage(GLclampf value
, GLboolean invert
) {
770 MojoGLES2MakeCurrent(context_
);
771 glSampleCoverage(value
, invert
);
773 void MojoGLES2Impl::SamplerParameterf(GLuint sampler
,
776 NOTREACHED() << "Unimplemented SamplerParameterf.";
778 void MojoGLES2Impl::SamplerParameterfv(GLuint sampler
,
780 const GLfloat
* params
) {
781 NOTREACHED() << "Unimplemented SamplerParameterfv.";
783 void MojoGLES2Impl::SamplerParameteri(GLuint sampler
,
786 NOTREACHED() << "Unimplemented SamplerParameteri.";
788 void MojoGLES2Impl::SamplerParameteriv(GLuint sampler
,
790 const GLint
* params
) {
791 NOTREACHED() << "Unimplemented SamplerParameteriv.";
793 void MojoGLES2Impl::Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
794 MojoGLES2MakeCurrent(context_
);
795 glScissor(x
, y
, width
, height
);
797 void MojoGLES2Impl::ShaderBinary(GLsizei n
,
798 const GLuint
* shaders
,
802 MojoGLES2MakeCurrent(context_
);
803 glShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
805 void MojoGLES2Impl::ShaderSource(GLuint shader
,
807 const GLchar
* const* str
,
808 const GLint
* length
) {
809 MojoGLES2MakeCurrent(context_
);
810 glShaderSource(shader
, count
, str
, length
);
812 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
813 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM.";
815 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
816 MojoGLES2MakeCurrent(context_
);
817 glShallowFlushCHROMIUM();
819 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
820 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM.";
822 void MojoGLES2Impl::StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
823 MojoGLES2MakeCurrent(context_
);
824 glStencilFunc(func
, ref
, mask
);
826 void MojoGLES2Impl::StencilFuncSeparate(GLenum face
,
830 MojoGLES2MakeCurrent(context_
);
831 glStencilFuncSeparate(face
, func
, ref
, mask
);
833 void MojoGLES2Impl::StencilMask(GLuint mask
) {
834 MojoGLES2MakeCurrent(context_
);
837 void MojoGLES2Impl::StencilMaskSeparate(GLenum face
, GLuint mask
) {
838 MojoGLES2MakeCurrent(context_
);
839 glStencilMaskSeparate(face
, mask
);
841 void MojoGLES2Impl::StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
842 MojoGLES2MakeCurrent(context_
);
843 glStencilOp(fail
, zfail
, zpass
);
845 void MojoGLES2Impl::StencilOpSeparate(GLenum face
,
849 MojoGLES2MakeCurrent(context_
);
850 glStencilOpSeparate(face
, fail
, zfail
, zpass
);
852 void MojoGLES2Impl::TexImage2D(GLenum target
,
854 GLint internalformat
,
860 const void* pixels
) {
861 MojoGLES2MakeCurrent(context_
);
862 glTexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
865 void MojoGLES2Impl::TexImage3D(GLenum target
,
867 GLint internalformat
,
874 const void* pixels
) {
875 NOTREACHED() << "Unimplemented TexImage3D.";
877 void MojoGLES2Impl::TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
878 MojoGLES2MakeCurrent(context_
);
879 glTexParameterf(target
, pname
, param
);
881 void MojoGLES2Impl::TexParameterfv(GLenum target
,
883 const GLfloat
* params
) {
884 MojoGLES2MakeCurrent(context_
);
885 glTexParameterfv(target
, pname
, params
);
887 void MojoGLES2Impl::TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
888 MojoGLES2MakeCurrent(context_
);
889 glTexParameteri(target
, pname
, param
);
891 void MojoGLES2Impl::TexParameteriv(GLenum target
,
893 const GLint
* params
) {
894 MojoGLES2MakeCurrent(context_
);
895 glTexParameteriv(target
, pname
, params
);
897 void MojoGLES2Impl::TexStorage3D(GLenum target
,
899 GLenum internalFormat
,
903 NOTREACHED() << "Unimplemented TexStorage3D.";
905 void MojoGLES2Impl::TexSubImage2D(GLenum target
,
913 const void* pixels
) {
914 MojoGLES2MakeCurrent(context_
);
915 glTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
918 void MojoGLES2Impl::TexSubImage3D(GLenum target
,
928 const void* pixels
) {
929 NOTREACHED() << "Unimplemented TexSubImage3D.";
931 void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program
,
933 const char* const* varyings
,
935 NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
937 void MojoGLES2Impl::Uniform1f(GLint location
, GLfloat x
) {
938 MojoGLES2MakeCurrent(context_
);
939 glUniform1f(location
, x
);
941 void MojoGLES2Impl::Uniform1fv(GLint location
,
944 MojoGLES2MakeCurrent(context_
);
945 glUniform1fv(location
, count
, v
);
947 void MojoGLES2Impl::Uniform1i(GLint location
, GLint x
) {
948 MojoGLES2MakeCurrent(context_
);
949 glUniform1i(location
, x
);
951 void MojoGLES2Impl::Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
952 MojoGLES2MakeCurrent(context_
);
953 glUniform1iv(location
, count
, v
);
955 void MojoGLES2Impl::Uniform1ui(GLint location
, GLuint x
) {
956 NOTREACHED() << "Unimplemented Uniform1ui.";
958 void MojoGLES2Impl::Uniform1uiv(GLint location
,
961 NOTREACHED() << "Unimplemented Uniform1uiv.";
963 void MojoGLES2Impl::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
964 MojoGLES2MakeCurrent(context_
);
965 glUniform2f(location
, x
, y
);
967 void MojoGLES2Impl::Uniform2fv(GLint location
,
970 MojoGLES2MakeCurrent(context_
);
971 glUniform2fv(location
, count
, v
);
973 void MojoGLES2Impl::Uniform2i(GLint location
, GLint x
, GLint y
) {
974 MojoGLES2MakeCurrent(context_
);
975 glUniform2i(location
, x
, y
);
977 void MojoGLES2Impl::Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
978 MojoGLES2MakeCurrent(context_
);
979 glUniform2iv(location
, count
, v
);
981 void MojoGLES2Impl::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
982 NOTREACHED() << "Unimplemented Uniform2ui.";
984 void MojoGLES2Impl::Uniform2uiv(GLint location
,
987 NOTREACHED() << "Unimplemented Uniform2uiv.";
989 void MojoGLES2Impl::Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
990 MojoGLES2MakeCurrent(context_
);
991 glUniform3f(location
, x
, y
, z
);
993 void MojoGLES2Impl::Uniform3fv(GLint location
,
996 MojoGLES2MakeCurrent(context_
);
997 glUniform3fv(location
, count
, v
);
999 void MojoGLES2Impl::Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1000 MojoGLES2MakeCurrent(context_
);
1001 glUniform3i(location
, x
, y
, z
);
1003 void MojoGLES2Impl::Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
1004 MojoGLES2MakeCurrent(context_
);
1005 glUniform3iv(location
, count
, v
);
1007 void MojoGLES2Impl::Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
1008 NOTREACHED() << "Unimplemented Uniform3ui.";
1010 void MojoGLES2Impl::Uniform3uiv(GLint location
,
1013 NOTREACHED() << "Unimplemented Uniform3uiv.";
1015 void MojoGLES2Impl::Uniform4f(GLint location
,
1020 MojoGLES2MakeCurrent(context_
);
1021 glUniform4f(location
, x
, y
, z
, w
);
1023 void MojoGLES2Impl::Uniform4fv(GLint location
,
1026 MojoGLES2MakeCurrent(context_
);
1027 glUniform4fv(location
, count
, v
);
1029 void MojoGLES2Impl::Uniform4i(GLint location
,
1034 MojoGLES2MakeCurrent(context_
);
1035 glUniform4i(location
, x
, y
, z
, w
);
1037 void MojoGLES2Impl::Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
1038 MojoGLES2MakeCurrent(context_
);
1039 glUniform4iv(location
, count
, v
);
1041 void MojoGLES2Impl::Uniform4ui(GLint location
,
1046 NOTREACHED() << "Unimplemented Uniform4ui.";
1048 void MojoGLES2Impl::Uniform4uiv(GLint location
,
1051 NOTREACHED() << "Unimplemented Uniform4uiv.";
1053 void MojoGLES2Impl::UniformBlockBinding(GLuint program
,
1056 NOTREACHED() << "Unimplemented UniformBlockBinding.";
1058 void MojoGLES2Impl::UniformMatrix2fv(GLint location
,
1060 GLboolean transpose
,
1061 const GLfloat
* value
) {
1062 MojoGLES2MakeCurrent(context_
);
1063 glUniformMatrix2fv(location
, count
, transpose
, value
);
1065 void MojoGLES2Impl::UniformMatrix2x3fv(GLint location
,
1067 GLboolean transpose
,
1068 const GLfloat
* value
) {
1069 NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
1071 void MojoGLES2Impl::UniformMatrix2x4fv(GLint location
,
1073 GLboolean transpose
,
1074 const GLfloat
* value
) {
1075 NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
1077 void MojoGLES2Impl::UniformMatrix3fv(GLint location
,
1079 GLboolean transpose
,
1080 const GLfloat
* value
) {
1081 MojoGLES2MakeCurrent(context_
);
1082 glUniformMatrix3fv(location
, count
, transpose
, value
);
1084 void MojoGLES2Impl::UniformMatrix3x2fv(GLint location
,
1086 GLboolean transpose
,
1087 const GLfloat
* value
) {
1088 NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
1090 void MojoGLES2Impl::UniformMatrix3x4fv(GLint location
,
1092 GLboolean transpose
,
1093 const GLfloat
* value
) {
1094 NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
1096 void MojoGLES2Impl::UniformMatrix4fv(GLint location
,
1098 GLboolean transpose
,
1099 const GLfloat
* value
) {
1100 MojoGLES2MakeCurrent(context_
);
1101 glUniformMatrix4fv(location
, count
, transpose
, value
);
1103 void MojoGLES2Impl::UniformMatrix4x2fv(GLint location
,
1105 GLboolean transpose
,
1106 const GLfloat
* value
) {
1107 NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
1109 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location
,
1111 GLboolean transpose
,
1112 const GLfloat
* value
) {
1113 NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
1115 void MojoGLES2Impl::UseProgram(GLuint program
) {
1116 MojoGLES2MakeCurrent(context_
);
1117 glUseProgram(program
);
1119 void MojoGLES2Impl::ValidateProgram(GLuint program
) {
1120 MojoGLES2MakeCurrent(context_
);
1121 glValidateProgram(program
);
1123 void MojoGLES2Impl::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1124 MojoGLES2MakeCurrent(context_
);
1125 glVertexAttrib1f(indx
, x
);
1127 void MojoGLES2Impl::VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
1128 MojoGLES2MakeCurrent(context_
);
1129 glVertexAttrib1fv(indx
, values
);
1131 void MojoGLES2Impl::VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
1132 MojoGLES2MakeCurrent(context_
);
1133 glVertexAttrib2f(indx
, x
, y
);
1135 void MojoGLES2Impl::VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
1136 MojoGLES2MakeCurrent(context_
);
1137 glVertexAttrib2fv(indx
, values
);
1139 void MojoGLES2Impl::VertexAttrib3f(GLuint indx
,
1143 MojoGLES2MakeCurrent(context_
);
1144 glVertexAttrib3f(indx
, x
, y
, z
);
1146 void MojoGLES2Impl::VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
1147 MojoGLES2MakeCurrent(context_
);
1148 glVertexAttrib3fv(indx
, values
);
1150 void MojoGLES2Impl::VertexAttrib4f(GLuint indx
,
1155 MojoGLES2MakeCurrent(context_
);
1156 glVertexAttrib4f(indx
, x
, y
, z
, w
);
1158 void MojoGLES2Impl::VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
1159 MojoGLES2MakeCurrent(context_
);
1160 glVertexAttrib4fv(indx
, values
);
1162 void MojoGLES2Impl::VertexAttribI4i(GLuint indx
,
1167 NOTREACHED() << "Unimplemented VertexAttribI4i.";
1169 void MojoGLES2Impl::VertexAttribI4iv(GLuint indx
, const GLint
* values
) {
1170 NOTREACHED() << "Unimplemented VertexAttribI4iv.";
1172 void MojoGLES2Impl::VertexAttribI4ui(GLuint indx
,
1177 NOTREACHED() << "Unimplemented VertexAttribI4ui.";
1179 void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
1180 NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
1182 void MojoGLES2Impl::VertexAttribIPointer(GLuint indx
,
1187 NOTREACHED() << "Unimplemented VertexAttribIPointer.";
1189 void MojoGLES2Impl::VertexAttribPointer(GLuint indx
,
1192 GLboolean normalized
,
1195 MojoGLES2MakeCurrent(context_
);
1196 glVertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1198 void MojoGLES2Impl::Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1199 MojoGLES2MakeCurrent(context_
);
1200 glViewport(x
, y
, width
, height
);
1202 void MojoGLES2Impl::WaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
1203 NOTREACHED() << "Unimplemented WaitSync.";
1205 void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0
,
1215 NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
1217 void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
1220 GLenum internalformat
,
1223 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
1225 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target
,
1227 GLenum internalformat
,
1230 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT.";
1232 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target
,
1238 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
1240 void MojoGLES2Impl::TexStorage2DEXT(GLenum target
,
1242 GLenum internalFormat
,
1245 NOTREACHED() << "Unimplemented TexStorage2DEXT.";
1247 void MojoGLES2Impl::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1248 MojoGLES2MakeCurrent(context_
);
1249 glGenQueriesEXT(n
, queries
);
1251 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
1252 MojoGLES2MakeCurrent(context_
);
1253 glDeleteQueriesEXT(n
, queries
);
1255 GLboolean
MojoGLES2Impl::IsQueryEXT(GLuint id
) {
1256 MojoGLES2MakeCurrent(context_
);
1257 return glIsQueryEXT(id
);
1259 void MojoGLES2Impl::BeginQueryEXT(GLenum target
, GLuint id
) {
1260 MojoGLES2MakeCurrent(context_
);
1261 glBeginQueryEXT(target
, id
);
1263 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode
) {
1264 NOTREACHED() << "Unimplemented BeginTransformFeedback.";
1266 void MojoGLES2Impl::EndQueryEXT(GLenum target
) {
1267 MojoGLES2MakeCurrent(context_
);
1268 glEndQueryEXT(target
);
1270 void MojoGLES2Impl::EndTransformFeedback() {
1271 NOTREACHED() << "Unimplemented EndTransformFeedback.";
1273 void MojoGLES2Impl::GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
1274 MojoGLES2MakeCurrent(context_
);
1275 glGetQueryivEXT(target
, pname
, params
);
1277 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id
,
1280 MojoGLES2MakeCurrent(context_
);
1281 glGetQueryObjectuivEXT(id
, pname
, params
);
1283 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1284 NOTREACHED() << "Unimplemented InsertEventMarkerEXT.";
1286 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1287 NOTREACHED() << "Unimplemented PushGroupMarkerEXT.";
1289 void MojoGLES2Impl::PopGroupMarkerEXT() {
1290 NOTREACHED() << "Unimplemented PopGroupMarkerEXT.";
1292 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1293 NOTREACHED() << "Unimplemented GenVertexArraysOES.";
1295 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
1296 NOTREACHED() << "Unimplemented DeleteVertexArraysOES.";
1298 GLboolean
MojoGLES2Impl::IsVertexArrayOES(GLuint array
) {
1299 NOTREACHED() << "Unimplemented IsVertexArrayOES.";
1302 void MojoGLES2Impl::BindVertexArrayOES(GLuint array
) {
1303 NOTREACHED() << "Unimplemented BindVertexArrayOES.";
1305 void MojoGLES2Impl::SwapBuffers() {
1306 NOTREACHED() << "Unimplemented SwapBuffers.";
1308 GLuint
MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1312 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
1315 GLboolean
MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature
) {
1316 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
1319 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target
, GLenum access
) {
1320 NOTREACHED() << "Unimplemented MapBufferCHROMIUM.";
1323 GLboolean
MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target
) {
1324 NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM.";
1327 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target
,
1331 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM.";
1334 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1335 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM.";
1337 void* MojoGLES2Impl::MapBufferRange(GLenum target
,
1340 GLbitfield access
) {
1341 NOTREACHED() << "Unimplemented MapBufferRange.";
1344 GLboolean
MojoGLES2Impl::UnmapBuffer(GLenum target
) {
1345 NOTREACHED() << "Unimplemented UnmapBuffer.";
1348 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target
,
1357 MojoGLES2MakeCurrent(context_
);
1358 return glMapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1359 height
, format
, type
, access
);
1361 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1362 MojoGLES2MakeCurrent(context_
);
1363 glUnmapTexSubImage2DCHROMIUM(mem
);
1365 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width
,
1367 GLfloat scale_factor
) {
1368 NOTREACHED() << "Unimplemented ResizeCHROMIUM.";
1370 const GLchar
* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1371 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM.";
1374 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension
) {
1375 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM.";
1377 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
1378 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM.";
1380 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program
,
1384 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM.";
1386 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program
,
1390 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1392 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program
,
1396 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1398 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program
,
1402 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1404 GLuint
MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture
) {
1405 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM.";
1408 GLuint
MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer
,
1411 GLenum internalformat
) {
1412 NOTREACHED() << "Unimplemented CreateImageCHROMIUM.";
1415 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id
) {
1416 NOTREACHED() << "Unimplemented DestroyImageCHROMIUM.";
1418 GLuint
MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
1420 GLenum internalformat
,
1422 NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM.";
1425 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader
,
1429 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE.";
1431 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x
,
1435 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM.";
1437 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target
,
1442 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM.";
1444 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target
,
1447 GLint internalformat
,
1449 NOTREACHED() << "Unimplemented CopyTextureCHROMIUM.";
1451 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target
,
1460 NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM.";
1462 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode
,
1465 GLsizei primcount
) {
1466 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE.";
1468 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode
,
1471 const void* indices
,
1472 GLsizei primcount
) {
1473 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE.";
1475 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1476 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE.";
1478 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1479 MojoGLES2MakeCurrent(context_
);
1480 glGenMailboxCHROMIUM(mailbox
);
1482 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target
,
1483 const GLbyte
* mailbox
) {
1484 MojoGLES2MakeCurrent(context_
);
1485 glProduceTextureCHROMIUM(target
, mailbox
);
1487 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture
,
1489 const GLbyte
* mailbox
) {
1490 MojoGLES2MakeCurrent(context_
);
1491 glProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1493 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target
,
1494 const GLbyte
* mailbox
) {
1495 MojoGLES2MakeCurrent(context_
);
1496 glConsumeTextureCHROMIUM(target
, mailbox
);
1498 GLuint
MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target
,
1499 const GLbyte
* mailbox
) {
1500 MojoGLES2MakeCurrent(context_
);
1501 return glCreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1503 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program
,
1506 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM.";
1508 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
1509 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM.";
1511 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n
,
1512 const GLuint
* valuebuffers
) {
1513 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM.";
1515 GLboolean
MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1516 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM.";
1519 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
1520 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM.";
1522 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
1523 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM.";
1525 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1526 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM.";
1528 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location
,
1530 GLenum subscription
) {
1531 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM.";
1533 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1534 NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM.";
1536 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1537 NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM.";
1539 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name
,
1540 const char* trace_name
) {
1541 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM.";
1543 void MojoGLES2Impl::TraceEndCHROMIUM() {
1544 NOTREACHED() << "Unimplemented TraceEndCHROMIUM.";
1546 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target
,
1555 NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM.";
1557 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target
,
1559 GLenum internalformat
,
1565 const void* pixels
) {
1566 NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM.";
1568 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1569 NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM.";
1571 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() {
1572 NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM.";
1574 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target
,
1576 const GLenum
* attachments
) {
1577 NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
1579 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1580 NOTREACHED() << "Unimplemented LoseContextCHROMIUM.";
1582 GLuint
MojoGLES2Impl::InsertSyncPointCHROMIUM() {
1583 MojoGLES2MakeCurrent(context_
);
1584 return glInsertSyncPointCHROMIUM();
1586 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point
) {
1587 MojoGLES2MakeCurrent(context_
);
1588 glWaitSyncPointCHROMIUM(sync_point
);
1590 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1591 NOTREACHED() << "Unimplemented DrawBuffersEXT.";
1593 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
1594 NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM.";
1596 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1597 GLenum plane_transform
,
1598 GLuint overlay_texture_id
,
1602 GLint bounds_height
,
1606 GLfloat uv_height
) {
1607 NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM.";
1609 void MojoGLES2Impl::SwapInterval(GLint interval
) {
1610 NOTREACHED() << "Unimplemented SwapInterval.";
1612 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
1613 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
1615 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1616 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
1618 void MojoGLES2Impl::BlendBarrierKHR() {
1619 NOTREACHED() << "Unimplemented BlendBarrierKHR.";