summaryrefslogtreecommitdiffstats
path: root/mojo/gpu
diff options
context:
space:
mode:
authoralhaad <alhaad@chromium.org>2015-03-23 15:57:58 -0700
committerCommit bot <commit-bot@chromium.org>2015-03-23 22:58:47 +0000
commit24be20ca55237c93ea874d435ea19fc9a42ebb69 (patch)
tree8be865ba731cf9800ecfebe91736ccf1087ad542 /mojo/gpu
parent533e541cc4cdfed4f1461e63eb19333b84a3b8da (diff)
downloadchromium_src-24be20ca55237c93ea874d435ea19fc9a42ebb69.zip
chromium_src-24be20ca55237c93ea874d435ea19fc9a42ebb69.tar.gz
chromium_src-24be20ca55237c93ea874d435ea19fc9a42ebb69.tar.bz2
Modify build_gles2_cmd_buffer.py to generate a class that implements gpu::GLES2Interace and for each entry point either defers to Mojo C thunk if we expose an entry point or check fails.
The code in its current form makes use of MojoGLES2GetGLES2Interface if html_viewer makes use but we do not have a Mojo C thunk. I'll be adding Mojo C thunks for other functions used by html_viewer and eventually remove MojoGLES2GetGLES2Interface. R=jamesr@chromium.org,davemoore@chromium.org BUG=453591 Review URL: https://codereview.chromium.org/993253003 Cr-Commit-Position: refs/heads/master@{#321886}
Diffstat (limited to 'mojo/gpu')
-rw-r--r--mojo/gpu/BUILD.gn17
-rw-r--r--mojo/gpu/DEPS4
-rw-r--r--mojo/gpu/OWNERS5
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.cc1570
-rw-r--r--mojo/gpu/mojo_gles2_impl_autogen.h754
5 files changed, 2350 insertions, 0 deletions
diff --git a/mojo/gpu/BUILD.gn b/mojo/gpu/BUILD.gn
new file mode 100644
index 0000000..41f0413
--- /dev/null
+++ b/mojo/gpu/BUILD.gn
@@ -0,0 +1,17 @@
+# Copyright 2015 The Chromium Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+source_set("mojo_gles2_implementation") {
+ sources = [
+ "mojo_gles2_impl_autogen.cc",
+ "mojo_gles2_impl_autogen.h",
+ ]
+
+ configs += [ "//build/config/compiler:no_size_t_to_int_warning" ]
+
+ deps = [
+ "//gpu/command_buffer/client:gles2_interface",
+ "//third_party/mojo/src/mojo/public/c/gles2",
+ ]
+}
diff --git a/mojo/gpu/DEPS b/mojo/gpu/DEPS
new file mode 100644
index 0000000..241389e
--- /dev/null
+++ b/mojo/gpu/DEPS
@@ -0,0 +1,4 @@
+include_rules = [
+ "+gpu/command_buffer/client",
+ "+third_party/khronos/GLES2",
+]
diff --git a/mojo/gpu/OWNERS b/mojo/gpu/OWNERS
new file mode 100644
index 0000000..cd07f4d
--- /dev/null
+++ b/mojo/gpu/OWNERS
@@ -0,0 +1,5 @@
+piman@chromium.org
+jbauman@chromium.org
+bajones@chromium.org
+zmo@chromium.org
+vmiura@chromium.org
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
new file mode 100644
index 0000000..efc1f01
--- /dev/null
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -0,0 +1,1570 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file is auto-generated from
+// gpu/command_buffer/build_gles2_cmd_buffer.py
+// It's formatted by clang-format using chromium coding style:
+// clang-format -i -style=chromium filename
+// DO NOT EDIT!
+
+#include "mojo/gpu/mojo_gles2_impl_autogen.h"
+
+#include "base/logging.h"
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_sync_point.h"
+#include "third_party/mojo/src/mojo/public/c/gles2/chromium_texture_mailbox.h"
+#include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
+
+namespace mojo {
+
+void MojoGLES2Impl::ActiveTexture(GLenum texture) {
+ MojoGLES2MakeCurrent(context_);
+ glActiveTexture(texture);
+}
+void MojoGLES2Impl::AttachShader(GLuint program, GLuint shader) {
+ MojoGLES2MakeCurrent(context_);
+ glAttachShader(program, shader);
+}
+void MojoGLES2Impl::BindAttribLocation(GLuint program,
+ GLuint index,
+ const char* name) {
+ MojoGLES2MakeCurrent(context_);
+ glBindAttribLocation(program, index, name);
+}
+void MojoGLES2Impl::BindBuffer(GLenum target, GLuint buffer) {
+ MojoGLES2MakeCurrent(context_);
+ glBindBuffer(target, buffer);
+}
+void MojoGLES2Impl::BindBufferBase(GLenum target, GLuint index, GLuint buffer) {
+ NOTREACHED() << "Unimplemented BindBufferBase.";
+}
+void MojoGLES2Impl::BindBufferRange(GLenum target,
+ GLuint index,
+ GLuint buffer,
+ GLintptr offset,
+ GLsizeiptr size) {
+ NOTREACHED() << "Unimplemented BindBufferRange.";
+}
+void MojoGLES2Impl::BindFramebuffer(GLenum target, GLuint framebuffer) {
+ MojoGLES2MakeCurrent(context_);
+ glBindFramebuffer(target, framebuffer);
+}
+void MojoGLES2Impl::BindRenderbuffer(GLenum target, GLuint renderbuffer) {
+ MojoGLES2MakeCurrent(context_);
+ glBindRenderbuffer(target, renderbuffer);
+}
+void MojoGLES2Impl::BindSampler(GLuint unit, GLuint sampler) {
+ NOTREACHED() << "Unimplemented BindSampler.";
+}
+void MojoGLES2Impl::BindTexture(GLenum target, GLuint texture) {
+ MojoGLES2MakeCurrent(context_);
+ glBindTexture(target, texture);
+}
+void MojoGLES2Impl::BindTransformFeedback(GLenum target,
+ GLuint transformfeedback) {
+ NOTREACHED() << "Unimplemented BindTransformFeedback.";
+}
+void MojoGLES2Impl::BlendColor(GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha) {
+ MojoGLES2MakeCurrent(context_);
+ glBlendColor(red, green, blue, alpha);
+}
+void MojoGLES2Impl::BlendEquation(GLenum mode) {
+ MojoGLES2MakeCurrent(context_);
+ glBlendEquation(mode);
+}
+void MojoGLES2Impl::BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
+ MojoGLES2MakeCurrent(context_);
+ glBlendEquationSeparate(modeRGB, modeAlpha);
+}
+void MojoGLES2Impl::BlendFunc(GLenum sfactor, GLenum dfactor) {
+ MojoGLES2MakeCurrent(context_);
+ glBlendFunc(sfactor, dfactor);
+}
+void MojoGLES2Impl::BlendFuncSeparate(GLenum srcRGB,
+ GLenum dstRGB,
+ GLenum srcAlpha,
+ GLenum dstAlpha) {
+ MojoGLES2MakeCurrent(context_);
+ glBlendFuncSeparate(srcRGB, dstRGB, srcAlpha, dstAlpha);
+}
+void MojoGLES2Impl::BufferData(GLenum target,
+ GLsizeiptr size,
+ const void* data,
+ GLenum usage) {
+ MojoGLES2MakeCurrent(context_);
+ glBufferData(target, size, data, usage);
+}
+void MojoGLES2Impl::BufferSubData(GLenum target,
+ GLintptr offset,
+ GLsizeiptr size,
+ const void* data) {
+ MojoGLES2MakeCurrent(context_);
+ glBufferSubData(target, offset, size, data);
+}
+GLenum MojoGLES2Impl::CheckFramebufferStatus(GLenum target) {
+ MojoGLES2MakeCurrent(context_);
+ return glCheckFramebufferStatus(target);
+}
+void MojoGLES2Impl::Clear(GLbitfield mask) {
+ MojoGLES2MakeCurrent(context_);
+ glClear(mask);
+}
+void MojoGLES2Impl::ClearBufferfi(GLenum buffer,
+ GLint drawbuffers,
+ GLfloat depth,
+ GLint stencil) {
+ NOTREACHED() << "Unimplemented ClearBufferfi.";
+}
+void MojoGLES2Impl::ClearBufferfv(GLenum buffer,
+ GLint drawbuffers,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented ClearBufferfv.";
+}
+void MojoGLES2Impl::ClearBufferiv(GLenum buffer,
+ GLint drawbuffers,
+ const GLint* value) {
+ NOTREACHED() << "Unimplemented ClearBufferiv.";
+}
+void MojoGLES2Impl::ClearBufferuiv(GLenum buffer,
+ GLint drawbuffers,
+ const GLuint* value) {
+ NOTREACHED() << "Unimplemented ClearBufferuiv.";
+}
+void MojoGLES2Impl::ClearColor(GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha) {
+ MojoGLES2MakeCurrent(context_);
+ glClearColor(red, green, blue, alpha);
+}
+void MojoGLES2Impl::ClearDepthf(GLclampf depth) {
+ MojoGLES2MakeCurrent(context_);
+ glClearDepthf(depth);
+}
+void MojoGLES2Impl::ClearStencil(GLint s) {
+ MojoGLES2MakeCurrent(context_);
+ glClearStencil(s);
+}
+GLenum MojoGLES2Impl::ClientWaitSync(GLsync sync,
+ GLbitfield flags,
+ GLuint64 timeout) {
+ NOTREACHED() << "Unimplemented ClientWaitSync.";
+ return 0;
+}
+void MojoGLES2Impl::ColorMask(GLboolean red,
+ GLboolean green,
+ GLboolean blue,
+ GLboolean alpha) {
+ MojoGLES2MakeCurrent(context_);
+ glColorMask(red, green, blue, alpha);
+}
+void MojoGLES2Impl::CompileShader(GLuint shader) {
+ MojoGLES2MakeCurrent(context_);
+ glCompileShader(shader);
+}
+void MojoGLES2Impl::CompressedTexImage2D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLsizei imageSize,
+ const void* data) {
+ MojoGLES2MakeCurrent(context_);
+ glCompressedTexImage2D(target, level, internalformat, width, height, border,
+ imageSize, data);
+}
+void MojoGLES2Impl::CompressedTexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLsizei imageSize,
+ const void* data) {
+ MojoGLES2MakeCurrent(context_);
+ glCompressedTexSubImage2D(target, level, xoffset, yoffset, width, height,
+ format, imageSize, data);
+}
+void MojoGLES2Impl::CopyBufferSubData(GLenum readtarget,
+ GLenum writetarget,
+ GLintptr readoffset,
+ GLintptr writeoffset,
+ GLsizeiptr size) {
+ NOTREACHED() << "Unimplemented CopyBufferSubData.";
+}
+void MojoGLES2Impl::CopyTexImage2D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLint border) {
+ MojoGLES2MakeCurrent(context_);
+ glCopyTexImage2D(target, level, internalformat, x, y, width, height, border);
+}
+void MojoGLES2Impl::CopyTexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) {
+ MojoGLES2MakeCurrent(context_);
+ glCopyTexSubImage2D(target, level, xoffset, yoffset, x, y, width, height);
+}
+void MojoGLES2Impl::CopyTexSubImage3D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) {
+ NOTREACHED() << "Unimplemented CopyTexSubImage3D.";
+}
+GLuint MojoGLES2Impl::CreateProgram() {
+ MojoGLES2MakeCurrent(context_);
+ return glCreateProgram();
+}
+GLuint MojoGLES2Impl::CreateShader(GLenum type) {
+ MojoGLES2MakeCurrent(context_);
+ return glCreateShader(type);
+}
+void MojoGLES2Impl::CullFace(GLenum mode) {
+ MojoGLES2MakeCurrent(context_);
+ glCullFace(mode);
+}
+void MojoGLES2Impl::DeleteBuffers(GLsizei n, const GLuint* buffers) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteBuffers(n, buffers);
+}
+void MojoGLES2Impl::DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteFramebuffers(n, framebuffers);
+}
+void MojoGLES2Impl::DeleteProgram(GLuint program) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteProgram(program);
+}
+void MojoGLES2Impl::DeleteRenderbuffers(GLsizei n,
+ const GLuint* renderbuffers) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteRenderbuffers(n, renderbuffers);
+}
+void MojoGLES2Impl::DeleteSamplers(GLsizei n, const GLuint* samplers) {
+ NOTREACHED() << "Unimplemented DeleteSamplers.";
+}
+void MojoGLES2Impl::DeleteSync(GLsync sync) {
+ NOTREACHED() << "Unimplemented DeleteSync.";
+}
+void MojoGLES2Impl::DeleteShader(GLuint shader) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteShader(shader);
+}
+void MojoGLES2Impl::DeleteTextures(GLsizei n, const GLuint* textures) {
+ MojoGLES2MakeCurrent(context_);
+ glDeleteTextures(n, textures);
+}
+void MojoGLES2Impl::DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) {
+ NOTREACHED() << "Unimplemented DeleteTransformFeedbacks.";
+}
+void MojoGLES2Impl::DepthFunc(GLenum func) {
+ MojoGLES2MakeCurrent(context_);
+ glDepthFunc(func);
+}
+void MojoGLES2Impl::DepthMask(GLboolean flag) {
+ MojoGLES2MakeCurrent(context_);
+ glDepthMask(flag);
+}
+void MojoGLES2Impl::DepthRangef(GLclampf zNear, GLclampf zFar) {
+ MojoGLES2MakeCurrent(context_);
+ glDepthRangef(zNear, zFar);
+}
+void MojoGLES2Impl::DetachShader(GLuint program, GLuint shader) {
+ MojoGLES2MakeCurrent(context_);
+ glDetachShader(program, shader);
+}
+void MojoGLES2Impl::Disable(GLenum cap) {
+ MojoGLES2MakeCurrent(context_);
+ glDisable(cap);
+}
+void MojoGLES2Impl::DisableVertexAttribArray(GLuint index) {
+ MojoGLES2MakeCurrent(context_);
+ glDisableVertexAttribArray(index);
+}
+void MojoGLES2Impl::DrawArrays(GLenum mode, GLint first, GLsizei count) {
+ MojoGLES2MakeCurrent(context_);
+ glDrawArrays(mode, first, count);
+}
+void MojoGLES2Impl::DrawElements(GLenum mode,
+ GLsizei count,
+ GLenum type,
+ const void* indices) {
+ MojoGLES2MakeCurrent(context_);
+ glDrawElements(mode, count, type, indices);
+}
+void MojoGLES2Impl::DrawRangeElements(GLenum mode,
+ GLuint start,
+ GLuint end,
+ GLsizei count,
+ GLenum type,
+ const void* indices) {
+ NOTREACHED() << "Unimplemented DrawRangeElements.";
+}
+void MojoGLES2Impl::Enable(GLenum cap) {
+ MojoGLES2MakeCurrent(context_);
+ glEnable(cap);
+}
+void MojoGLES2Impl::EnableVertexAttribArray(GLuint index) {
+ MojoGLES2MakeCurrent(context_);
+ glEnableVertexAttribArray(index);
+}
+GLsync MojoGLES2Impl::FenceSync(GLenum condition, GLbitfield flags) {
+ NOTREACHED() << "Unimplemented FenceSync.";
+ return 0;
+}
+void MojoGLES2Impl::Finish() {
+ MojoGLES2MakeCurrent(context_);
+ glFinish();
+}
+void MojoGLES2Impl::Flush() {
+ MojoGLES2MakeCurrent(context_);
+ glFlush();
+}
+void MojoGLES2Impl::FramebufferRenderbuffer(GLenum target,
+ GLenum attachment,
+ GLenum renderbuffertarget,
+ GLuint renderbuffer) {
+ MojoGLES2MakeCurrent(context_);
+ glFramebufferRenderbuffer(target, attachment, renderbuffertarget,
+ renderbuffer);
+}
+void MojoGLES2Impl::FramebufferTexture2D(GLenum target,
+ GLenum attachment,
+ GLenum textarget,
+ GLuint texture,
+ GLint level) {
+ MojoGLES2MakeCurrent(context_);
+ glFramebufferTexture2D(target, attachment, textarget, texture, level);
+}
+void MojoGLES2Impl::FramebufferTextureLayer(GLenum target,
+ GLenum attachment,
+ GLuint texture,
+ GLint level,
+ GLint layer) {
+ NOTREACHED() << "Unimplemented FramebufferTextureLayer.";
+}
+void MojoGLES2Impl::FrontFace(GLenum mode) {
+ MojoGLES2MakeCurrent(context_);
+ glFrontFace(mode);
+}
+void MojoGLES2Impl::GenBuffers(GLsizei n, GLuint* buffers) {
+ MojoGLES2MakeCurrent(context_);
+ glGenBuffers(n, buffers);
+}
+void MojoGLES2Impl::GenerateMipmap(GLenum target) {
+ MojoGLES2MakeCurrent(context_);
+ glGenerateMipmap(target);
+}
+void MojoGLES2Impl::GenFramebuffers(GLsizei n, GLuint* framebuffers) {
+ MojoGLES2MakeCurrent(context_);
+ glGenFramebuffers(n, framebuffers);
+}
+void MojoGLES2Impl::GenRenderbuffers(GLsizei n, GLuint* renderbuffers) {
+ MojoGLES2MakeCurrent(context_);
+ glGenRenderbuffers(n, renderbuffers);
+}
+void MojoGLES2Impl::GenSamplers(GLsizei n, GLuint* samplers) {
+ NOTREACHED() << "Unimplemented GenSamplers.";
+}
+void MojoGLES2Impl::GenTextures(GLsizei n, GLuint* textures) {
+ MojoGLES2MakeCurrent(context_);
+ glGenTextures(n, textures);
+}
+void MojoGLES2Impl::GenTransformFeedbacks(GLsizei n, GLuint* ids) {
+ NOTREACHED() << "Unimplemented GenTransformFeedbacks.";
+}
+void MojoGLES2Impl::GetActiveAttrib(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* size,
+ GLenum* type,
+ char* name) {
+ MojoGLES2MakeCurrent(context_);
+ glGetActiveAttrib(program, index, bufsize, length, size, type, name);
+}
+void MojoGLES2Impl::GetActiveUniform(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* size,
+ GLenum* type,
+ char* name) {
+ MojoGLES2MakeCurrent(context_);
+ glGetActiveUniform(program, index, bufsize, length, size, type, name);
+}
+void MojoGLES2Impl::GetActiveUniformBlockiv(GLuint program,
+ GLuint index,
+ GLenum pname,
+ GLint* params) {
+ NOTREACHED() << "Unimplemented GetActiveUniformBlockiv.";
+}
+void MojoGLES2Impl::GetActiveUniformBlockName(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* name) {
+ NOTREACHED() << "Unimplemented GetActiveUniformBlockName.";
+}
+void MojoGLES2Impl::GetActiveUniformsiv(GLuint program,
+ GLsizei count,
+ const GLuint* indices,
+ GLenum pname,
+ GLint* params) {
+ NOTREACHED() << "Unimplemented GetActiveUniformsiv.";
+}
+void MojoGLES2Impl::GetAttachedShaders(GLuint program,
+ GLsizei maxcount,
+ GLsizei* count,
+ GLuint* shaders) {
+ MojoGLES2MakeCurrent(context_);
+ glGetAttachedShaders(program, maxcount, count, shaders);
+}
+GLint MojoGLES2Impl::GetAttribLocation(GLuint program, const char* name) {
+ MojoGLES2MakeCurrent(context_);
+ return glGetAttribLocation(program, name);
+}
+void MojoGLES2Impl::GetBooleanv(GLenum pname, GLboolean* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetBooleanv(pname, params);
+}
+void MojoGLES2Impl::GetBufferParameteriv(GLenum target,
+ GLenum pname,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetBufferParameteriv(target, pname, params);
+}
+GLenum MojoGLES2Impl::GetError() {
+ MojoGLES2MakeCurrent(context_);
+ return glGetError();
+}
+void MojoGLES2Impl::GetFloatv(GLenum pname, GLfloat* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetFloatv(pname, params);
+}
+GLint MojoGLES2Impl::GetFragDataLocation(GLuint program, const char* name) {
+ NOTREACHED() << "Unimplemented GetFragDataLocation.";
+ return 0;
+}
+void MojoGLES2Impl::GetFramebufferAttachmentParameteriv(GLenum target,
+ GLenum attachment,
+ GLenum pname,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetFramebufferAttachmentParameteriv(target, attachment, pname, params);
+}
+void MojoGLES2Impl::GetIntegerv(GLenum pname, GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetIntegerv(pname, params);
+}
+void MojoGLES2Impl::GetInternalformativ(GLenum target,
+ GLenum format,
+ GLenum pname,
+ GLsizei bufSize,
+ GLint* params) {
+ NOTREACHED() << "Unimplemented GetInternalformativ.";
+}
+void MojoGLES2Impl::GetProgramiv(GLuint program, GLenum pname, GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetProgramiv(program, pname, params);
+}
+void MojoGLES2Impl::GetProgramInfoLog(GLuint program,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* infolog) {
+ MojoGLES2MakeCurrent(context_);
+ glGetProgramInfoLog(program, bufsize, length, infolog);
+}
+void MojoGLES2Impl::GetRenderbufferParameteriv(GLenum target,
+ GLenum pname,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetRenderbufferParameteriv(target, pname, params);
+}
+void MojoGLES2Impl::GetSamplerParameterfv(GLuint sampler,
+ GLenum pname,
+ GLfloat* params) {
+ NOTREACHED() << "Unimplemented GetSamplerParameterfv.";
+}
+void MojoGLES2Impl::GetSamplerParameteriv(GLuint sampler,
+ GLenum pname,
+ GLint* params) {
+ NOTREACHED() << "Unimplemented GetSamplerParameteriv.";
+}
+void MojoGLES2Impl::GetShaderiv(GLuint shader, GLenum pname, GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetShaderiv(shader, pname, params);
+}
+void MojoGLES2Impl::GetShaderInfoLog(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* infolog) {
+ MojoGLES2MakeCurrent(context_);
+ glGetShaderInfoLog(shader, bufsize, length, infolog);
+}
+void MojoGLES2Impl::GetShaderPrecisionFormat(GLenum shadertype,
+ GLenum precisiontype,
+ GLint* range,
+ GLint* precision) {
+ MojoGLES2MakeCurrent(context_);
+ glGetShaderPrecisionFormat(shadertype, precisiontype, range, precision);
+}
+void MojoGLES2Impl::GetShaderSource(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* source) {
+ MojoGLES2MakeCurrent(context_);
+ glGetShaderSource(shader, bufsize, length, source);
+}
+const GLubyte* MojoGLES2Impl::GetString(GLenum name) {
+ MojoGLES2MakeCurrent(context_);
+ return glGetString(name);
+}
+void MojoGLES2Impl::GetSynciv(GLsync sync,
+ GLenum pname,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* values) {
+ NOTREACHED() << "Unimplemented GetSynciv.";
+}
+void MojoGLES2Impl::GetTexParameterfv(GLenum target,
+ GLenum pname,
+ GLfloat* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetTexParameterfv(target, pname, params);
+}
+void MojoGLES2Impl::GetTexParameteriv(GLenum target,
+ GLenum pname,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetTexParameteriv(target, pname, params);
+}
+void MojoGLES2Impl::GetTransformFeedbackVarying(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLsizei* size,
+ GLenum* type,
+ char* name) {
+ NOTREACHED() << "Unimplemented GetTransformFeedbackVarying.";
+}
+GLuint MojoGLES2Impl::GetUniformBlockIndex(GLuint program, const char* name) {
+ NOTREACHED() << "Unimplemented GetUniformBlockIndex.";
+ return 0;
+}
+void MojoGLES2Impl::GetUniformfv(GLuint program,
+ GLint location,
+ GLfloat* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetUniformfv(program, location, params);
+}
+void MojoGLES2Impl::GetUniformiv(GLuint program,
+ GLint location,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetUniformiv(program, location, params);
+}
+void MojoGLES2Impl::GetUniformIndices(GLuint program,
+ GLsizei count,
+ const char* const* names,
+ GLuint* indices) {
+ NOTREACHED() << "Unimplemented GetUniformIndices.";
+}
+GLint MojoGLES2Impl::GetUniformLocation(GLuint program, const char* name) {
+ MojoGLES2MakeCurrent(context_);
+ return glGetUniformLocation(program, name);
+}
+void MojoGLES2Impl::GetVertexAttribfv(GLuint index,
+ GLenum pname,
+ GLfloat* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetVertexAttribfv(index, pname, params);
+}
+void MojoGLES2Impl::GetVertexAttribiv(GLuint index,
+ GLenum pname,
+ GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glGetVertexAttribiv(index, pname, params);
+}
+void MojoGLES2Impl::GetVertexAttribPointerv(GLuint index,
+ GLenum pname,
+ void** pointer) {
+ MojoGLES2MakeCurrent(context_);
+ glGetVertexAttribPointerv(index, pname, pointer);
+}
+void MojoGLES2Impl::Hint(GLenum target, GLenum mode) {
+ MojoGLES2MakeCurrent(context_);
+ glHint(target, mode);
+}
+void MojoGLES2Impl::InvalidateFramebuffer(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) {
+ NOTREACHED() << "Unimplemented InvalidateFramebuffer.";
+}
+void MojoGLES2Impl::InvalidateSubFramebuffer(GLenum target,
+ GLsizei count,
+ const GLenum* attachments,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) {
+ NOTREACHED() << "Unimplemented InvalidateSubFramebuffer.";
+}
+GLboolean MojoGLES2Impl::IsBuffer(GLuint buffer) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsBuffer(buffer);
+}
+GLboolean MojoGLES2Impl::IsEnabled(GLenum cap) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsEnabled(cap);
+}
+GLboolean MojoGLES2Impl::IsFramebuffer(GLuint framebuffer) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsFramebuffer(framebuffer);
+}
+GLboolean MojoGLES2Impl::IsProgram(GLuint program) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsProgram(program);
+}
+GLboolean MojoGLES2Impl::IsRenderbuffer(GLuint renderbuffer) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsRenderbuffer(renderbuffer);
+}
+GLboolean MojoGLES2Impl::IsSampler(GLuint sampler) {
+ NOTREACHED() << "Unimplemented IsSampler.";
+ return 0;
+}
+GLboolean MojoGLES2Impl::IsShader(GLuint shader) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsShader(shader);
+}
+GLboolean MojoGLES2Impl::IsSync(GLsync sync) {
+ NOTREACHED() << "Unimplemented IsSync.";
+ return 0;
+}
+GLboolean MojoGLES2Impl::IsTexture(GLuint texture) {
+ MojoGLES2MakeCurrent(context_);
+ return glIsTexture(texture);
+}
+GLboolean MojoGLES2Impl::IsTransformFeedback(GLuint transformfeedback) {
+ NOTREACHED() << "Unimplemented IsTransformFeedback.";
+ return 0;
+}
+void MojoGLES2Impl::LineWidth(GLfloat width) {
+ MojoGLES2MakeCurrent(context_);
+ glLineWidth(width);
+}
+void MojoGLES2Impl::LinkProgram(GLuint program) {
+ MojoGLES2MakeCurrent(context_);
+ glLinkProgram(program);
+}
+void MojoGLES2Impl::PauseTransformFeedback() {
+ NOTREACHED() << "Unimplemented PauseTransformFeedback.";
+}
+void MojoGLES2Impl::PixelStorei(GLenum pname, GLint param) {
+ MojoGLES2MakeCurrent(context_);
+ glPixelStorei(pname, param);
+}
+void MojoGLES2Impl::PolygonOffset(GLfloat factor, GLfloat units) {
+ MojoGLES2MakeCurrent(context_);
+ glPolygonOffset(factor, units);
+}
+void MojoGLES2Impl::ReadBuffer(GLenum src) {
+ NOTREACHED() << "Unimplemented ReadBuffer.";
+}
+void MojoGLES2Impl::ReadPixels(GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ void* pixels) {
+ MojoGLES2MakeCurrent(context_);
+ glReadPixels(x, y, width, height, format, type, pixels);
+}
+void MojoGLES2Impl::ReleaseShaderCompiler() {
+ MojoGLES2MakeCurrent(context_);
+ glReleaseShaderCompiler();
+}
+void MojoGLES2Impl::RenderbufferStorage(GLenum target,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) {
+ MojoGLES2MakeCurrent(context_);
+ glRenderbufferStorage(target, internalformat, width, height);
+}
+void MojoGLES2Impl::ResumeTransformFeedback() {
+ NOTREACHED() << "Unimplemented ResumeTransformFeedback.";
+}
+void MojoGLES2Impl::SampleCoverage(GLclampf value, GLboolean invert) {
+ MojoGLES2MakeCurrent(context_);
+ glSampleCoverage(value, invert);
+}
+void MojoGLES2Impl::SamplerParameterf(GLuint sampler,
+ GLenum pname,
+ GLfloat param) {
+ NOTREACHED() << "Unimplemented SamplerParameterf.";
+}
+void MojoGLES2Impl::SamplerParameterfv(GLuint sampler,
+ GLenum pname,
+ const GLfloat* params) {
+ NOTREACHED() << "Unimplemented SamplerParameterfv.";
+}
+void MojoGLES2Impl::SamplerParameteri(GLuint sampler,
+ GLenum pname,
+ GLint param) {
+ NOTREACHED() << "Unimplemented SamplerParameteri.";
+}
+void MojoGLES2Impl::SamplerParameteriv(GLuint sampler,
+ GLenum pname,
+ const GLint* params) {
+ NOTREACHED() << "Unimplemented SamplerParameteriv.";
+}
+void MojoGLES2Impl::Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
+ MojoGLES2MakeCurrent(context_);
+ glScissor(x, y, width, height);
+}
+void MojoGLES2Impl::ShaderBinary(GLsizei n,
+ const GLuint* shaders,
+ GLenum binaryformat,
+ const void* binary,
+ GLsizei length) {
+ MojoGLES2MakeCurrent(context_);
+ glShaderBinary(n, shaders, binaryformat, binary, length);
+}
+void MojoGLES2Impl::ShaderSource(GLuint shader,
+ GLsizei count,
+ const GLchar* const* str,
+ const GLint* length) {
+ MojoGLES2MakeCurrent(context_);
+ glShaderSource(shader, count, str, length);
+}
+void MojoGLES2Impl::ShallowFinishCHROMIUM() {
+ NOTREACHED() << "Unimplemented ShallowFinishCHROMIUM.";
+}
+void MojoGLES2Impl::ShallowFlushCHROMIUM() {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))->ShallowFlushCHROMIUM();
+}
+void MojoGLES2Impl::OrderingBarrierCHROMIUM() {
+ NOTREACHED() << "Unimplemented OrderingBarrierCHROMIUM.";
+}
+void MojoGLES2Impl::StencilFunc(GLenum func, GLint ref, GLuint mask) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilFunc(func, ref, mask);
+}
+void MojoGLES2Impl::StencilFuncSeparate(GLenum face,
+ GLenum func,
+ GLint ref,
+ GLuint mask) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilFuncSeparate(face, func, ref, mask);
+}
+void MojoGLES2Impl::StencilMask(GLuint mask) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilMask(mask);
+}
+void MojoGLES2Impl::StencilMaskSeparate(GLenum face, GLuint mask) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilMaskSeparate(face, mask);
+}
+void MojoGLES2Impl::StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilOp(fail, zfail, zpass);
+}
+void MojoGLES2Impl::StencilOpSeparate(GLenum face,
+ GLenum fail,
+ GLenum zfail,
+ GLenum zpass) {
+ MojoGLES2MakeCurrent(context_);
+ glStencilOpSeparate(face, fail, zfail, zpass);
+}
+void MojoGLES2Impl::TexImage2D(GLenum target,
+ GLint level,
+ GLint internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) {
+ MojoGLES2MakeCurrent(context_);
+ glTexImage2D(target, level, internalformat, width, height, border, format,
+ type, pixels);
+}
+void MojoGLES2Impl::TexImage3D(GLenum target,
+ GLint level,
+ GLint internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) {
+ NOTREACHED() << "Unimplemented TexImage3D.";
+}
+void MojoGLES2Impl::TexParameterf(GLenum target, GLenum pname, GLfloat param) {
+ MojoGLES2MakeCurrent(context_);
+ glTexParameterf(target, pname, param);
+}
+void MojoGLES2Impl::TexParameterfv(GLenum target,
+ GLenum pname,
+ const GLfloat* params) {
+ MojoGLES2MakeCurrent(context_);
+ glTexParameterfv(target, pname, params);
+}
+void MojoGLES2Impl::TexParameteri(GLenum target, GLenum pname, GLint param) {
+ MojoGLES2MakeCurrent(context_);
+ glTexParameteri(target, pname, param);
+}
+void MojoGLES2Impl::TexParameteriv(GLenum target,
+ GLenum pname,
+ const GLint* params) {
+ MojoGLES2MakeCurrent(context_);
+ glTexParameteriv(target, pname, params);
+}
+void MojoGLES2Impl::TexStorage3D(GLenum target,
+ GLsizei levels,
+ GLenum internalFormat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth) {
+ NOTREACHED() << "Unimplemented TexStorage3D.";
+}
+void MojoGLES2Impl::TexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ const void* pixels) {
+ MojoGLES2MakeCurrent(context_);
+ glTexSubImage2D(target, level, xoffset, yoffset, width, height, format, type,
+ pixels);
+}
+void MojoGLES2Impl::TexSubImage3D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLenum format,
+ GLenum type,
+ const void* pixels) {
+ NOTREACHED() << "Unimplemented TexSubImage3D.";
+}
+void MojoGLES2Impl::TransformFeedbackVaryings(GLuint program,
+ GLsizei count,
+ const char* const* varyings,
+ GLenum buffermode) {
+ NOTREACHED() << "Unimplemented TransformFeedbackVaryings.";
+}
+void MojoGLES2Impl::Uniform1f(GLint location, GLfloat x) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform1f(location, x);
+}
+void MojoGLES2Impl::Uniform1fv(GLint location,
+ GLsizei count,
+ const GLfloat* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform1fv(location, count, v);
+}
+void MojoGLES2Impl::Uniform1i(GLint location, GLint x) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform1i(location, x);
+}
+void MojoGLES2Impl::Uniform1iv(GLint location, GLsizei count, const GLint* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform1iv(location, count, v);
+}
+void MojoGLES2Impl::Uniform1ui(GLint location, GLuint x) {
+ NOTREACHED() << "Unimplemented Uniform1ui.";
+}
+void MojoGLES2Impl::Uniform1uiv(GLint location,
+ GLsizei count,
+ const GLuint* v) {
+ NOTREACHED() << "Unimplemented Uniform1uiv.";
+}
+void MojoGLES2Impl::Uniform2f(GLint location, GLfloat x, GLfloat y) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform2f(location, x, y);
+}
+void MojoGLES2Impl::Uniform2fv(GLint location,
+ GLsizei count,
+ const GLfloat* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform2fv(location, count, v);
+}
+void MojoGLES2Impl::Uniform2i(GLint location, GLint x, GLint y) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform2i(location, x, y);
+}
+void MojoGLES2Impl::Uniform2iv(GLint location, GLsizei count, const GLint* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform2iv(location, count, v);
+}
+void MojoGLES2Impl::Uniform2ui(GLint location, GLuint x, GLuint y) {
+ NOTREACHED() << "Unimplemented Uniform2ui.";
+}
+void MojoGLES2Impl::Uniform2uiv(GLint location,
+ GLsizei count,
+ const GLuint* v) {
+ NOTREACHED() << "Unimplemented Uniform2uiv.";
+}
+void MojoGLES2Impl::Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform3f(location, x, y, z);
+}
+void MojoGLES2Impl::Uniform3fv(GLint location,
+ GLsizei count,
+ const GLfloat* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform3fv(location, count, v);
+}
+void MojoGLES2Impl::Uniform3i(GLint location, GLint x, GLint y, GLint z) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform3i(location, x, y, z);
+}
+void MojoGLES2Impl::Uniform3iv(GLint location, GLsizei count, const GLint* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform3iv(location, count, v);
+}
+void MojoGLES2Impl::Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) {
+ NOTREACHED() << "Unimplemented Uniform3ui.";
+}
+void MojoGLES2Impl::Uniform3uiv(GLint location,
+ GLsizei count,
+ const GLuint* v) {
+ NOTREACHED() << "Unimplemented Uniform3uiv.";
+}
+void MojoGLES2Impl::Uniform4f(GLint location,
+ GLfloat x,
+ GLfloat y,
+ GLfloat z,
+ GLfloat w) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform4f(location, x, y, z, w);
+}
+void MojoGLES2Impl::Uniform4fv(GLint location,
+ GLsizei count,
+ const GLfloat* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform4fv(location, count, v);
+}
+void MojoGLES2Impl::Uniform4i(GLint location,
+ GLint x,
+ GLint y,
+ GLint z,
+ GLint w) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform4i(location, x, y, z, w);
+}
+void MojoGLES2Impl::Uniform4iv(GLint location, GLsizei count, const GLint* v) {
+ MojoGLES2MakeCurrent(context_);
+ glUniform4iv(location, count, v);
+}
+void MojoGLES2Impl::Uniform4ui(GLint location,
+ GLuint x,
+ GLuint y,
+ GLuint z,
+ GLuint w) {
+ NOTREACHED() << "Unimplemented Uniform4ui.";
+}
+void MojoGLES2Impl::Uniform4uiv(GLint location,
+ GLsizei count,
+ const GLuint* v) {
+ NOTREACHED() << "Unimplemented Uniform4uiv.";
+}
+void MojoGLES2Impl::UniformBlockBinding(GLuint program,
+ GLuint index,
+ GLuint binding) {
+ NOTREACHED() << "Unimplemented UniformBlockBinding.";
+}
+void MojoGLES2Impl::UniformMatrix2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ MojoGLES2MakeCurrent(context_);
+ glUniformMatrix2fv(location, count, transpose, value);
+}
+void MojoGLES2Impl::UniformMatrix2x3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix2x3fv.";
+}
+void MojoGLES2Impl::UniformMatrix2x4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix2x4fv.";
+}
+void MojoGLES2Impl::UniformMatrix3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ MojoGLES2MakeCurrent(context_);
+ glUniformMatrix3fv(location, count, transpose, value);
+}
+void MojoGLES2Impl::UniformMatrix3x2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix3x2fv.";
+}
+void MojoGLES2Impl::UniformMatrix3x4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix3x4fv.";
+}
+void MojoGLES2Impl::UniformMatrix4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ MojoGLES2MakeCurrent(context_);
+ glUniformMatrix4fv(location, count, transpose, value);
+}
+void MojoGLES2Impl::UniformMatrix4x2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix4x2fv.";
+}
+void MojoGLES2Impl::UniformMatrix4x3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) {
+ NOTREACHED() << "Unimplemented UniformMatrix4x3fv.";
+}
+void MojoGLES2Impl::UseProgram(GLuint program) {
+ MojoGLES2MakeCurrent(context_);
+ glUseProgram(program);
+}
+void MojoGLES2Impl::ValidateProgram(GLuint program) {
+ MojoGLES2MakeCurrent(context_);
+ glValidateProgram(program);
+}
+void MojoGLES2Impl::VertexAttrib1f(GLuint indx, GLfloat x) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib1f(indx, x);
+}
+void MojoGLES2Impl::VertexAttrib1fv(GLuint indx, const GLfloat* values) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib1fv(indx, values);
+}
+void MojoGLES2Impl::VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib2f(indx, x, y);
+}
+void MojoGLES2Impl::VertexAttrib2fv(GLuint indx, const GLfloat* values) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib2fv(indx, values);
+}
+void MojoGLES2Impl::VertexAttrib3f(GLuint indx,
+ GLfloat x,
+ GLfloat y,
+ GLfloat z) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib3f(indx, x, y, z);
+}
+void MojoGLES2Impl::VertexAttrib3fv(GLuint indx, const GLfloat* values) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib3fv(indx, values);
+}
+void MojoGLES2Impl::VertexAttrib4f(GLuint indx,
+ GLfloat x,
+ GLfloat y,
+ GLfloat z,
+ GLfloat w) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib4f(indx, x, y, z, w);
+}
+void MojoGLES2Impl::VertexAttrib4fv(GLuint indx, const GLfloat* values) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttrib4fv(indx, values);
+}
+void MojoGLES2Impl::VertexAttribI4i(GLuint indx,
+ GLint x,
+ GLint y,
+ GLint z,
+ GLint w) {
+ NOTREACHED() << "Unimplemented VertexAttribI4i.";
+}
+void MojoGLES2Impl::VertexAttribI4iv(GLuint indx, const GLint* values) {
+ NOTREACHED() << "Unimplemented VertexAttribI4iv.";
+}
+void MojoGLES2Impl::VertexAttribI4ui(GLuint indx,
+ GLuint x,
+ GLuint y,
+ GLuint z,
+ GLuint w) {
+ NOTREACHED() << "Unimplemented VertexAttribI4ui.";
+}
+void MojoGLES2Impl::VertexAttribI4uiv(GLuint indx, const GLuint* values) {
+ NOTREACHED() << "Unimplemented VertexAttribI4uiv.";
+}
+void MojoGLES2Impl::VertexAttribIPointer(GLuint indx,
+ GLint size,
+ GLenum type,
+ GLsizei stride,
+ const void* ptr) {
+ NOTREACHED() << "Unimplemented VertexAttribIPointer.";
+}
+void MojoGLES2Impl::VertexAttribPointer(GLuint indx,
+ GLint size,
+ GLenum type,
+ GLboolean normalized,
+ GLsizei stride,
+ const void* ptr) {
+ MojoGLES2MakeCurrent(context_);
+ glVertexAttribPointer(indx, size, type, normalized, stride, ptr);
+}
+void MojoGLES2Impl::Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
+ MojoGLES2MakeCurrent(context_);
+ glViewport(x, y, width, height);
+}
+void MojoGLES2Impl::WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) {
+ NOTREACHED() << "Unimplemented WaitSync.";
+}
+void MojoGLES2Impl::BlitFramebufferCHROMIUM(GLint srcX0,
+ GLint srcY0,
+ GLint srcX1,
+ GLint srcY1,
+ GLint dstX0,
+ GLint dstY0,
+ GLint dstX1,
+ GLint dstY1,
+ GLbitfield mask,
+ GLenum filter) {
+ NOTREACHED() << "Unimplemented BlitFramebufferCHROMIUM.";
+}
+void MojoGLES2Impl::RenderbufferStorageMultisampleCHROMIUM(
+ GLenum target,
+ GLsizei samples,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) {
+ NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleCHROMIUM.";
+}
+void MojoGLES2Impl::RenderbufferStorageMultisampleEXT(GLenum target,
+ GLsizei samples,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) {
+ NOTREACHED() << "Unimplemented RenderbufferStorageMultisampleEXT.";
+}
+void MojoGLES2Impl::FramebufferTexture2DMultisampleEXT(GLenum target,
+ GLenum attachment,
+ GLenum textarget,
+ GLuint texture,
+ GLint level,
+ GLsizei samples) {
+ NOTREACHED() << "Unimplemented FramebufferTexture2DMultisampleEXT.";
+}
+void MojoGLES2Impl::TexStorage2DEXT(GLenum target,
+ GLsizei levels,
+ GLenum internalFormat,
+ GLsizei width,
+ GLsizei height) {
+ NOTREACHED() << "Unimplemented TexStorage2DEXT.";
+}
+void MojoGLES2Impl::GenQueriesEXT(GLsizei n, GLuint* queries) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))->GenQueriesEXT(n, queries);
+}
+void MojoGLES2Impl::DeleteQueriesEXT(GLsizei n, const GLuint* queries) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))
+ ->DeleteQueriesEXT(n, queries);
+}
+GLboolean MojoGLES2Impl::IsQueryEXT(GLuint id) {
+ NOTREACHED() << "Unimplemented IsQueryEXT.";
+ return 0;
+}
+void MojoGLES2Impl::BeginQueryEXT(GLenum target, GLuint id) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))->BeginQueryEXT(target, id);
+}
+void MojoGLES2Impl::BeginTransformFeedback(GLenum primitivemode) {
+ NOTREACHED() << "Unimplemented BeginTransformFeedback.";
+}
+void MojoGLES2Impl::EndQueryEXT(GLenum target) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))->EndQueryEXT(target);
+}
+void MojoGLES2Impl::EndTransformFeedback() {
+ NOTREACHED() << "Unimplemented EndTransformFeedback.";
+}
+void MojoGLES2Impl::GetQueryivEXT(GLenum target, GLenum pname, GLint* params) {
+ NOTREACHED() << "Unimplemented GetQueryivEXT.";
+}
+void MojoGLES2Impl::GetQueryObjectuivEXT(GLuint id,
+ GLenum pname,
+ GLuint* params) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))
+ ->GetQueryObjectuivEXT(id, pname, params);
+}
+void MojoGLES2Impl::InsertEventMarkerEXT(GLsizei length, const GLchar* marker) {
+ NOTREACHED() << "Unimplemented InsertEventMarkerEXT.";
+}
+void MojoGLES2Impl::PushGroupMarkerEXT(GLsizei length, const GLchar* marker) {
+ NOTREACHED() << "Unimplemented PushGroupMarkerEXT.";
+}
+void MojoGLES2Impl::PopGroupMarkerEXT() {
+ NOTREACHED() << "Unimplemented PopGroupMarkerEXT.";
+}
+void MojoGLES2Impl::GenVertexArraysOES(GLsizei n, GLuint* arrays) {
+ NOTREACHED() << "Unimplemented GenVertexArraysOES.";
+}
+void MojoGLES2Impl::DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) {
+ NOTREACHED() << "Unimplemented DeleteVertexArraysOES.";
+}
+GLboolean MojoGLES2Impl::IsVertexArrayOES(GLuint array) {
+ NOTREACHED() << "Unimplemented IsVertexArrayOES.";
+ return 0;
+}
+void MojoGLES2Impl::BindVertexArrayOES(GLuint array) {
+ NOTREACHED() << "Unimplemented BindVertexArrayOES.";
+}
+void MojoGLES2Impl::SwapBuffers() {
+ NOTREACHED() << "Unimplemented SwapBuffers.";
+}
+GLuint MojoGLES2Impl::GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
+ GLsizei count,
+ GLenum type,
+ GLuint offset) {
+ NOTREACHED() << "Unimplemented GetMaxValueInBufferCHROMIUM.";
+ return 0;
+}
+GLboolean MojoGLES2Impl::EnableFeatureCHROMIUM(const char* feature) {
+ NOTREACHED() << "Unimplemented EnableFeatureCHROMIUM.";
+ return 0;
+}
+void* MojoGLES2Impl::MapBufferCHROMIUM(GLuint target, GLenum access) {
+ NOTREACHED() << "Unimplemented MapBufferCHROMIUM.";
+ return 0;
+}
+GLboolean MojoGLES2Impl::UnmapBufferCHROMIUM(GLuint target) {
+ NOTREACHED() << "Unimplemented UnmapBufferCHROMIUM.";
+ return 0;
+}
+void* MojoGLES2Impl::MapBufferSubDataCHROMIUM(GLuint target,
+ GLintptr offset,
+ GLsizeiptr size,
+ GLenum access) {
+ NOTREACHED() << "Unimplemented MapBufferSubDataCHROMIUM.";
+ return 0;
+}
+void MojoGLES2Impl::UnmapBufferSubDataCHROMIUM(const void* mem) {
+ NOTREACHED() << "Unimplemented UnmapBufferSubDataCHROMIUM.";
+}
+void* MojoGLES2Impl::MapBufferRange(GLenum target,
+ GLintptr offset,
+ GLsizeiptr size,
+ GLbitfield access) {
+ NOTREACHED() << "Unimplemented MapBufferRange.";
+ return 0;
+}
+GLboolean MojoGLES2Impl::UnmapBuffer(GLenum target) {
+ NOTREACHED() << "Unimplemented UnmapBuffer.";
+ return 0;
+}
+void* MojoGLES2Impl::MapTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ GLenum access) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))
+ ->MapTexSubImage2DCHROMIUM(target, level, xoffset, yoffset, width, height,
+ format, type, access);
+}
+void MojoGLES2Impl::UnmapTexSubImage2DCHROMIUM(const void* mem) {
+ return static_cast<gpu::gles2::GLES2Interface*>(
+ MojoGLES2GetGLES2Interface(context_))
+ ->UnmapTexSubImage2DCHROMIUM(mem);
+}
+void MojoGLES2Impl::ResizeCHROMIUM(GLuint width,
+ GLuint height,
+ GLfloat scale_factor) {
+ NOTREACHED() << "Unimplemented ResizeCHROMIUM.";
+}
+const GLchar* MojoGLES2Impl::GetRequestableExtensionsCHROMIUM() {
+ NOTREACHED() << "Unimplemented GetRequestableExtensionsCHROMIUM.";
+ return 0;
+}
+void MojoGLES2Impl::RequestExtensionCHROMIUM(const char* extension) {
+ NOTREACHED() << "Unimplemented RequestExtensionCHROMIUM.";
+}
+void MojoGLES2Impl::RateLimitOffscreenContextCHROMIUM() {
+ NOTREACHED() << "Unimplemented RateLimitOffscreenContextCHROMIUM.";
+}
+void MojoGLES2Impl::GetProgramInfoCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) {
+ NOTREACHED() << "Unimplemented GetProgramInfoCHROMIUM.";
+}
+void MojoGLES2Impl::GetUniformBlocksCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) {
+ NOTREACHED() << "Unimplemented GetUniformBlocksCHROMIUM.";
+}
+void MojoGLES2Impl::GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) {
+ NOTREACHED() << "Unimplemented GetTransformFeedbackVaryingsCHROMIUM.";
+}
+void MojoGLES2Impl::GetUniformsES3CHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) {
+ NOTREACHED() << "Unimplemented GetUniformsES3CHROMIUM.";
+}
+GLuint MojoGLES2Impl::CreateStreamTextureCHROMIUM(GLuint texture) {
+ NOTREACHED() << "Unimplemented CreateStreamTextureCHROMIUM.";
+ return 0;
+}
+GLuint MojoGLES2Impl::CreateImageCHROMIUM(ClientBuffer buffer,
+ GLsizei width,
+ GLsizei height,
+ GLenum internalformat) {
+ NOTREACHED() << "Unimplemented CreateImageCHROMIUM.";
+ return 0;
+}
+void MojoGLES2Impl::DestroyImageCHROMIUM(GLuint image_id) {
+ NOTREACHED() << "Unimplemented DestroyImageCHROMIUM.";
+}
+GLuint MojoGLES2Impl::CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
+ GLsizei height,
+ GLenum internalformat,
+ GLenum usage) {
+ NOTREACHED() << "Unimplemented CreateGpuMemoryBufferImageCHROMIUM.";
+ return 0;
+}
+void MojoGLES2Impl::GetTranslatedShaderSourceANGLE(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* source) {
+ NOTREACHED() << "Unimplemented GetTranslatedShaderSourceANGLE.";
+}
+void MojoGLES2Impl::PostSubBufferCHROMIUM(GLint x,
+ GLint y,
+ GLint width,
+ GLint height) {
+ NOTREACHED() << "Unimplemented PostSubBufferCHROMIUM.";
+}
+void MojoGLES2Impl::TexImageIOSurface2DCHROMIUM(GLenum target,
+ GLsizei width,
+ GLsizei height,
+ GLuint ioSurfaceId,
+ GLuint plane) {
+ NOTREACHED() << "Unimplemented TexImageIOSurface2DCHROMIUM.";
+}
+void MojoGLES2Impl::CopyTextureCHROMIUM(GLenum target,
+ GLenum source_id,
+ GLenum dest_id,
+ GLint internalformat,
+ GLenum dest_type) {
+ NOTREACHED() << "Unimplemented CopyTextureCHROMIUM.";
+}
+void MojoGLES2Impl::CopySubTextureCHROMIUM(GLenum target,
+ GLenum source_id,
+ GLenum dest_id,
+ GLint xoffset,
+ GLint yoffset) {
+ NOTREACHED() << "Unimplemented CopySubTextureCHROMIUM.";
+}
+void MojoGLES2Impl::DrawArraysInstancedANGLE(GLenum mode,
+ GLint first,
+ GLsizei count,
+ GLsizei primcount) {
+ NOTREACHED() << "Unimplemented DrawArraysInstancedANGLE.";
+}
+void MojoGLES2Impl::DrawElementsInstancedANGLE(GLenum mode,
+ GLsizei count,
+ GLenum type,
+ const void* indices,
+ GLsizei primcount) {
+ NOTREACHED() << "Unimplemented DrawElementsInstancedANGLE.";
+}
+void MojoGLES2Impl::VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
+ NOTREACHED() << "Unimplemented VertexAttribDivisorANGLE.";
+}
+void MojoGLES2Impl::GenMailboxCHROMIUM(GLbyte* mailbox) {
+ MojoGLES2MakeCurrent(context_);
+ glGenMailboxCHROMIUM(mailbox);
+}
+void MojoGLES2Impl::ProduceTextureCHROMIUM(GLenum target,
+ const GLbyte* mailbox) {
+ MojoGLES2MakeCurrent(context_);
+ glProduceTextureCHROMIUM(target, mailbox);
+}
+void MojoGLES2Impl::ProduceTextureDirectCHROMIUM(GLuint texture,
+ GLenum target,
+ const GLbyte* mailbox) {
+ MojoGLES2MakeCurrent(context_);
+ glProduceTextureDirectCHROMIUM(texture, target, mailbox);
+}
+void MojoGLES2Impl::ConsumeTextureCHROMIUM(GLenum target,
+ const GLbyte* mailbox) {
+ MojoGLES2MakeCurrent(context_);
+ glConsumeTextureCHROMIUM(target, mailbox);
+}
+GLuint MojoGLES2Impl::CreateAndConsumeTextureCHROMIUM(GLenum target,
+ const GLbyte* mailbox) {
+ MojoGLES2MakeCurrent(context_);
+ return glCreateAndConsumeTextureCHROMIUM(target, mailbox);
+}
+void MojoGLES2Impl::BindUniformLocationCHROMIUM(GLuint program,
+ GLint location,
+ const char* name) {
+ NOTREACHED() << "Unimplemented BindUniformLocationCHROMIUM.";
+}
+void MojoGLES2Impl::GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) {
+ NOTREACHED() << "Unimplemented GenValuebuffersCHROMIUM.";
+}
+void MojoGLES2Impl::DeleteValuebuffersCHROMIUM(GLsizei n,
+ const GLuint* valuebuffers) {
+ NOTREACHED() << "Unimplemented DeleteValuebuffersCHROMIUM.";
+}
+GLboolean MojoGLES2Impl::IsValuebufferCHROMIUM(GLuint valuebuffer) {
+ NOTREACHED() << "Unimplemented IsValuebufferCHROMIUM.";
+ return 0;
+}
+void MojoGLES2Impl::BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) {
+ NOTREACHED() << "Unimplemented BindValuebufferCHROMIUM.";
+}
+void MojoGLES2Impl::SubscribeValueCHROMIUM(GLenum target, GLenum subscription) {
+ NOTREACHED() << "Unimplemented SubscribeValueCHROMIUM.";
+}
+void MojoGLES2Impl::PopulateSubscribedValuesCHROMIUM(GLenum target) {
+ NOTREACHED() << "Unimplemented PopulateSubscribedValuesCHROMIUM.";
+}
+void MojoGLES2Impl::UniformValuebufferCHROMIUM(GLint location,
+ GLenum target,
+ GLenum subscription) {
+ NOTREACHED() << "Unimplemented UniformValuebufferCHROMIUM.";
+}
+void MojoGLES2Impl::BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
+ NOTREACHED() << "Unimplemented BindTexImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
+ NOTREACHED() << "Unimplemented ReleaseTexImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::TraceBeginCHROMIUM(const char* category_name,
+ const char* trace_name) {
+ NOTREACHED() << "Unimplemented TraceBeginCHROMIUM.";
+}
+void MojoGLES2Impl::TraceEndCHROMIUM() {
+ NOTREACHED() << "Unimplemented TraceEndCHROMIUM.";
+}
+void MojoGLES2Impl::AsyncTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ const void* data) {
+ NOTREACHED() << "Unimplemented AsyncTexSubImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::AsyncTexImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) {
+ NOTREACHED() << "Unimplemented AsyncTexImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::WaitAsyncTexImage2DCHROMIUM(GLenum target) {
+ NOTREACHED() << "Unimplemented WaitAsyncTexImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::WaitAllAsyncTexImage2DCHROMIUM() {
+ NOTREACHED() << "Unimplemented WaitAllAsyncTexImage2DCHROMIUM.";
+}
+void MojoGLES2Impl::DiscardFramebufferEXT(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) {
+ NOTREACHED() << "Unimplemented DiscardFramebufferEXT.";
+}
+void MojoGLES2Impl::LoseContextCHROMIUM(GLenum current, GLenum other) {
+ NOTREACHED() << "Unimplemented LoseContextCHROMIUM.";
+}
+GLuint MojoGLES2Impl::InsertSyncPointCHROMIUM() {
+ MojoGLES2MakeCurrent(context_);
+ return glInsertSyncPointCHROMIUM();
+}
+void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) {
+ MojoGLES2MakeCurrent(context_);
+ glWaitSyncPointCHROMIUM(sync_point);
+}
+void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
+ NOTREACHED() << "Unimplemented DrawBuffersEXT.";
+}
+void MojoGLES2Impl::DiscardBackbufferCHROMIUM() {
+ NOTREACHED() << "Unimplemented DiscardBackbufferCHROMIUM.";
+}
+void MojoGLES2Impl::ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
+ GLenum plane_transform,
+ GLuint overlay_texture_id,
+ GLint bounds_x,
+ GLint bounds_y,
+ GLint bounds_width,
+ GLint bounds_height,
+ GLfloat uv_x,
+ GLfloat uv_y,
+ GLfloat uv_width,
+ GLfloat uv_height) {
+ NOTREACHED() << "Unimplemented ScheduleOverlayPlaneCHROMIUM.";
+}
+void MojoGLES2Impl::SwapInterval(GLint interval) {
+ NOTREACHED() << "Unimplemented SwapInterval.";
+}
+void MojoGLES2Impl::MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) {
+ NOTREACHED() << "Unimplemented MatrixLoadfCHROMIUM.";
+}
+void MojoGLES2Impl::MatrixLoadIdentityCHROMIUM(GLenum matrixMode) {
+ NOTREACHED() << "Unimplemented MatrixLoadIdentityCHROMIUM.";
+}
+void MojoGLES2Impl::BlendBarrierKHR() {
+ NOTREACHED() << "Unimplemented BlendBarrierKHR.";
+}
+
+} // namespace mojo
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.h b/mojo/gpu/mojo_gles2_impl_autogen.h
new file mode 100644
index 0000000..ff42365
--- /dev/null
+++ b/mojo/gpu/mojo_gles2_impl_autogen.h
@@ -0,0 +1,754 @@
+// Copyright 2014 The Chromium Authors. All rights reserved.
+// Use of this source code is governed by a BSD-style license that can be
+// found in the LICENSE file.
+
+// This file is auto-generated from
+// gpu/command_buffer/build_gles2_cmd_buffer.py
+// It's formatted by clang-format using chromium coding style:
+// clang-format -i -style=chromium filename
+// DO NOT EDIT!
+
+// This file is included by gles2_interface.h to declare the
+// GL api functions.
+#ifndef MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_
+#define MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_
+
+#include "gpu/command_buffer/client/gles2_interface.h"
+#include "third_party/mojo/src/mojo/public/c/gles2/gles2.h"
+
+namespace mojo {
+
+class MojoGLES2Impl : public gpu::gles2::GLES2Interface {
+ public:
+ explicit MojoGLES2Impl(MojoGLES2Context context) { context_ = context; }
+ ~MojoGLES2Impl() override {}
+ void ActiveTexture(GLenum texture) override;
+ void AttachShader(GLuint program, GLuint shader) override;
+ void BindAttribLocation(GLuint program,
+ GLuint index,
+ const char* name) override;
+ void BindBuffer(GLenum target, GLuint buffer) override;
+ void BindBufferBase(GLenum target, GLuint index, GLuint buffer) override;
+ void BindBufferRange(GLenum target,
+ GLuint index,
+ GLuint buffer,
+ GLintptr offset,
+ GLsizeiptr size) override;
+ void BindFramebuffer(GLenum target, GLuint framebuffer) override;
+ void BindRenderbuffer(GLenum target, GLuint renderbuffer) override;
+ void BindSampler(GLuint unit, GLuint sampler) override;
+ void BindTexture(GLenum target, GLuint texture) override;
+ void BindTransformFeedback(GLenum target, GLuint transformfeedback) override;
+ void BlendColor(GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha) override;
+ void BlendEquation(GLenum mode) override;
+ void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) override;
+ void BlendFunc(GLenum sfactor, GLenum dfactor) override;
+ void BlendFuncSeparate(GLenum srcRGB,
+ GLenum dstRGB,
+ GLenum srcAlpha,
+ GLenum dstAlpha) override;
+ void BufferData(GLenum target,
+ GLsizeiptr size,
+ const void* data,
+ GLenum usage) override;
+ void BufferSubData(GLenum target,
+ GLintptr offset,
+ GLsizeiptr size,
+ const void* data) override;
+ GLenum CheckFramebufferStatus(GLenum target) override;
+ void Clear(GLbitfield mask) override;
+ void ClearBufferfi(GLenum buffer,
+ GLint drawbuffers,
+ GLfloat depth,
+ GLint stencil) override;
+ void ClearBufferfv(GLenum buffer,
+ GLint drawbuffers,
+ const GLfloat* value) override;
+ void ClearBufferiv(GLenum buffer,
+ GLint drawbuffers,
+ const GLint* value) override;
+ void ClearBufferuiv(GLenum buffer,
+ GLint drawbuffers,
+ const GLuint* value) override;
+ void ClearColor(GLclampf red,
+ GLclampf green,
+ GLclampf blue,
+ GLclampf alpha) override;
+ void ClearDepthf(GLclampf depth) override;
+ void ClearStencil(GLint s) override;
+ GLenum ClientWaitSync(GLsync sync,
+ GLbitfield flags,
+ GLuint64 timeout) override;
+ void ColorMask(GLboolean red,
+ GLboolean green,
+ GLboolean blue,
+ GLboolean alpha) override;
+ void CompileShader(GLuint shader) override;
+ void CompressedTexImage2D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLsizei imageSize,
+ const void* data) override;
+ void CompressedTexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLsizei imageSize,
+ const void* data) override;
+ void CopyBufferSubData(GLenum readtarget,
+ GLenum writetarget,
+ GLintptr readoffset,
+ GLintptr writeoffset,
+ GLsizeiptr size) override;
+ void CopyTexImage2D(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLint border) override;
+ void CopyTexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) override;
+ void CopyTexSubImage3D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) override;
+ GLuint CreateProgram() override;
+ GLuint CreateShader(GLenum type) override;
+ void CullFace(GLenum mode) override;
+ void DeleteBuffers(GLsizei n, const GLuint* buffers) override;
+ void DeleteFramebuffers(GLsizei n, const GLuint* framebuffers) override;
+ void DeleteProgram(GLuint program) override;
+ void DeleteRenderbuffers(GLsizei n, const GLuint* renderbuffers) override;
+ void DeleteSamplers(GLsizei n, const GLuint* samplers) override;
+ void DeleteSync(GLsync sync) override;
+ void DeleteShader(GLuint shader) override;
+ void DeleteTextures(GLsizei n, const GLuint* textures) override;
+ void DeleteTransformFeedbacks(GLsizei n, const GLuint* ids) override;
+ void DepthFunc(GLenum func) override;
+ void DepthMask(GLboolean flag) override;
+ void DepthRangef(GLclampf zNear, GLclampf zFar) override;
+ void DetachShader(GLuint program, GLuint shader) override;
+ void Disable(GLenum cap) override;
+ void DisableVertexAttribArray(GLuint index) override;
+ void DrawArrays(GLenum mode, GLint first, GLsizei count) override;
+ void DrawElements(GLenum mode,
+ GLsizei count,
+ GLenum type,
+ const void* indices) override;
+ void DrawRangeElements(GLenum mode,
+ GLuint start,
+ GLuint end,
+ GLsizei count,
+ GLenum type,
+ const void* indices) override;
+ void Enable(GLenum cap) override;
+ void EnableVertexAttribArray(GLuint index) override;
+ GLsync FenceSync(GLenum condition, GLbitfield flags) override;
+ void Finish() override;
+ void Flush() override;
+ void FramebufferRenderbuffer(GLenum target,
+ GLenum attachment,
+ GLenum renderbuffertarget,
+ GLuint renderbuffer) override;
+ void FramebufferTexture2D(GLenum target,
+ GLenum attachment,
+ GLenum textarget,
+ GLuint texture,
+ GLint level) override;
+ void FramebufferTextureLayer(GLenum target,
+ GLenum attachment,
+ GLuint texture,
+ GLint level,
+ GLint layer) override;
+ void FrontFace(GLenum mode) override;
+ void GenBuffers(GLsizei n, GLuint* buffers) override;
+ void GenerateMipmap(GLenum target) override;
+ void GenFramebuffers(GLsizei n, GLuint* framebuffers) override;
+ void GenRenderbuffers(GLsizei n, GLuint* renderbuffers) override;
+ void GenSamplers(GLsizei n, GLuint* samplers) override;
+ void GenTextures(GLsizei n, GLuint* textures) override;
+ void GenTransformFeedbacks(GLsizei n, GLuint* ids) override;
+ void GetActiveAttrib(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* size,
+ GLenum* type,
+ char* name) override;
+ void GetActiveUniform(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* size,
+ GLenum* type,
+ char* name) override;
+ void GetActiveUniformBlockiv(GLuint program,
+ GLuint index,
+ GLenum pname,
+ GLint* params) override;
+ void GetActiveUniformBlockName(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* name) override;
+ void GetActiveUniformsiv(GLuint program,
+ GLsizei count,
+ const GLuint* indices,
+ GLenum pname,
+ GLint* params) override;
+ void GetAttachedShaders(GLuint program,
+ GLsizei maxcount,
+ GLsizei* count,
+ GLuint* shaders) override;
+ GLint GetAttribLocation(GLuint program, const char* name) override;
+ void GetBooleanv(GLenum pname, GLboolean* params) override;
+ void GetBufferParameteriv(GLenum target,
+ GLenum pname,
+ GLint* params) override;
+ GLenum GetError() override;
+ void GetFloatv(GLenum pname, GLfloat* params) override;
+ GLint GetFragDataLocation(GLuint program, const char* name) override;
+ void GetFramebufferAttachmentParameteriv(GLenum target,
+ GLenum attachment,
+ GLenum pname,
+ GLint* params) override;
+ void GetIntegerv(GLenum pname, GLint* params) override;
+ void GetInternalformativ(GLenum target,
+ GLenum format,
+ GLenum pname,
+ GLsizei bufSize,
+ GLint* params) override;
+ void GetProgramiv(GLuint program, GLenum pname, GLint* params) override;
+ void GetProgramInfoLog(GLuint program,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* infolog) override;
+ void GetRenderbufferParameteriv(GLenum target,
+ GLenum pname,
+ GLint* params) override;
+ void GetSamplerParameterfv(GLuint sampler,
+ GLenum pname,
+ GLfloat* params) override;
+ void GetSamplerParameteriv(GLuint sampler,
+ GLenum pname,
+ GLint* params) override;
+ void GetShaderiv(GLuint shader, GLenum pname, GLint* params) override;
+ void GetShaderInfoLog(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* infolog) override;
+ void GetShaderPrecisionFormat(GLenum shadertype,
+ GLenum precisiontype,
+ GLint* range,
+ GLint* precision) override;
+ void GetShaderSource(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* source) override;
+ const GLubyte* GetString(GLenum name) override;
+ void GetSynciv(GLsync sync,
+ GLenum pname,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLint* values) override;
+ void GetTexParameterfv(GLenum target, GLenum pname, GLfloat* params) override;
+ void GetTexParameteriv(GLenum target, GLenum pname, GLint* params) override;
+ void GetTransformFeedbackVarying(GLuint program,
+ GLuint index,
+ GLsizei bufsize,
+ GLsizei* length,
+ GLsizei* size,
+ GLenum* type,
+ char* name) override;
+ GLuint GetUniformBlockIndex(GLuint program, const char* name) override;
+ void GetUniformfv(GLuint program, GLint location, GLfloat* params) override;
+ void GetUniformiv(GLuint program, GLint location, GLint* params) override;
+ void GetUniformIndices(GLuint program,
+ GLsizei count,
+ const char* const* names,
+ GLuint* indices) override;
+ GLint GetUniformLocation(GLuint program, const char* name) override;
+ void GetVertexAttribfv(GLuint index, GLenum pname, GLfloat* params) override;
+ void GetVertexAttribiv(GLuint index, GLenum pname, GLint* params) override;
+ void GetVertexAttribPointerv(GLuint index,
+ GLenum pname,
+ void** pointer) override;
+ void Hint(GLenum target, GLenum mode) override;
+ void InvalidateFramebuffer(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) override;
+ void InvalidateSubFramebuffer(GLenum target,
+ GLsizei count,
+ const GLenum* attachments,
+ GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height) override;
+ GLboolean IsBuffer(GLuint buffer) override;
+ GLboolean IsEnabled(GLenum cap) override;
+ GLboolean IsFramebuffer(GLuint framebuffer) override;
+ GLboolean IsProgram(GLuint program) override;
+ GLboolean IsRenderbuffer(GLuint renderbuffer) override;
+ GLboolean IsSampler(GLuint sampler) override;
+ GLboolean IsShader(GLuint shader) override;
+ GLboolean IsSync(GLsync sync) override;
+ GLboolean IsTexture(GLuint texture) override;
+ GLboolean IsTransformFeedback(GLuint transformfeedback) override;
+ void LineWidth(GLfloat width) override;
+ void LinkProgram(GLuint program) override;
+ void PauseTransformFeedback() override;
+ void PixelStorei(GLenum pname, GLint param) override;
+ void PolygonOffset(GLfloat factor, GLfloat units) override;
+ void ReadBuffer(GLenum src) override;
+ void ReadPixels(GLint x,
+ GLint y,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ void* pixels) override;
+ void ReleaseShaderCompiler() override;
+ void RenderbufferStorage(GLenum target,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) override;
+ void ResumeTransformFeedback() override;
+ void SampleCoverage(GLclampf value, GLboolean invert) override;
+ void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) override;
+ void SamplerParameterfv(GLuint sampler,
+ GLenum pname,
+ const GLfloat* params) override;
+ void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) override;
+ void SamplerParameteriv(GLuint sampler,
+ GLenum pname,
+ const GLint* params) override;
+ void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) override;
+ void ShaderBinary(GLsizei n,
+ const GLuint* shaders,
+ GLenum binaryformat,
+ const void* binary,
+ GLsizei length) override;
+ void ShaderSource(GLuint shader,
+ GLsizei count,
+ const GLchar* const* str,
+ const GLint* length) override;
+ void ShallowFinishCHROMIUM() override;
+ void ShallowFlushCHROMIUM() override;
+ void OrderingBarrierCHROMIUM() override;
+ void StencilFunc(GLenum func, GLint ref, GLuint mask) override;
+ void StencilFuncSeparate(GLenum face,
+ GLenum func,
+ GLint ref,
+ GLuint mask) override;
+ void StencilMask(GLuint mask) override;
+ void StencilMaskSeparate(GLenum face, GLuint mask) override;
+ void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) override;
+ void StencilOpSeparate(GLenum face,
+ GLenum fail,
+ GLenum zfail,
+ GLenum zpass) override;
+ void TexImage2D(GLenum target,
+ GLint level,
+ GLint internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) override;
+ void TexImage3D(GLenum target,
+ GLint level,
+ GLint internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) override;
+ void TexParameterf(GLenum target, GLenum pname, GLfloat param) override;
+ void TexParameterfv(GLenum target,
+ GLenum pname,
+ const GLfloat* params) override;
+ void TexParameteri(GLenum target, GLenum pname, GLint param) override;
+ void TexParameteriv(GLenum target,
+ GLenum pname,
+ const GLint* params) override;
+ void TexStorage3D(GLenum target,
+ GLsizei levels,
+ GLenum internalFormat,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth) override;
+ void TexSubImage2D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ const void* pixels) override;
+ void TexSubImage3D(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLint zoffset,
+ GLsizei width,
+ GLsizei height,
+ GLsizei depth,
+ GLenum format,
+ GLenum type,
+ const void* pixels) override;
+ void TransformFeedbackVaryings(GLuint program,
+ GLsizei count,
+ const char* const* varyings,
+ GLenum buffermode) override;
+ void Uniform1f(GLint location, GLfloat x) override;
+ void Uniform1fv(GLint location, GLsizei count, const GLfloat* v) override;
+ void Uniform1i(GLint location, GLint x) override;
+ void Uniform1iv(GLint location, GLsizei count, const GLint* v) override;
+ void Uniform1ui(GLint location, GLuint x) override;
+ void Uniform1uiv(GLint location, GLsizei count, const GLuint* v) override;
+ void Uniform2f(GLint location, GLfloat x, GLfloat y) override;
+ void Uniform2fv(GLint location, GLsizei count, const GLfloat* v) override;
+ void Uniform2i(GLint location, GLint x, GLint y) override;
+ void Uniform2iv(GLint location, GLsizei count, const GLint* v) override;
+ void Uniform2ui(GLint location, GLuint x, GLuint y) override;
+ void Uniform2uiv(GLint location, GLsizei count, const GLuint* v) override;
+ void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) override;
+ void Uniform3fv(GLint location, GLsizei count, const GLfloat* v) override;
+ void Uniform3i(GLint location, GLint x, GLint y, GLint z) override;
+ void Uniform3iv(GLint location, GLsizei count, const GLint* v) override;
+ void Uniform3ui(GLint location, GLuint x, GLuint y, GLuint z) override;
+ void Uniform3uiv(GLint location, GLsizei count, const GLuint* v) override;
+ void Uniform4f(GLint location,
+ GLfloat x,
+ GLfloat y,
+ GLfloat z,
+ GLfloat w) override;
+ void Uniform4fv(GLint location, GLsizei count, const GLfloat* v) override;
+ void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) override;
+ void Uniform4iv(GLint location, GLsizei count, const GLint* v) override;
+ void Uniform4ui(GLint location,
+ GLuint x,
+ GLuint y,
+ GLuint z,
+ GLuint w) override;
+ void Uniform4uiv(GLint location, GLsizei count, const GLuint* v) override;
+ void UniformBlockBinding(GLuint program,
+ GLuint index,
+ GLuint binding) override;
+ void UniformMatrix2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix2x3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix2x4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix3x2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix3x4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix4fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix4x2fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UniformMatrix4x3fv(GLint location,
+ GLsizei count,
+ GLboolean transpose,
+ const GLfloat* value) override;
+ void UseProgram(GLuint program) override;
+ void ValidateProgram(GLuint program) override;
+ void VertexAttrib1f(GLuint indx, GLfloat x) override;
+ void VertexAttrib1fv(GLuint indx, const GLfloat* values) override;
+ void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) override;
+ void VertexAttrib2fv(GLuint indx, const GLfloat* values) override;
+ void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) override;
+ void VertexAttrib3fv(GLuint indx, const GLfloat* values) override;
+ void VertexAttrib4f(GLuint indx,
+ GLfloat x,
+ GLfloat y,
+ GLfloat z,
+ GLfloat w) override;
+ void VertexAttrib4fv(GLuint indx, const GLfloat* values) override;
+ void VertexAttribI4i(GLuint indx,
+ GLint x,
+ GLint y,
+ GLint z,
+ GLint w) override;
+ void VertexAttribI4iv(GLuint indx, const GLint* values) override;
+ void VertexAttribI4ui(GLuint indx,
+ GLuint x,
+ GLuint y,
+ GLuint z,
+ GLuint w) override;
+ void VertexAttribI4uiv(GLuint indx, const GLuint* values) override;
+ void VertexAttribIPointer(GLuint indx,
+ GLint size,
+ GLenum type,
+ GLsizei stride,
+ const void* ptr) override;
+ void VertexAttribPointer(GLuint indx,
+ GLint size,
+ GLenum type,
+ GLboolean normalized,
+ GLsizei stride,
+ const void* ptr) override;
+ void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) override;
+ void WaitSync(GLsync sync, GLbitfield flags, GLuint64 timeout) override;
+ void BlitFramebufferCHROMIUM(GLint srcX0,
+ GLint srcY0,
+ GLint srcX1,
+ GLint srcY1,
+ GLint dstX0,
+ GLint dstY0,
+ GLint dstX1,
+ GLint dstY1,
+ GLbitfield mask,
+ GLenum filter) override;
+ void RenderbufferStorageMultisampleCHROMIUM(GLenum target,
+ GLsizei samples,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) override;
+ void RenderbufferStorageMultisampleEXT(GLenum target,
+ GLsizei samples,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height) override;
+ void FramebufferTexture2DMultisampleEXT(GLenum target,
+ GLenum attachment,
+ GLenum textarget,
+ GLuint texture,
+ GLint level,
+ GLsizei samples) override;
+ void TexStorage2DEXT(GLenum target,
+ GLsizei levels,
+ GLenum internalFormat,
+ GLsizei width,
+ GLsizei height) override;
+ void GenQueriesEXT(GLsizei n, GLuint* queries) override;
+ void DeleteQueriesEXT(GLsizei n, const GLuint* queries) override;
+ GLboolean IsQueryEXT(GLuint id) override;
+ void BeginQueryEXT(GLenum target, GLuint id) override;
+ void BeginTransformFeedback(GLenum primitivemode) override;
+ void EndQueryEXT(GLenum target) override;
+ void EndTransformFeedback() override;
+ void GetQueryivEXT(GLenum target, GLenum pname, GLint* params) override;
+ void GetQueryObjectuivEXT(GLuint id, GLenum pname, GLuint* params) override;
+ void InsertEventMarkerEXT(GLsizei length, const GLchar* marker) override;
+ void PushGroupMarkerEXT(GLsizei length, const GLchar* marker) override;
+ void PopGroupMarkerEXT() override;
+ void GenVertexArraysOES(GLsizei n, GLuint* arrays) override;
+ void DeleteVertexArraysOES(GLsizei n, const GLuint* arrays) override;
+ GLboolean IsVertexArrayOES(GLuint array) override;
+ void BindVertexArrayOES(GLuint array) override;
+ void SwapBuffers() override;
+ GLuint GetMaxValueInBufferCHROMIUM(GLuint buffer_id,
+ GLsizei count,
+ GLenum type,
+ GLuint offset) override;
+ GLboolean EnableFeatureCHROMIUM(const char* feature) override;
+ void* MapBufferCHROMIUM(GLuint target, GLenum access) override;
+ GLboolean UnmapBufferCHROMIUM(GLuint target) override;
+ void* MapBufferSubDataCHROMIUM(GLuint target,
+ GLintptr offset,
+ GLsizeiptr size,
+ GLenum access) override;
+ void UnmapBufferSubDataCHROMIUM(const void* mem) override;
+ void* MapBufferRange(GLenum target,
+ GLintptr offset,
+ GLsizeiptr size,
+ GLbitfield access) override;
+ GLboolean UnmapBuffer(GLenum target) override;
+ void* MapTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ GLenum access) override;
+ void UnmapTexSubImage2DCHROMIUM(const void* mem) override;
+ void ResizeCHROMIUM(GLuint width,
+ GLuint height,
+ GLfloat scale_factor) override;
+ const GLchar* GetRequestableExtensionsCHROMIUM() override;
+ void RequestExtensionCHROMIUM(const char* extension) override;
+ void RateLimitOffscreenContextCHROMIUM() override;
+ void GetProgramInfoCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) override;
+ void GetUniformBlocksCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) override;
+ void GetTransformFeedbackVaryingsCHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) override;
+ void GetUniformsES3CHROMIUM(GLuint program,
+ GLsizei bufsize,
+ GLsizei* size,
+ void* info) override;
+ GLuint CreateStreamTextureCHROMIUM(GLuint texture) override;
+ GLuint CreateImageCHROMIUM(ClientBuffer buffer,
+ GLsizei width,
+ GLsizei height,
+ GLenum internalformat) override;
+ void DestroyImageCHROMIUM(GLuint image_id) override;
+ GLuint CreateGpuMemoryBufferImageCHROMIUM(GLsizei width,
+ GLsizei height,
+ GLenum internalformat,
+ GLenum usage) override;
+ void GetTranslatedShaderSourceANGLE(GLuint shader,
+ GLsizei bufsize,
+ GLsizei* length,
+ char* source) override;
+ void PostSubBufferCHROMIUM(GLint x,
+ GLint y,
+ GLint width,
+ GLint height) override;
+ void TexImageIOSurface2DCHROMIUM(GLenum target,
+ GLsizei width,
+ GLsizei height,
+ GLuint ioSurfaceId,
+ GLuint plane) override;
+ void CopyTextureCHROMIUM(GLenum target,
+ GLenum source_id,
+ GLenum dest_id,
+ GLint internalformat,
+ GLenum dest_type) override;
+ void CopySubTextureCHROMIUM(GLenum target,
+ GLenum source_id,
+ GLenum dest_id,
+ GLint xoffset,
+ GLint yoffset) override;
+ void DrawArraysInstancedANGLE(GLenum mode,
+ GLint first,
+ GLsizei count,
+ GLsizei primcount) override;
+ void DrawElementsInstancedANGLE(GLenum mode,
+ GLsizei count,
+ GLenum type,
+ const void* indices,
+ GLsizei primcount) override;
+ void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) override;
+ void GenMailboxCHROMIUM(GLbyte* mailbox) override;
+ void ProduceTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
+ void ProduceTextureDirectCHROMIUM(GLuint texture,
+ GLenum target,
+ const GLbyte* mailbox) override;
+ void ConsumeTextureCHROMIUM(GLenum target, const GLbyte* mailbox) override;
+ GLuint CreateAndConsumeTextureCHROMIUM(GLenum target,
+ const GLbyte* mailbox) override;
+ void BindUniformLocationCHROMIUM(GLuint program,
+ GLint location,
+ const char* name) override;
+ void GenValuebuffersCHROMIUM(GLsizei n, GLuint* buffers) override;
+ void DeleteValuebuffersCHROMIUM(GLsizei n,
+ const GLuint* valuebuffers) override;
+ GLboolean IsValuebufferCHROMIUM(GLuint valuebuffer) override;
+ void BindValuebufferCHROMIUM(GLenum target, GLuint valuebuffer) override;
+ void SubscribeValueCHROMIUM(GLenum target, GLenum subscription) override;
+ void PopulateSubscribedValuesCHROMIUM(GLenum target) override;
+ void UniformValuebufferCHROMIUM(GLint location,
+ GLenum target,
+ GLenum subscription) override;
+ void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
+ void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) override;
+ void TraceBeginCHROMIUM(const char* category_name,
+ const char* trace_name) override;
+ void TraceEndCHROMIUM() override;
+ void AsyncTexSubImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLint xoffset,
+ GLint yoffset,
+ GLsizei width,
+ GLsizei height,
+ GLenum format,
+ GLenum type,
+ const void* data) override;
+ void AsyncTexImage2DCHROMIUM(GLenum target,
+ GLint level,
+ GLenum internalformat,
+ GLsizei width,
+ GLsizei height,
+ GLint border,
+ GLenum format,
+ GLenum type,
+ const void* pixels) override;
+ void WaitAsyncTexImage2DCHROMIUM(GLenum target) override;
+ void WaitAllAsyncTexImage2DCHROMIUM() override;
+ void DiscardFramebufferEXT(GLenum target,
+ GLsizei count,
+ const GLenum* attachments) override;
+ void LoseContextCHROMIUM(GLenum current, GLenum other) override;
+ GLuint InsertSyncPointCHROMIUM() override;
+ void WaitSyncPointCHROMIUM(GLuint sync_point) override;
+ void DrawBuffersEXT(GLsizei count, const GLenum* bufs) override;
+ void DiscardBackbufferCHROMIUM() override;
+ void ScheduleOverlayPlaneCHROMIUM(GLint plane_z_order,
+ GLenum plane_transform,
+ GLuint overlay_texture_id,
+ GLint bounds_x,
+ GLint bounds_y,
+ GLint bounds_width,
+ GLint bounds_height,
+ GLfloat uv_x,
+ GLfloat uv_y,
+ GLfloat uv_width,
+ GLfloat uv_height) override;
+ void SwapInterval(GLint interval) override;
+ void MatrixLoadfCHROMIUM(GLenum matrixMode, const GLfloat* m) override;
+ void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) override;
+ void BlendBarrierKHR() override;
+
+ private:
+ MojoGLES2Context context_;
+};
+
+} // namespace mojo
+#endif // MOJO_GPU_MOJO_GLES2_IMPL_AUTOGEN_H_