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_copy_texture.h"
15 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_image.h"
16 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_miscellaneous.h"
17 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_pixel_transfer_buffer_object.h"
18 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sub_image.h"
19 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h"
20 #include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h"
21 #include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
22 #include "third_party/mojo/src/mojo/public/c/gles2/occlusion_query_ext.h"
26 void MojoGLES2Impl::ActiveTexture(GLenum texture
) {
27 MojoGLES2MakeCurrent(context_
);
28 glActiveTexture(texture
);
30 void MojoGLES2Impl::AttachShader(GLuint program
, GLuint shader
) {
31 MojoGLES2MakeCurrent(context_
);
32 glAttachShader(program
, shader
);
34 void MojoGLES2Impl::BindAttribLocation(GLuint program
,
37 MojoGLES2MakeCurrent(context_
);
38 glBindAttribLocation(program
, index
, name
);
40 void MojoGLES2Impl::BindBuffer(GLenum target
, GLuint buffer
) {
41 MojoGLES2MakeCurrent(context_
);
42 glBindBuffer(target
, buffer
);
44 void MojoGLES2Impl::BindBufferBase(GLenum target
, GLuint index
, GLuint buffer
) {
45 NOTREACHED() << "Unimplemented BindBufferBase.";
47 void MojoGLES2Impl::BindBufferRange(GLenum target
,
52 NOTREACHED() << "Unimplemented BindBufferRange.";
54 void MojoGLES2Impl::BindFramebuffer(GLenum target
, GLuint framebuffer
) {
55 MojoGLES2MakeCurrent(context_
);
56 glBindFramebuffer(target
, framebuffer
);
58 void MojoGLES2Impl::BindRenderbuffer(GLenum target
, GLuint renderbuffer
) {
59 MojoGLES2MakeCurrent(context_
);
60 glBindRenderbuffer(target
, renderbuffer
);
62 void MojoGLES2Impl::BindSampler(GLuint unit
, GLuint sampler
) {
63 NOTREACHED() << "Unimplemented BindSampler.";
65 void MojoGLES2Impl::BindTexture(GLenum target
, GLuint texture
) {
66 MojoGLES2MakeCurrent(context_
);
67 glBindTexture(target
, texture
);
69 void MojoGLES2Impl::BindTransformFeedback(GLenum target
,
70 GLuint transformfeedback
) {
71 NOTREACHED() << "Unimplemented BindTransformFeedback.";
73 void MojoGLES2Impl::BlendColor(GLclampf red
,
77 MojoGLES2MakeCurrent(context_
);
78 glBlendColor(red
, green
, blue
, alpha
);
80 void MojoGLES2Impl::BlendEquation(GLenum mode
) {
81 MojoGLES2MakeCurrent(context_
);
82 glBlendEquation(mode
);
84 void MojoGLES2Impl::BlendEquationSeparate(GLenum modeRGB
, GLenum modeAlpha
) {
85 MojoGLES2MakeCurrent(context_
);
86 glBlendEquationSeparate(modeRGB
, modeAlpha
);
88 void MojoGLES2Impl::BlendFunc(GLenum sfactor
, GLenum dfactor
) {
89 MojoGLES2MakeCurrent(context_
);
90 glBlendFunc(sfactor
, dfactor
);
92 void MojoGLES2Impl::BlendFuncSeparate(GLenum srcRGB
,
96 MojoGLES2MakeCurrent(context_
);
97 glBlendFuncSeparate(srcRGB
, dstRGB
, srcAlpha
, dstAlpha
);
99 void MojoGLES2Impl::BufferData(GLenum target
,
103 MojoGLES2MakeCurrent(context_
);
104 glBufferData(target
, size
, data
, usage
);
106 void MojoGLES2Impl::BufferSubData(GLenum target
,
110 MojoGLES2MakeCurrent(context_
);
111 glBufferSubData(target
, offset
, size
, data
);
113 GLenum
MojoGLES2Impl::CheckFramebufferStatus(GLenum target
) {
114 MojoGLES2MakeCurrent(context_
);
115 return glCheckFramebufferStatus(target
);
117 void MojoGLES2Impl::Clear(GLbitfield mask
) {
118 MojoGLES2MakeCurrent(context_
);
121 void MojoGLES2Impl::ClearBufferfi(GLenum buffer
,
125 NOTREACHED() << "Unimplemented ClearBufferfi.";
127 void MojoGLES2Impl::ClearBufferfv(GLenum buffer
,
129 const GLfloat
* value
) {
130 NOTREACHED() << "Unimplemented ClearBufferfv.";
132 void MojoGLES2Impl::ClearBufferiv(GLenum buffer
,
134 const GLint
* value
) {
135 NOTREACHED() << "Unimplemented ClearBufferiv.";
137 void MojoGLES2Impl::ClearBufferuiv(GLenum buffer
,
139 const GLuint
* value
) {
140 NOTREACHED() << "Unimplemented ClearBufferuiv.";
142 void MojoGLES2Impl::ClearColor(GLclampf red
,
146 MojoGLES2MakeCurrent(context_
);
147 glClearColor(red
, green
, blue
, alpha
);
149 void MojoGLES2Impl::ClearDepthf(GLclampf depth
) {
150 MojoGLES2MakeCurrent(context_
);
151 glClearDepthf(depth
);
153 void MojoGLES2Impl::ClearStencil(GLint s
) {
154 MojoGLES2MakeCurrent(context_
);
157 GLenum
MojoGLES2Impl::ClientWaitSync(GLsync sync
,
160 NOTREACHED() << "Unimplemented ClientWaitSync.";
163 void MojoGLES2Impl::ColorMask(GLboolean red
,
167 MojoGLES2MakeCurrent(context_
);
168 glColorMask(red
, green
, blue
, alpha
);
170 void MojoGLES2Impl::CompileShader(GLuint shader
) {
171 MojoGLES2MakeCurrent(context_
);
172 glCompileShader(shader
);
174 void MojoGLES2Impl::CompressedTexImage2D(GLenum target
,
176 GLenum internalformat
,
182 MojoGLES2MakeCurrent(context_
);
183 glCompressedTexImage2D(target
, level
, internalformat
, width
, height
, border
,
186 void MojoGLES2Impl::CompressedTexSubImage2D(GLenum target
,
195 MojoGLES2MakeCurrent(context_
);
196 glCompressedTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
,
197 format
, imageSize
, data
);
199 void MojoGLES2Impl::CompressedTexImage3D(GLenum target
,
201 GLenum internalformat
,
208 NOTREACHED() << "Unimplemented CompressedTexImage3D.";
210 void MojoGLES2Impl::CompressedTexSubImage3D(GLenum target
,
221 NOTREACHED() << "Unimplemented CompressedTexSubImage3D.";
223 void MojoGLES2Impl::CopyBufferSubData(GLenum readtarget
,
226 GLintptr writeoffset
,
228 NOTREACHED() << "Unimplemented CopyBufferSubData.";
230 void MojoGLES2Impl::CopyTexImage2D(GLenum target
,
232 GLenum internalformat
,
238 MojoGLES2MakeCurrent(context_
);
239 glCopyTexImage2D(target
, level
, internalformat
, x
, y
, width
, height
, border
);
241 void MojoGLES2Impl::CopyTexSubImage2D(GLenum target
,
249 MojoGLES2MakeCurrent(context_
);
250 glCopyTexSubImage2D(target
, level
, xoffset
, yoffset
, x
, y
, width
, height
);
252 void MojoGLES2Impl::CopyTexSubImage3D(GLenum target
,
261 NOTREACHED() << "Unimplemented CopyTexSubImage3D.";
263 GLuint
MojoGLES2Impl::CreateProgram() {
264 MojoGLES2MakeCurrent(context_
);
265 return glCreateProgram();
267 GLuint
MojoGLES2Impl::CreateShader(GLenum type
) {
268 MojoGLES2MakeCurrent(context_
);
269 return glCreateShader(type
);
271 void MojoGLES2Impl::CullFace(GLenum mode
) {
272 MojoGLES2MakeCurrent(context_
);
275 void MojoGLES2Impl::DeleteBuffers(GLsizei n
, const GLuint
* buffers
) {
276 MojoGLES2MakeCurrent(context_
);
277 glDeleteBuffers(n
, buffers
);
279 void MojoGLES2Impl::DeleteFramebuffers(GLsizei n
, const GLuint
* framebuffers
) {
280 MojoGLES2MakeCurrent(context_
);
281 glDeleteFramebuffers(n
, framebuffers
);
283 void MojoGLES2Impl::DeleteProgram(GLuint program
) {
284 MojoGLES2MakeCurrent(context_
);
285 glDeleteProgram(program
);
287 void MojoGLES2Impl::DeleteRenderbuffers(GLsizei n
,
288 const GLuint
* renderbuffers
) {
289 MojoGLES2MakeCurrent(context_
);
290 glDeleteRenderbuffers(n
, renderbuffers
);
292 void MojoGLES2Impl::DeleteSamplers(GLsizei n
, const GLuint
* samplers
) {
293 NOTREACHED() << "Unimplemented DeleteSamplers.";
295 void MojoGLES2Impl::DeleteSync(GLsync sync
) {
296 NOTREACHED() << "Unimplemented DeleteSync.";
298 void MojoGLES2Impl::DeleteShader(GLuint shader
) {
299 MojoGLES2MakeCurrent(context_
);
300 glDeleteShader(shader
);
302 void MojoGLES2Impl::DeleteTextures(GLsizei n
, const GLuint
* textures
) {
303 MojoGLES2MakeCurrent(context_
);
304 glDeleteTextures(n
, textures
);
306 void MojoGLES2Impl::DeleteTransformFeedbacks(GLsizei n
, const GLuint
* ids
) {
307 NOTREACHED() << "Unimplemented DeleteTransformFeedbacks.";
309 void MojoGLES2Impl::DepthFunc(GLenum func
) {
310 MojoGLES2MakeCurrent(context_
);
313 void MojoGLES2Impl::DepthMask(GLboolean flag
) {
314 MojoGLES2MakeCurrent(context_
);
317 void MojoGLES2Impl::DepthRangef(GLclampf zNear
, GLclampf zFar
) {
318 MojoGLES2MakeCurrent(context_
);
319 glDepthRangef(zNear
, zFar
);
321 void MojoGLES2Impl::DetachShader(GLuint program
, GLuint shader
) {
322 MojoGLES2MakeCurrent(context_
);
323 glDetachShader(program
, shader
);
325 void MojoGLES2Impl::Disable(GLenum cap
) {
326 MojoGLES2MakeCurrent(context_
);
329 void MojoGLES2Impl::DisableVertexAttribArray(GLuint index
) {
330 MojoGLES2MakeCurrent(context_
);
331 glDisableVertexAttribArray(index
);
333 void MojoGLES2Impl::DrawArrays(GLenum mode
, GLint first
, GLsizei count
) {
334 MojoGLES2MakeCurrent(context_
);
335 glDrawArrays(mode
, first
, count
);
337 void MojoGLES2Impl::DrawElements(GLenum mode
,
340 const void* indices
) {
341 MojoGLES2MakeCurrent(context_
);
342 glDrawElements(mode
, count
, type
, indices
);
344 void MojoGLES2Impl::DrawRangeElements(GLenum mode
,
349 const void* indices
) {
350 NOTREACHED() << "Unimplemented DrawRangeElements.";
352 void MojoGLES2Impl::Enable(GLenum cap
) {
353 MojoGLES2MakeCurrent(context_
);
356 void MojoGLES2Impl::EnableVertexAttribArray(GLuint index
) {
357 MojoGLES2MakeCurrent(context_
);
358 glEnableVertexAttribArray(index
);
360 GLsync
MojoGLES2Impl::FenceSync(GLenum condition
, GLbitfield flags
) {
361 NOTREACHED() << "Unimplemented FenceSync.";
364 void MojoGLES2Impl::Finish() {
365 MojoGLES2MakeCurrent(context_
);
368 void MojoGLES2Impl::Flush() {
369 MojoGLES2MakeCurrent(context_
);
372 void MojoGLES2Impl::FramebufferRenderbuffer(GLenum target
,
374 GLenum renderbuffertarget
,
375 GLuint renderbuffer
) {
376 MojoGLES2MakeCurrent(context_
);
377 glFramebufferRenderbuffer(target
, attachment
, renderbuffertarget
,
380 void MojoGLES2Impl::FramebufferTexture2D(GLenum target
,
385 MojoGLES2MakeCurrent(context_
);
386 glFramebufferTexture2D(target
, attachment
, textarget
, texture
, level
);
388 void MojoGLES2Impl::FramebufferTextureLayer(GLenum target
,
393 NOTREACHED() << "Unimplemented FramebufferTextureLayer.";
395 void MojoGLES2Impl::FrontFace(GLenum mode
) {
396 MojoGLES2MakeCurrent(context_
);
399 void MojoGLES2Impl::GenBuffers(GLsizei n
, GLuint
* buffers
) {
400 MojoGLES2MakeCurrent(context_
);
401 glGenBuffers(n
, buffers
);
403 void MojoGLES2Impl::GenerateMipmap(GLenum target
) {
404 MojoGLES2MakeCurrent(context_
);
405 glGenerateMipmap(target
);
407 void MojoGLES2Impl::GenFramebuffers(GLsizei n
, GLuint
* framebuffers
) {
408 MojoGLES2MakeCurrent(context_
);
409 glGenFramebuffers(n
, framebuffers
);
411 void MojoGLES2Impl::GenRenderbuffers(GLsizei n
, GLuint
* renderbuffers
) {
412 MojoGLES2MakeCurrent(context_
);
413 glGenRenderbuffers(n
, renderbuffers
);
415 void MojoGLES2Impl::GenSamplers(GLsizei n
, GLuint
* samplers
) {
416 NOTREACHED() << "Unimplemented GenSamplers.";
418 void MojoGLES2Impl::GenTextures(GLsizei n
, GLuint
* textures
) {
419 MojoGLES2MakeCurrent(context_
);
420 glGenTextures(n
, textures
);
422 void MojoGLES2Impl::GenTransformFeedbacks(GLsizei n
, GLuint
* ids
) {
423 NOTREACHED() << "Unimplemented GenTransformFeedbacks.";
425 void MojoGLES2Impl::GetActiveAttrib(GLuint program
,
432 MojoGLES2MakeCurrent(context_
);
433 glGetActiveAttrib(program
, index
, bufsize
, length
, size
, type
, name
);
435 void MojoGLES2Impl::GetActiveUniform(GLuint program
,
442 MojoGLES2MakeCurrent(context_
);
443 glGetActiveUniform(program
, index
, bufsize
, length
, size
, type
, name
);
445 void MojoGLES2Impl::GetActiveUniformBlockiv(GLuint program
,
449 NOTREACHED() << "Unimplemented GetActiveUniformBlockiv.";
451 void MojoGLES2Impl::GetActiveUniformBlockName(GLuint program
,
456 NOTREACHED() << "Unimplemented GetActiveUniformBlockName.";
458 void MojoGLES2Impl::GetActiveUniformsiv(GLuint program
,
460 const GLuint
* indices
,
463 NOTREACHED() << "Unimplemented GetActiveUniformsiv.";
465 void MojoGLES2Impl::GetAttachedShaders(GLuint program
,
469 MojoGLES2MakeCurrent(context_
);
470 glGetAttachedShaders(program
, maxcount
, count
, shaders
);
472 GLint
MojoGLES2Impl::GetAttribLocation(GLuint program
, const char* name
) {
473 MojoGLES2MakeCurrent(context_
);
474 return glGetAttribLocation(program
, name
);
476 void MojoGLES2Impl::GetBooleanv(GLenum pname
, GLboolean
* params
) {
477 MojoGLES2MakeCurrent(context_
);
478 glGetBooleanv(pname
, params
);
480 void MojoGLES2Impl::GetBufferParameteriv(GLenum target
,
483 MojoGLES2MakeCurrent(context_
);
484 glGetBufferParameteriv(target
, pname
, params
);
486 GLenum
MojoGLES2Impl::GetError() {
487 MojoGLES2MakeCurrent(context_
);
490 void MojoGLES2Impl::GetFloatv(GLenum pname
, GLfloat
* params
) {
491 MojoGLES2MakeCurrent(context_
);
492 glGetFloatv(pname
, params
);
494 GLint
MojoGLES2Impl::GetFragDataLocation(GLuint program
, const char* name
) {
495 NOTREACHED() << "Unimplemented GetFragDataLocation.";
498 void MojoGLES2Impl::GetFramebufferAttachmentParameteriv(GLenum target
,
502 MojoGLES2MakeCurrent(context_
);
503 glGetFramebufferAttachmentParameteriv(target
, attachment
, pname
, params
);
505 void MojoGLES2Impl::GetInteger64v(GLenum pname
, GLint64
* params
) {
506 NOTREACHED() << "Unimplemented GetInteger64v.";
508 void MojoGLES2Impl::GetIntegeri_v(GLenum pname
, GLuint index
, GLint
* data
) {
509 NOTREACHED() << "Unimplemented GetIntegeri_v.";
511 void MojoGLES2Impl::GetInteger64i_v(GLenum pname
, GLuint index
, GLint64
* data
) {
512 NOTREACHED() << "Unimplemented GetInteger64i_v.";
514 void MojoGLES2Impl::GetIntegerv(GLenum pname
, GLint
* params
) {
515 MojoGLES2MakeCurrent(context_
);
516 glGetIntegerv(pname
, params
);
518 void MojoGLES2Impl::GetInternalformativ(GLenum target
,
523 NOTREACHED() << "Unimplemented GetInternalformativ.";
525 void MojoGLES2Impl::GetProgramiv(GLuint program
, GLenum pname
, GLint
* params
) {
526 MojoGLES2MakeCurrent(context_
);
527 glGetProgramiv(program
, pname
, params
);
529 void MojoGLES2Impl::GetProgramInfoLog(GLuint program
,
533 MojoGLES2MakeCurrent(context_
);
534 glGetProgramInfoLog(program
, bufsize
, length
, infolog
);
536 void MojoGLES2Impl::GetRenderbufferParameteriv(GLenum target
,
539 MojoGLES2MakeCurrent(context_
);
540 glGetRenderbufferParameteriv(target
, pname
, params
);
542 void MojoGLES2Impl::GetSamplerParameterfv(GLuint sampler
,
545 NOTREACHED() << "Unimplemented GetSamplerParameterfv.";
547 void MojoGLES2Impl::GetSamplerParameteriv(GLuint sampler
,
550 NOTREACHED() << "Unimplemented GetSamplerParameteriv.";
552 void MojoGLES2Impl::GetShaderiv(GLuint shader
, GLenum pname
, GLint
* params
) {
553 MojoGLES2MakeCurrent(context_
);
554 glGetShaderiv(shader
, pname
, params
);
556 void MojoGLES2Impl::GetShaderInfoLog(GLuint shader
,
560 MojoGLES2MakeCurrent(context_
);
561 glGetShaderInfoLog(shader
, bufsize
, length
, infolog
);
563 void MojoGLES2Impl::GetShaderPrecisionFormat(GLenum shadertype
,
564 GLenum precisiontype
,
567 MojoGLES2MakeCurrent(context_
);
568 glGetShaderPrecisionFormat(shadertype
, precisiontype
, range
, precision
);
570 void MojoGLES2Impl::GetShaderSource(GLuint shader
,
574 MojoGLES2MakeCurrent(context_
);
575 glGetShaderSource(shader
, bufsize
, length
, source
);
577 const GLubyte
* MojoGLES2Impl::GetString(GLenum name
) {
578 MojoGLES2MakeCurrent(context_
);
579 return glGetString(name
);
581 void MojoGLES2Impl::GetSynciv(GLsync sync
,
586 NOTREACHED() << "Unimplemented GetSynciv.";
588 void MojoGLES2Impl::GetTexParameterfv(GLenum target
,
591 MojoGLES2MakeCurrent(context_
);
592 glGetTexParameterfv(target
, pname
, params
);
594 void MojoGLES2Impl::GetTexParameteriv(GLenum target
,
597 MojoGLES2MakeCurrent(context_
);
598 glGetTexParameteriv(target
, pname
, params
);
600 void MojoGLES2Impl::GetTransformFeedbackVarying(GLuint program
,
607 NOTREACHED() << "Unimplemented GetTransformFeedbackVarying.";
609 GLuint
MojoGLES2Impl::GetUniformBlockIndex(GLuint program
, const char* name
) {
610 NOTREACHED() << "Unimplemented GetUniformBlockIndex.";
613 void MojoGLES2Impl::GetUniformfv(GLuint program
,
616 MojoGLES2MakeCurrent(context_
);
617 glGetUniformfv(program
, location
, params
);
619 void MojoGLES2Impl::GetUniformiv(GLuint program
,
622 MojoGLES2MakeCurrent(context_
);
623 glGetUniformiv(program
, location
, params
);
625 void MojoGLES2Impl::GetUniformuiv(GLuint program
,
628 NOTREACHED() << "Unimplemented GetUniformuiv.";
630 void MojoGLES2Impl::GetUniformIndices(GLuint program
,
632 const char* const* names
,
634 NOTREACHED() << "Unimplemented GetUniformIndices.";
636 GLint
MojoGLES2Impl::GetUniformLocation(GLuint program
, const char* name
) {
637 MojoGLES2MakeCurrent(context_
);
638 return glGetUniformLocation(program
, name
);
640 void MojoGLES2Impl::GetVertexAttribfv(GLuint index
,
643 MojoGLES2MakeCurrent(context_
);
644 glGetVertexAttribfv(index
, pname
, params
);
646 void MojoGLES2Impl::GetVertexAttribiv(GLuint index
,
649 MojoGLES2MakeCurrent(context_
);
650 glGetVertexAttribiv(index
, pname
, params
);
652 void MojoGLES2Impl::GetVertexAttribIiv(GLuint index
,
655 NOTREACHED() << "Unimplemented GetVertexAttribIiv.";
657 void MojoGLES2Impl::GetVertexAttribIuiv(GLuint index
,
660 NOTREACHED() << "Unimplemented GetVertexAttribIuiv.";
662 void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index
,
665 MojoGLES2MakeCurrent(context_
);
666 glGetVertexAttribPointerv(index
, pname
, pointer
);
668 void MojoGLES2Impl::Hint(GLenum target
, GLenum mode
) {
669 MojoGLES2MakeCurrent(context_
);
670 glHint(target
, mode
);
672 void MojoGLES2Impl::InvalidateFramebuffer(GLenum target
,
674 const GLenum
* attachments
) {
675 NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
677 void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target
,
679 const GLenum
* attachments
,
684 NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
686 GLboolean
MojoGLES2Impl::IsBuffer(GLuint buffer
) {
687 MojoGLES2MakeCurrent(context_
);
688 return glIsBuffer(buffer
);
690 GLboolean
MojoGLES2Impl::IsEnabled(GLenum cap
) {
691 MojoGLES2MakeCurrent(context_
);
692 return glIsEnabled(cap
);
694 GLboolean
MojoGLES2Impl::IsFramebuffer(GLuint framebuffer
) {
695 MojoGLES2MakeCurrent(context_
);
696 return glIsFramebuffer(framebuffer
);
698 GLboolean
MojoGLES2Impl::IsProgram(GLuint program
) {
699 MojoGLES2MakeCurrent(context_
);
700 return glIsProgram(program
);
702 GLboolean
MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer
) {
703 MojoGLES2MakeCurrent(context_
);
704 return glIsRenderbuffer(renderbuffer
);
706 GLboolean
MojoGLES2Impl::IsSampler(GLuint sampler
) {
707 NOTREACHED() << "Unimplemented IsSampler.";
710 GLboolean
MojoGLES2Impl::IsShader(GLuint shader
) {
711 MojoGLES2MakeCurrent(context_
);
712 return glIsShader(shader
);
714 GLboolean
MojoGLES2Impl::IsSync(GLsync sync
) {
715 NOTREACHED() << "Unimplemented IsSync.";
718 GLboolean
MojoGLES2Impl::IsTexture(GLuint texture
) {
719 MojoGLES2MakeCurrent(context_
);
720 return glIsTexture(texture
);
722 GLboolean
MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback
) {
723 NOTREACHED() << "Unimplemented IsTransformFeedback.";
726 void MojoGLES2Impl::LineWidth(GLfloat width
) {
727 MojoGLES2MakeCurrent(context_
);
730 void MojoGLES2Impl::LinkProgram(GLuint program
) {
731 MojoGLES2MakeCurrent(context_
);
732 glLinkProgram(program
);
734 void MojoGLES2Impl::PauseTransformFeedback() {
735 NOTREACHED() << "Unimplemented PauseTransformFeedback.";
737 void MojoGLES2Impl::PixelStorei(GLenum pname
, GLint param
) {
738 MojoGLES2MakeCurrent(context_
);
739 glPixelStorei(pname
, param
);
741 void MojoGLES2Impl::PolygonOffset(GLfloat factor
, GLfloat units
) {
742 MojoGLES2MakeCurrent(context_
);
743 glPolygonOffset(factor
, units
);
745 void MojoGLES2Impl::ReadBuffer(GLenum src
) {
746 NOTREACHED() << "Unimplemented ReadBuffer.";
748 void MojoGLES2Impl::ReadPixels(GLint x
,
755 MojoGLES2MakeCurrent(context_
);
756 glReadPixels(x
, y
, width
, height
, format
, type
, pixels
);
758 void MojoGLES2Impl::ReleaseShaderCompiler() {
759 MojoGLES2MakeCurrent(context_
);
760 glReleaseShaderCompiler();
762 void MojoGLES2Impl::RenderbufferStorage(GLenum target
,
763 GLenum internalformat
,
766 MojoGLES2MakeCurrent(context_
);
767 glRenderbufferStorage(target
, internalformat
, width
, height
);
769 void MojoGLES2Impl::ResumeTransformFeedback() {
770 NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
772 void MojoGLES2Impl::SampleCoverage(GLclampf value
, GLboolean invert
) {
773 MojoGLES2MakeCurrent(context_
);
774 glSampleCoverage(value
, invert
);
776 void MojoGLES2Impl::SamplerParameterf(GLuint sampler
,
779 NOTREACHED() << "Unimplemented SamplerParameterf.";
781 void MojoGLES2Impl::SamplerParameterfv(GLuint sampler
,
783 const GLfloat
* params
) {
784 NOTREACHED() << "Unimplemented SamplerParameterfv.";
786 void MojoGLES2Impl::SamplerParameteri(GLuint sampler
,
789 NOTREACHED() << "Unimplemented SamplerParameteri.";
791 void MojoGLES2Impl::SamplerParameteriv(GLuint sampler
,
793 const GLint
* params
) {
794 NOTREACHED() << "Unimplemented SamplerParameteriv.";
796 void MojoGLES2Impl::Scissor(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
797 MojoGLES2MakeCurrent(context_
);
798 glScissor(x
, y
, width
, height
);
800 void MojoGLES2Impl::ShaderBinary(GLsizei n
,
801 const GLuint
* shaders
,
805 MojoGLES2MakeCurrent(context_
);
806 glShaderBinary(n
, shaders
, binaryformat
, binary
, length
);
808 void MojoGLES2Impl::ShaderSource(GLuint shader
,
810 const GLchar
* const* str
,
811 const GLint
* length
) {
812 MojoGLES2MakeCurrent(context_
);
813 glShaderSource(shader
, count
, str
, length
);
815 void MojoGLES2Impl::ShallowFinishCHROMIUM() {
816 NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM.";
818 void MojoGLES2Impl::ShallowFlushCHROMIUM() {
819 MojoGLES2MakeCurrent(context_
);
820 glShallowFlushCHROMIUM();
822 void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
823 NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM.";
825 void MojoGLES2Impl::StencilFunc(GLenum func
, GLint ref
, GLuint mask
) {
826 MojoGLES2MakeCurrent(context_
);
827 glStencilFunc(func
, ref
, mask
);
829 void MojoGLES2Impl::StencilFuncSeparate(GLenum face
,
833 MojoGLES2MakeCurrent(context_
);
834 glStencilFuncSeparate(face
, func
, ref
, mask
);
836 void MojoGLES2Impl::StencilMask(GLuint mask
) {
837 MojoGLES2MakeCurrent(context_
);
840 void MojoGLES2Impl::StencilMaskSeparate(GLenum face
, GLuint mask
) {
841 MojoGLES2MakeCurrent(context_
);
842 glStencilMaskSeparate(face
, mask
);
844 void MojoGLES2Impl::StencilOp(GLenum fail
, GLenum zfail
, GLenum zpass
) {
845 MojoGLES2MakeCurrent(context_
);
846 glStencilOp(fail
, zfail
, zpass
);
848 void MojoGLES2Impl::StencilOpSeparate(GLenum face
,
852 MojoGLES2MakeCurrent(context_
);
853 glStencilOpSeparate(face
, fail
, zfail
, zpass
);
855 void MojoGLES2Impl::TexImage2D(GLenum target
,
857 GLint internalformat
,
863 const void* pixels
) {
864 MojoGLES2MakeCurrent(context_
);
865 glTexImage2D(target
, level
, internalformat
, width
, height
, border
, format
,
868 void MojoGLES2Impl::TexImage3D(GLenum target
,
870 GLint internalformat
,
877 const void* pixels
) {
878 NOTREACHED() << "Unimplemented TexImage3D.";
880 void MojoGLES2Impl::TexParameterf(GLenum target
, GLenum pname
, GLfloat param
) {
881 MojoGLES2MakeCurrent(context_
);
882 glTexParameterf(target
, pname
, param
);
884 void MojoGLES2Impl::TexParameterfv(GLenum target
,
886 const GLfloat
* params
) {
887 MojoGLES2MakeCurrent(context_
);
888 glTexParameterfv(target
, pname
, params
);
890 void MojoGLES2Impl::TexParameteri(GLenum target
, GLenum pname
, GLint param
) {
891 MojoGLES2MakeCurrent(context_
);
892 glTexParameteri(target
, pname
, param
);
894 void MojoGLES2Impl::TexParameteriv(GLenum target
,
896 const GLint
* params
) {
897 MojoGLES2MakeCurrent(context_
);
898 glTexParameteriv(target
, pname
, params
);
900 void MojoGLES2Impl::TexStorage3D(GLenum target
,
902 GLenum internalFormat
,
906 NOTREACHED() << "Unimplemented TexStorage3D.";
908 void MojoGLES2Impl::TexSubImage2D(GLenum target
,
916 const void* pixels
) {
917 MojoGLES2MakeCurrent(context_
);
918 glTexSubImage2D(target
, level
, xoffset
, yoffset
, width
, height
, format
, type
,
921 void MojoGLES2Impl::TexSubImage3D(GLenum target
,
931 const void* pixels
) {
932 NOTREACHED() << "Unimplemented TexSubImage3D.";
934 void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program
,
936 const char* const* varyings
,
938 NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
940 void MojoGLES2Impl::Uniform1f(GLint location
, GLfloat x
) {
941 MojoGLES2MakeCurrent(context_
);
942 glUniform1f(location
, x
);
944 void MojoGLES2Impl::Uniform1fv(GLint location
,
947 MojoGLES2MakeCurrent(context_
);
948 glUniform1fv(location
, count
, v
);
950 void MojoGLES2Impl::Uniform1i(GLint location
, GLint x
) {
951 MojoGLES2MakeCurrent(context_
);
952 glUniform1i(location
, x
);
954 void MojoGLES2Impl::Uniform1iv(GLint location
, GLsizei count
, const GLint
* v
) {
955 MojoGLES2MakeCurrent(context_
);
956 glUniform1iv(location
, count
, v
);
958 void MojoGLES2Impl::Uniform1ui(GLint location
, GLuint x
) {
959 NOTREACHED() << "Unimplemented Uniform1ui.";
961 void MojoGLES2Impl::Uniform1uiv(GLint location
,
964 NOTREACHED() << "Unimplemented Uniform1uiv.";
966 void MojoGLES2Impl::Uniform2f(GLint location
, GLfloat x
, GLfloat y
) {
967 MojoGLES2MakeCurrent(context_
);
968 glUniform2f(location
, x
, y
);
970 void MojoGLES2Impl::Uniform2fv(GLint location
,
973 MojoGLES2MakeCurrent(context_
);
974 glUniform2fv(location
, count
, v
);
976 void MojoGLES2Impl::Uniform2i(GLint location
, GLint x
, GLint y
) {
977 MojoGLES2MakeCurrent(context_
);
978 glUniform2i(location
, x
, y
);
980 void MojoGLES2Impl::Uniform2iv(GLint location
, GLsizei count
, const GLint
* v
) {
981 MojoGLES2MakeCurrent(context_
);
982 glUniform2iv(location
, count
, v
);
984 void MojoGLES2Impl::Uniform2ui(GLint location
, GLuint x
, GLuint y
) {
985 NOTREACHED() << "Unimplemented Uniform2ui.";
987 void MojoGLES2Impl::Uniform2uiv(GLint location
,
990 NOTREACHED() << "Unimplemented Uniform2uiv.";
992 void MojoGLES2Impl::Uniform3f(GLint location
, GLfloat x
, GLfloat y
, GLfloat z
) {
993 MojoGLES2MakeCurrent(context_
);
994 glUniform3f(location
, x
, y
, z
);
996 void MojoGLES2Impl::Uniform3fv(GLint location
,
999 MojoGLES2MakeCurrent(context_
);
1000 glUniform3fv(location
, count
, v
);
1002 void MojoGLES2Impl::Uniform3i(GLint location
, GLint x
, GLint y
, GLint z
) {
1003 MojoGLES2MakeCurrent(context_
);
1004 glUniform3i(location
, x
, y
, z
);
1006 void MojoGLES2Impl::Uniform3iv(GLint location
, GLsizei count
, const GLint
* v
) {
1007 MojoGLES2MakeCurrent(context_
);
1008 glUniform3iv(location
, count
, v
);
1010 void MojoGLES2Impl::Uniform3ui(GLint location
, GLuint x
, GLuint y
, GLuint z
) {
1011 NOTREACHED() << "Unimplemented Uniform3ui.";
1013 void MojoGLES2Impl::Uniform3uiv(GLint location
,
1016 NOTREACHED() << "Unimplemented Uniform3uiv.";
1018 void MojoGLES2Impl::Uniform4f(GLint location
,
1023 MojoGLES2MakeCurrent(context_
);
1024 glUniform4f(location
, x
, y
, z
, w
);
1026 void MojoGLES2Impl::Uniform4fv(GLint location
,
1029 MojoGLES2MakeCurrent(context_
);
1030 glUniform4fv(location
, count
, v
);
1032 void MojoGLES2Impl::Uniform4i(GLint location
,
1037 MojoGLES2MakeCurrent(context_
);
1038 glUniform4i(location
, x
, y
, z
, w
);
1040 void MojoGLES2Impl::Uniform4iv(GLint location
, GLsizei count
, const GLint
* v
) {
1041 MojoGLES2MakeCurrent(context_
);
1042 glUniform4iv(location
, count
, v
);
1044 void MojoGLES2Impl::Uniform4ui(GLint location
,
1049 NOTREACHED() << "Unimplemented Uniform4ui.";
1051 void MojoGLES2Impl::Uniform4uiv(GLint location
,
1054 NOTREACHED() << "Unimplemented Uniform4uiv.";
1056 void MojoGLES2Impl::UniformBlockBinding(GLuint program
,
1059 NOTREACHED() << "Unimplemented UniformBlockBinding.";
1061 void MojoGLES2Impl::UniformMatrix2fv(GLint location
,
1063 GLboolean transpose
,
1064 const GLfloat
* value
) {
1065 MojoGLES2MakeCurrent(context_
);
1066 glUniformMatrix2fv(location
, count
, transpose
, value
);
1068 void MojoGLES2Impl::UniformMatrix2x3fv(GLint location
,
1070 GLboolean transpose
,
1071 const GLfloat
* value
) {
1072 NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
1074 void MojoGLES2Impl::UniformMatrix2x4fv(GLint location
,
1076 GLboolean transpose
,
1077 const GLfloat
* value
) {
1078 NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
1080 void MojoGLES2Impl::UniformMatrix3fv(GLint location
,
1082 GLboolean transpose
,
1083 const GLfloat
* value
) {
1084 MojoGLES2MakeCurrent(context_
);
1085 glUniformMatrix3fv(location
, count
, transpose
, value
);
1087 void MojoGLES2Impl::UniformMatrix3x2fv(GLint location
,
1089 GLboolean transpose
,
1090 const GLfloat
* value
) {
1091 NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
1093 void MojoGLES2Impl::UniformMatrix3x4fv(GLint location
,
1095 GLboolean transpose
,
1096 const GLfloat
* value
) {
1097 NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
1099 void MojoGLES2Impl::UniformMatrix4fv(GLint location
,
1101 GLboolean transpose
,
1102 const GLfloat
* value
) {
1103 MojoGLES2MakeCurrent(context_
);
1104 glUniformMatrix4fv(location
, count
, transpose
, value
);
1106 void MojoGLES2Impl::UniformMatrix4x2fv(GLint location
,
1108 GLboolean transpose
,
1109 const GLfloat
* value
) {
1110 NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
1112 void MojoGLES2Impl::UniformMatrix4x3fv(GLint location
,
1114 GLboolean transpose
,
1115 const GLfloat
* value
) {
1116 NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
1118 void MojoGLES2Impl::UseProgram(GLuint program
) {
1119 MojoGLES2MakeCurrent(context_
);
1120 glUseProgram(program
);
1122 void MojoGLES2Impl::ValidateProgram(GLuint program
) {
1123 MojoGLES2MakeCurrent(context_
);
1124 glValidateProgram(program
);
1126 void MojoGLES2Impl::VertexAttrib1f(GLuint indx
, GLfloat x
) {
1127 MojoGLES2MakeCurrent(context_
);
1128 glVertexAttrib1f(indx
, x
);
1130 void MojoGLES2Impl::VertexAttrib1fv(GLuint indx
, const GLfloat
* values
) {
1131 MojoGLES2MakeCurrent(context_
);
1132 glVertexAttrib1fv(indx
, values
);
1134 void MojoGLES2Impl::VertexAttrib2f(GLuint indx
, GLfloat x
, GLfloat y
) {
1135 MojoGLES2MakeCurrent(context_
);
1136 glVertexAttrib2f(indx
, x
, y
);
1138 void MojoGLES2Impl::VertexAttrib2fv(GLuint indx
, const GLfloat
* values
) {
1139 MojoGLES2MakeCurrent(context_
);
1140 glVertexAttrib2fv(indx
, values
);
1142 void MojoGLES2Impl::VertexAttrib3f(GLuint indx
,
1146 MojoGLES2MakeCurrent(context_
);
1147 glVertexAttrib3f(indx
, x
, y
, z
);
1149 void MojoGLES2Impl::VertexAttrib3fv(GLuint indx
, const GLfloat
* values
) {
1150 MojoGLES2MakeCurrent(context_
);
1151 glVertexAttrib3fv(indx
, values
);
1153 void MojoGLES2Impl::VertexAttrib4f(GLuint indx
,
1158 MojoGLES2MakeCurrent(context_
);
1159 glVertexAttrib4f(indx
, x
, y
, z
, w
);
1161 void MojoGLES2Impl::VertexAttrib4fv(GLuint indx
, const GLfloat
* values
) {
1162 MojoGLES2MakeCurrent(context_
);
1163 glVertexAttrib4fv(indx
, values
);
1165 void MojoGLES2Impl::VertexAttribI4i(GLuint indx
,
1170 NOTREACHED() << "Unimplemented VertexAttribI4i.";
1172 void MojoGLES2Impl::VertexAttribI4iv(GLuint indx
, const GLint
* values
) {
1173 NOTREACHED() << "Unimplemented VertexAttribI4iv.";
1175 void MojoGLES2Impl::VertexAttribI4ui(GLuint indx
,
1180 NOTREACHED() << "Unimplemented VertexAttribI4ui.";
1182 void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx
, const GLuint
* values
) {
1183 NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
1185 void MojoGLES2Impl::VertexAttribIPointer(GLuint indx
,
1190 NOTREACHED() << "Unimplemented VertexAttribIPointer.";
1192 void MojoGLES2Impl::VertexAttribPointer(GLuint indx
,
1195 GLboolean normalized
,
1198 MojoGLES2MakeCurrent(context_
);
1199 glVertexAttribPointer(indx
, size
, type
, normalized
, stride
, ptr
);
1201 void MojoGLES2Impl::Viewport(GLint x
, GLint y
, GLsizei width
, GLsizei height
) {
1202 MojoGLES2MakeCurrent(context_
);
1203 glViewport(x
, y
, width
, height
);
1205 void MojoGLES2Impl::WaitSync(GLsync sync
, GLbitfield flags
, GLuint64 timeout
) {
1206 NOTREACHED() << "Unimplemented WaitSync.";
1208 void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0
,
1218 NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
1220 void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
1223 GLenum internalformat
,
1226 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
1228 void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target
,
1230 GLenum internalformat
,
1233 NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT.";
1235 void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target
,
1241 NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
1243 void MojoGLES2Impl::TexStorage2DEXT(GLenum target
,
1245 GLenum internalFormat
,
1248 NOTREACHED() << "Unimplemented TexStorage2DEXT.";
1250 void MojoGLES2Impl::GenQueriesEXT(GLsizei n
, GLuint
* queries
) {
1251 MojoGLES2MakeCurrent(context_
);
1252 glGenQueriesEXT(n
, queries
);
1254 void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n
, const GLuint
* queries
) {
1255 MojoGLES2MakeCurrent(context_
);
1256 glDeleteQueriesEXT(n
, queries
);
1258 GLboolean
MojoGLES2Impl::IsQueryEXT(GLuint id
) {
1259 MojoGLES2MakeCurrent(context_
);
1260 return glIsQueryEXT(id
);
1262 void MojoGLES2Impl::BeginQueryEXT(GLenum target
, GLuint id
) {
1263 MojoGLES2MakeCurrent(context_
);
1264 glBeginQueryEXT(target
, id
);
1266 void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode
) {
1267 NOTREACHED() << "Unimplemented BeginTransformFeedback.";
1269 void MojoGLES2Impl::EndQueryEXT(GLenum target
) {
1270 MojoGLES2MakeCurrent(context_
);
1271 glEndQueryEXT(target
);
1273 void MojoGLES2Impl::EndTransformFeedback() {
1274 NOTREACHED() << "Unimplemented EndTransformFeedback.";
1276 void MojoGLES2Impl::GetQueryivEXT(GLenum target
, GLenum pname
, GLint
* params
) {
1277 MojoGLES2MakeCurrent(context_
);
1278 glGetQueryivEXT(target
, pname
, params
);
1280 void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id
,
1283 MojoGLES2MakeCurrent(context_
);
1284 glGetQueryObjectuivEXT(id
, pname
, params
);
1286 void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1287 NOTREACHED() << "Unimplemented InsertEventMarkerEXT.";
1289 void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length
, const GLchar
* marker
) {
1290 NOTREACHED() << "Unimplemented PushGroupMarkerEXT.";
1292 void MojoGLES2Impl::PopGroupMarkerEXT() {
1293 NOTREACHED() << "Unimplemented PopGroupMarkerEXT.";
1295 void MojoGLES2Impl::GenVertexArraysOES(GLsizei n
, GLuint
* arrays
) {
1296 NOTREACHED() << "Unimplemented GenVertexArraysOES.";
1298 void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n
, const GLuint
* arrays
) {
1299 NOTREACHED() << "Unimplemented DeleteVertexArraysOES.";
1301 GLboolean
MojoGLES2Impl::IsVertexArrayOES(GLuint array
) {
1302 NOTREACHED() << "Unimplemented IsVertexArrayOES.";
1305 void MojoGLES2Impl::BindVertexArrayOES(GLuint array
) {
1306 NOTREACHED() << "Unimplemented BindVertexArrayOES.";
1308 void MojoGLES2Impl::SwapBuffers() {
1309 NOTREACHED() << "Unimplemented SwapBuffers.";
1311 GLuint
MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id
,
1315 NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
1318 GLboolean
MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature
) {
1319 NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
1322 void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target
, GLenum access
) {
1323 MojoGLES2MakeCurrent(context_
);
1324 return glMapBufferCHROMIUM(target
, access
);
1326 GLboolean
MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target
) {
1327 MojoGLES2MakeCurrent(context_
);
1328 return glUnmapBufferCHROMIUM(target
);
1330 void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target
,
1334 NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM.";
1337 void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem
) {
1338 NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM.";
1340 void* MojoGLES2Impl::MapBufferRange(GLenum target
,
1343 GLbitfield access
) {
1344 NOTREACHED() << "Unimplemented MapBufferRange.";
1347 GLboolean
MojoGLES2Impl::UnmapBuffer(GLenum target
) {
1348 NOTREACHED() << "Unimplemented UnmapBuffer.";
1351 void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target
,
1360 MojoGLES2MakeCurrent(context_
);
1361 return glMapTexSubImage2DCHROMIUM(target
, level
, xoffset
, yoffset
, width
,
1362 height
, format
, type
, access
);
1364 void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem
) {
1365 MojoGLES2MakeCurrent(context_
);
1366 glUnmapTexSubImage2DCHROMIUM(mem
);
1368 void MojoGLES2Impl::ResizeCHROMIUM(GLuint width
,
1370 GLfloat scale_factor
) {
1371 NOTREACHED() << "Unimplemented ResizeCHROMIUM.";
1373 const GLchar
* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
1374 NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM.";
1377 void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension
) {
1378 NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM.";
1380 void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
1381 NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM.";
1383 void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program
,
1387 NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM.";
1389 void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program
,
1393 NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
1395 void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program
,
1399 NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
1401 void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program
,
1405 NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
1407 GLuint
MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture
) {
1408 NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM.";
1411 GLuint
MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer
,
1414 GLenum internalformat
) {
1415 MojoGLES2MakeCurrent(context_
);
1416 return glCreateImageCHROMIUM(buffer
, width
, height
, internalformat
);
1418 void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id
) {
1419 MojoGLES2MakeCurrent(context_
);
1420 glDestroyImageCHROMIUM(image_id
);
1422 GLuint
MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width
,
1424 GLenum internalformat
,
1426 MojoGLES2MakeCurrent(context_
);
1427 return glCreateGpuMemoryBufferImageCHROMIUM(width
, height
, internalformat
,
1430 void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader
,
1434 NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE.";
1436 void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x
,
1440 NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM.";
1442 void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target
,
1447 NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM.";
1449 void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target
,
1452 GLint internalformat
,
1454 MojoGLES2MakeCurrent(context_
);
1455 glCopyTextureCHROMIUM(target
, source_id
, dest_id
, internalformat
, dest_type
);
1457 void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target
,
1466 MojoGLES2MakeCurrent(context_
);
1467 glCopySubTextureCHROMIUM(target
, source_id
, dest_id
, xoffset
, yoffset
, x
, y
,
1470 void MojoGLES2Impl::CompressedCopyTextureCHROMIUM(GLenum target
,
1473 NOTREACHED() << "Unimplemented CompressedCopyTextureCHROMIUM.";
1475 void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode
,
1478 GLsizei primcount
) {
1479 NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE.";
1481 void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode
,
1484 const void* indices
,
1485 GLsizei primcount
) {
1486 NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE.";
1488 void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index
, GLuint divisor
) {
1489 NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE.";
1491 void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte
* mailbox
) {
1492 MojoGLES2MakeCurrent(context_
);
1493 glGenMailboxCHROMIUM(mailbox
);
1495 void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target
,
1496 const GLbyte
* mailbox
) {
1497 MojoGLES2MakeCurrent(context_
);
1498 glProduceTextureCHROMIUM(target
, mailbox
);
1500 void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture
,
1502 const GLbyte
* mailbox
) {
1503 MojoGLES2MakeCurrent(context_
);
1504 glProduceTextureDirectCHROMIUM(texture
, target
, mailbox
);
1506 void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target
,
1507 const GLbyte
* mailbox
) {
1508 MojoGLES2MakeCurrent(context_
);
1509 glConsumeTextureCHROMIUM(target
, mailbox
);
1511 GLuint
MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target
,
1512 const GLbyte
* mailbox
) {
1513 MojoGLES2MakeCurrent(context_
);
1514 return glCreateAndConsumeTextureCHROMIUM(target
, mailbox
);
1516 void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program
,
1519 NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM.";
1521 void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n
, GLuint
* buffers
) {
1522 NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM.";
1524 void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n
,
1525 const GLuint
* valuebuffers
) {
1526 NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM.";
1528 GLboolean
MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer
) {
1529 NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM.";
1532 void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target
, GLuint valuebuffer
) {
1533 NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM.";
1535 void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target
, GLenum subscription
) {
1536 NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM.";
1538 void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target
) {
1539 NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM.";
1541 void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location
,
1543 GLenum subscription
) {
1544 NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM.";
1546 void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1547 MojoGLES2MakeCurrent(context_
);
1548 glBindTexImage2DCHROMIUM(target
, imageId
);
1550 void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target
, GLint imageId
) {
1551 MojoGLES2MakeCurrent(context_
);
1552 glReleaseTexImage2DCHROMIUM(target
, imageId
);
1554 void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name
,
1555 const char* trace_name
) {
1556 NOTREACHED() << "Unimplemented TraceBeginCHROMIUM.";
1558 void MojoGLES2Impl::TraceEndCHROMIUM() {
1559 NOTREACHED() << "Unimplemented TraceEndCHROMIUM.";
1561 void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target
,
1570 NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM.";
1572 void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target
,
1574 GLenum internalformat
,
1580 const void* pixels
) {
1581 NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM.";
1583 void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target
) {
1584 NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM.";
1586 void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() {
1587 NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM.";
1589 void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target
,
1591 const GLenum
* attachments
) {
1592 NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
1594 void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current
, GLenum other
) {
1595 NOTREACHED() << "Unimplemented LoseContextCHROMIUM.";
1597 GLuint
MojoGLES2Impl::InsertSyncPointCHROMIUM() {
1598 MojoGLES2MakeCurrent(context_
);
1599 return glInsertSyncPointCHROMIUM();
1601 void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point
) {
1602 MojoGLES2MakeCurrent(context_
);
1603 glWaitSyncPointCHROMIUM(sync_point
);
1605 void MojoGLES2Impl::DrawBuffersEXT(GLsizei count
, const GLenum
* bufs
) {
1606 NOTREACHED() << "Unimplemented DrawBuffersEXT.";
1608 void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
1609 NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM.";
1611 void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order
,
1612 GLenum plane_transform
,
1613 GLuint overlay_texture_id
,
1617 GLint bounds_height
,
1621 GLfloat uv_height
) {
1622 NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM.";
1624 void MojoGLES2Impl::SwapInterval(GLint interval
) {
1625 NOTREACHED() << "Unimplemented SwapInterval.";
1627 void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode
, const GLfloat
* m
) {
1628 NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
1630 void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode
) {
1631 NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
1633 GLenum
MojoGLES2Impl::GetGraphicsResetStatusKHR() {
1634 NOTREACHED() << "Unimplemented GetGraphicsResetStatusKHR.";
1637 void MojoGLES2Impl::BlendBarrierKHR() {
1638 NOTREACHED() << "Unimplemented BlendBarrierKHR.";