// 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! #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ void ActiveTexture(GLenum texture) { gles2::cmds::ActiveTexture* c = GetCmdSpace(); if (c) { c->Init(texture); } } void AttachShader(GLuint program, GLuint shader) { gles2::cmds::AttachShader* c = GetCmdSpace(); if (c) { c->Init(program, shader); } } void BindAttribLocationBucket(GLuint program, GLuint index, uint32_t name_bucket_id) { gles2::cmds::BindAttribLocationBucket* c = GetCmdSpace(); if (c) { c->Init(program, index, name_bucket_id); } } void BindBuffer(GLenum target, GLuint buffer) { gles2::cmds::BindBuffer* c = GetCmdSpace(); if (c) { c->Init(target, buffer); } } void BindFramebuffer(GLenum target, GLuint framebuffer) { gles2::cmds::BindFramebuffer* c = GetCmdSpace(); if (c) { c->Init(target, framebuffer); } } void BindRenderbuffer(GLenum target, GLuint renderbuffer) { gles2::cmds::BindRenderbuffer* c = GetCmdSpace(); if (c) { c->Init(target, renderbuffer); } } void BindTexture(GLenum target, GLuint texture) { gles2::cmds::BindTexture* c = GetCmdSpace(); if (c) { c->Init(target, texture); } } void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { gles2::cmds::BlendColor* c = GetCmdSpace(); if (c) { c->Init(red, green, blue, alpha); } } void BlendEquation(GLenum mode) { gles2::cmds::BlendEquation* c = GetCmdSpace(); if (c) { c->Init(mode); } } void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) { gles2::cmds::BlendEquationSeparate* c = GetCmdSpace(); if (c) { c->Init(modeRGB, modeAlpha); } } void BlendFunc(GLenum sfactor, GLenum dfactor) { gles2::cmds::BlendFunc* c = GetCmdSpace(); if (c) { c->Init(sfactor, dfactor); } } void BlendFuncSeparate(GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) { gles2::cmds::BlendFuncSeparate* c = GetCmdSpace(); if (c) { c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha); } } void BufferData(GLenum target, GLsizeiptr size, uint32_t data_shm_id, uint32_t data_shm_offset, GLenum usage) { gles2::cmds::BufferData* c = GetCmdSpace(); if (c) { c->Init(target, size, data_shm_id, data_shm_offset, usage); } } void BufferSubData(GLenum target, GLintptr offset, GLsizeiptr size, uint32_t data_shm_id, uint32_t data_shm_offset) { gles2::cmds::BufferSubData* c = GetCmdSpace(); if (c) { c->Init(target, offset, size, data_shm_id, data_shm_offset); } } void CheckFramebufferStatus(GLenum target, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::CheckFramebufferStatus* c = GetCmdSpace(); if (c) { c->Init(target, result_shm_id, result_shm_offset); } } void Clear(GLbitfield mask) { gles2::cmds::Clear* c = GetCmdSpace(); if (c) { c->Init(mask); } } void ClearColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) { gles2::cmds::ClearColor* c = GetCmdSpace(); if (c) { c->Init(red, green, blue, alpha); } } void ClearDepthf(GLclampf depth) { gles2::cmds::ClearDepthf* c = GetCmdSpace(); if (c) { c->Init(depth); } } void ClearStencil(GLint s) { gles2::cmds::ClearStencil* c = GetCmdSpace(); if (c) { c->Init(s); } } void ColorMask(GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) { gles2::cmds::ColorMask* c = GetCmdSpace(); if (c) { c->Init(red, green, blue, alpha); } } void CompileShader(GLuint shader) { gles2::cmds::CompileShader* c = GetCmdSpace(); if (c) { c->Init(shader); } } void CompressedTexImage2DBucket(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLuint bucket_id) { gles2::cmds::CompressedTexImage2DBucket* c = GetCmdSpace(); if (c) { c->Init(target, level, internalformat, width, height, bucket_id); } } void CompressedTexImage2D(GLenum target, GLint level, GLenum internalformat, GLsizei width, GLsizei height, GLsizei imageSize, uint32_t data_shm_id, uint32_t data_shm_offset) { gles2::cmds::CompressedTexImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, internalformat, width, height, imageSize, data_shm_id, data_shm_offset); } } void CompressedTexSubImage2DBucket(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLuint bucket_id) { gles2::cmds::CompressedTexSubImage2DBucket* c = GetCmdSpace(); if (c) { c->Init(target, level, xoffset, yoffset, width, height, format, bucket_id); } } void CompressedTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLsizei imageSize, uint32_t data_shm_id, uint32_t data_shm_offset) { gles2::cmds::CompressedTexSubImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, xoffset, yoffset, width, height, format, imageSize, data_shm_id, data_shm_offset); } } void CopyTexImage2D(GLenum target, GLint level, GLenum internalformat, GLint x, GLint y, GLsizei width, GLsizei height) { gles2::cmds::CopyTexImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, internalformat, x, y, width, height); } } void CopyTexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x, GLint y, GLsizei width, GLsizei height) { gles2::cmds::CopyTexSubImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, xoffset, yoffset, x, y, width, height); } } void CreateProgram(uint32_t client_id) { gles2::cmds::CreateProgram* c = GetCmdSpace(); if (c) { c->Init(client_id); } } void CreateShader(GLenum type, uint32_t client_id) { gles2::cmds::CreateShader* c = GetCmdSpace(); if (c) { c->Init(type, client_id); } } void CullFace(GLenum mode) { gles2::cmds::CullFace* c = GetCmdSpace(); if (c) { c->Init(mode); } } void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) { const uint32_t size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n); gles2::cmds::DeleteBuffersImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(n, buffers); } } void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) { const uint32_t size = gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n); gles2::cmds::DeleteFramebuffersImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, framebuffers); } } void DeleteProgram(GLuint program) { gles2::cmds::DeleteProgram* c = GetCmdSpace(); if (c) { c->Init(program); } } void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) { const uint32_t size = gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n); gles2::cmds::DeleteRenderbuffersImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, renderbuffers); } } void DeleteShader(GLuint shader) { gles2::cmds::DeleteShader* c = GetCmdSpace(); if (c) { c->Init(shader); } } void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) { const uint32_t size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n); gles2::cmds::DeleteTexturesImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(n, textures); } } void DepthFunc(GLenum func) { gles2::cmds::DepthFunc* c = GetCmdSpace(); if (c) { c->Init(func); } } void DepthMask(GLboolean flag) { gles2::cmds::DepthMask* c = GetCmdSpace(); if (c) { c->Init(flag); } } void DepthRangef(GLclampf zNear, GLclampf zFar) { gles2::cmds::DepthRangef* c = GetCmdSpace(); if (c) { c->Init(zNear, zFar); } } void DetachShader(GLuint program, GLuint shader) { gles2::cmds::DetachShader* c = GetCmdSpace(); if (c) { c->Init(program, shader); } } void Disable(GLenum cap) { gles2::cmds::Disable* c = GetCmdSpace(); if (c) { c->Init(cap); } } void DisableVertexAttribArray(GLuint index) { gles2::cmds::DisableVertexAttribArray* c = GetCmdSpace(); if (c) { c->Init(index); } } void DrawArrays(GLenum mode, GLint first, GLsizei count) { gles2::cmds::DrawArrays* c = GetCmdSpace(); if (c) { c->Init(mode, first, count); } } void DrawElements(GLenum mode, GLsizei count, GLenum type, GLuint index_offset) { gles2::cmds::DrawElements* c = GetCmdSpace(); if (c) { c->Init(mode, count, type, index_offset); } } void Enable(GLenum cap) { gles2::cmds::Enable* c = GetCmdSpace(); if (c) { c->Init(cap); } } void EnableVertexAttribArray(GLuint index) { gles2::cmds::EnableVertexAttribArray* c = GetCmdSpace(); if (c) { c->Init(index); } } void Finish() { gles2::cmds::Finish* c = GetCmdSpace(); if (c) { c->Init(); } } void Flush() { gles2::cmds::Flush* c = GetCmdSpace(); if (c) { c->Init(); } } void FramebufferRenderbuffer(GLenum target, GLenum attachment, GLenum renderbuffertarget, GLuint renderbuffer) { gles2::cmds::FramebufferRenderbuffer* c = GetCmdSpace(); if (c) { c->Init(target, attachment, renderbuffertarget, renderbuffer); } } void FramebufferTexture2D(GLenum target, GLenum attachment, GLenum textarget, GLuint texture) { gles2::cmds::FramebufferTexture2D* c = GetCmdSpace(); if (c) { c->Init(target, attachment, textarget, texture); } } void FrontFace(GLenum mode) { gles2::cmds::FrontFace* c = GetCmdSpace(); if (c) { c->Init(mode); } } void GenBuffersImmediate(GLsizei n, GLuint* buffers) { const uint32_t size = gles2::cmds::GenBuffersImmediate::ComputeSize(n); gles2::cmds::GenBuffersImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(n, buffers); } } void GenerateMipmap(GLenum target) { gles2::cmds::GenerateMipmap* c = GetCmdSpace(); if (c) { c->Init(target); } } void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) { const uint32_t size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n); gles2::cmds::GenFramebuffersImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, framebuffers); } } void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) { const uint32_t size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n); gles2::cmds::GenRenderbuffersImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, renderbuffers); } } void GenTexturesImmediate(GLsizei n, GLuint* textures) { const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n); gles2::cmds::GenTexturesImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(n, textures); } } void GetActiveAttrib(GLuint program, GLuint index, uint32_t name_bucket_id, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::GetActiveAttrib* c = GetCmdSpace(); if (c) { c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); } } void GetActiveUniform(GLuint program, GLuint index, uint32_t name_bucket_id, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::GetActiveUniform* c = GetCmdSpace(); if (c) { c->Init(program, index, name_bucket_id, result_shm_id, result_shm_offset); } } void GetAttachedShaders(GLuint program, uint32_t result_shm_id, uint32_t result_shm_offset, uint32_t result_size) { gles2::cmds::GetAttachedShaders* c = GetCmdSpace(); if (c) { c->Init(program, result_shm_id, result_shm_offset, result_size); } } void GetAttribLocation(GLuint program, uint32_t name_bucket_id, uint32_t location_shm_id, uint32_t location_shm_offset) { gles2::cmds::GetAttribLocation* c = GetCmdSpace(); if (c) { c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); } } void GetBooleanv(GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetBooleanv* c = GetCmdSpace(); if (c) { c->Init(pname, params_shm_id, params_shm_offset); } } void GetBufferParameteriv(GLenum target, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetBufferParameteriv* c = GetCmdSpace(); if (c) { c->Init(target, pname, params_shm_id, params_shm_offset); } } void GetError(uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::GetError* c = GetCmdSpace(); if (c) { c->Init(result_shm_id, result_shm_offset); } } void GetFloatv(GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetFloatv* c = GetCmdSpace(); if (c) { c->Init(pname, params_shm_id, params_shm_offset); } } void GetFramebufferAttachmentParameteriv(GLenum target, GLenum attachment, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetFramebufferAttachmentParameteriv* c = GetCmdSpace(); if (c) { c->Init(target, attachment, pname, params_shm_id, params_shm_offset); } } void GetIntegerv(GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetIntegerv* c = GetCmdSpace(); if (c) { c->Init(pname, params_shm_id, params_shm_offset); } } void GetProgramiv(GLuint program, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetProgramiv* c = GetCmdSpace(); if (c) { c->Init(program, pname, params_shm_id, params_shm_offset); } } void GetProgramInfoLog(GLuint program, uint32_t bucket_id) { gles2::cmds::GetProgramInfoLog* c = GetCmdSpace(); if (c) { c->Init(program, bucket_id); } } void GetRenderbufferParameteriv(GLenum target, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetRenderbufferParameteriv* c = GetCmdSpace(); if (c) { c->Init(target, pname, params_shm_id, params_shm_offset); } } void GetShaderiv(GLuint shader, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetShaderiv* c = GetCmdSpace(); if (c) { c->Init(shader, pname, params_shm_id, params_shm_offset); } } void GetShaderInfoLog(GLuint shader, uint32_t bucket_id) { gles2::cmds::GetShaderInfoLog* c = GetCmdSpace(); if (c) { c->Init(shader, bucket_id); } } void GetShaderPrecisionFormat(GLenum shadertype, GLenum precisiontype, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::GetShaderPrecisionFormat* c = GetCmdSpace(); if (c) { c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset); } } void GetShaderSource(GLuint shader, uint32_t bucket_id) { gles2::cmds::GetShaderSource* c = GetCmdSpace(); if (c) { c->Init(shader, bucket_id); } } void GetString(GLenum name, uint32_t bucket_id) { gles2::cmds::GetString* c = GetCmdSpace(); if (c) { c->Init(name, bucket_id); } } void GetTexParameterfv(GLenum target, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetTexParameterfv* c = GetCmdSpace(); if (c) { c->Init(target, pname, params_shm_id, params_shm_offset); } } void GetTexParameteriv(GLenum target, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetTexParameteriv* c = GetCmdSpace(); if (c) { c->Init(target, pname, params_shm_id, params_shm_offset); } } void GetUniformfv(GLuint program, GLint location, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetUniformfv* c = GetCmdSpace(); if (c) { c->Init(program, location, params_shm_id, params_shm_offset); } } void GetUniformiv(GLuint program, GLint location, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetUniformiv* c = GetCmdSpace(); if (c) { c->Init(program, location, params_shm_id, params_shm_offset); } } void GetUniformLocation(GLuint program, uint32_t name_bucket_id, uint32_t location_shm_id, uint32_t location_shm_offset) { gles2::cmds::GetUniformLocation* c = GetCmdSpace(); if (c) { c->Init(program, name_bucket_id, location_shm_id, location_shm_offset); } } void GetVertexAttribfv(GLuint index, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetVertexAttribfv* c = GetCmdSpace(); if (c) { c->Init(index, pname, params_shm_id, params_shm_offset); } } void GetVertexAttribiv(GLuint index, GLenum pname, uint32_t params_shm_id, uint32_t params_shm_offset) { gles2::cmds::GetVertexAttribiv* c = GetCmdSpace(); if (c) { c->Init(index, pname, params_shm_id, params_shm_offset); } } void GetVertexAttribPointerv(GLuint index, GLenum pname, uint32_t pointer_shm_id, uint32_t pointer_shm_offset) { gles2::cmds::GetVertexAttribPointerv* c = GetCmdSpace(); if (c) { c->Init(index, pname, pointer_shm_id, pointer_shm_offset); } } void Hint(GLenum target, GLenum mode) { gles2::cmds::Hint* c = GetCmdSpace(); if (c) { c->Init(target, mode); } } void IsBuffer(GLuint buffer, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsBuffer* c = GetCmdSpace(); if (c) { c->Init(buffer, result_shm_id, result_shm_offset); } } void IsEnabled(GLenum cap, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsEnabled* c = GetCmdSpace(); if (c) { c->Init(cap, result_shm_id, result_shm_offset); } } void IsFramebuffer(GLuint framebuffer, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsFramebuffer* c = GetCmdSpace(); if (c) { c->Init(framebuffer, result_shm_id, result_shm_offset); } } void IsProgram(GLuint program, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsProgram* c = GetCmdSpace(); if (c) { c->Init(program, result_shm_id, result_shm_offset); } } void IsRenderbuffer(GLuint renderbuffer, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsRenderbuffer* c = GetCmdSpace(); if (c) { c->Init(renderbuffer, result_shm_id, result_shm_offset); } } void IsShader(GLuint shader, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsShader* c = GetCmdSpace(); if (c) { c->Init(shader, result_shm_id, result_shm_offset); } } void IsTexture(GLuint texture, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsTexture* c = GetCmdSpace(); if (c) { c->Init(texture, result_shm_id, result_shm_offset); } } void LineWidth(GLfloat width) { gles2::cmds::LineWidth* c = GetCmdSpace(); if (c) { c->Init(width); } } void LinkProgram(GLuint program) { gles2::cmds::LinkProgram* c = GetCmdSpace(); if (c) { c->Init(program); } } void PixelStorei(GLenum pname, GLint param) { gles2::cmds::PixelStorei* c = GetCmdSpace(); if (c) { c->Init(pname, param); } } void PolygonOffset(GLfloat factor, GLfloat units) { gles2::cmds::PolygonOffset* c = GetCmdSpace(); if (c) { c->Init(factor, units); } } void ReadPixels(GLint x, GLint y, GLsizei width, GLsizei height, GLenum format, GLenum type, uint32_t pixels_shm_id, uint32_t pixels_shm_offset, uint32_t result_shm_id, uint32_t result_shm_offset, GLboolean async) { gles2::cmds::ReadPixels* c = GetCmdSpace(); if (c) { c->Init(x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset, result_shm_id, result_shm_offset, async); } } void ReleaseShaderCompiler() { gles2::cmds::ReleaseShaderCompiler* c = GetCmdSpace(); if (c) { c->Init(); } } void RenderbufferStorage(GLenum target, GLenum internalformat, GLsizei width, GLsizei height) { gles2::cmds::RenderbufferStorage* c = GetCmdSpace(); if (c) { c->Init(target, internalformat, width, height); } } void SampleCoverage(GLclampf value, GLboolean invert) { gles2::cmds::SampleCoverage* c = GetCmdSpace(); if (c) { c->Init(value, invert); } } void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) { gles2::cmds::Scissor* c = GetCmdSpace(); if (c) { c->Init(x, y, width, height); } } void ShaderBinary(GLsizei n, uint32_t shaders_shm_id, uint32_t shaders_shm_offset, GLenum binaryformat, uint32_t binary_shm_id, uint32_t binary_shm_offset, GLsizei length) { gles2::cmds::ShaderBinary* c = GetCmdSpace(); if (c) { c->Init(n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id, binary_shm_offset, length); } } void ShaderSourceBucket(GLuint shader, uint32_t data_bucket_id) { gles2::cmds::ShaderSourceBucket* c = GetCmdSpace(); if (c) { c->Init(shader, data_bucket_id); } } void StencilFunc(GLenum func, GLint ref, GLuint mask) { gles2::cmds::StencilFunc* c = GetCmdSpace(); if (c) { c->Init(func, ref, mask); } } void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) { gles2::cmds::StencilFuncSeparate* c = GetCmdSpace(); if (c) { c->Init(face, func, ref, mask); } } void StencilMask(GLuint mask) { gles2::cmds::StencilMask* c = GetCmdSpace(); if (c) { c->Init(mask); } } void StencilMaskSeparate(GLenum face, GLuint mask) { gles2::cmds::StencilMaskSeparate* c = GetCmdSpace(); if (c) { c->Init(face, mask); } } void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) { gles2::cmds::StencilOp* c = GetCmdSpace(); if (c) { c->Init(fail, zfail, zpass); } } void StencilOpSeparate(GLenum face, GLenum fail, GLenum zfail, GLenum zpass) { gles2::cmds::StencilOpSeparate* c = GetCmdSpace(); if (c) { c->Init(face, fail, zfail, zpass); } } void TexImage2D(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, uint32_t pixels_shm_id, uint32_t pixels_shm_offset) { gles2::cmds::TexImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, internalformat, width, height, format, type, pixels_shm_id, pixels_shm_offset); } } void TexParameterf(GLenum target, GLenum pname, GLfloat param) { gles2::cmds::TexParameterf* c = GetCmdSpace(); if (c) { c->Init(target, pname, param); } } void TexParameterfvImmediate(GLenum target, GLenum pname, const GLfloat* params) { const uint32_t size = gles2::cmds::TexParameterfvImmediate::ComputeSize(); gles2::cmds::TexParameterfvImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(target, pname, params); } } void TexParameteri(GLenum target, GLenum pname, GLint param) { gles2::cmds::TexParameteri* c = GetCmdSpace(); if (c) { c->Init(target, pname, param); } } void TexParameterivImmediate(GLenum target, GLenum pname, const GLint* params) { const uint32_t size = gles2::cmds::TexParameterivImmediate::ComputeSize(); gles2::cmds::TexParameterivImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(target, pname, params); } } void TexSubImage2D(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, uint32_t pixels_shm_id, uint32_t pixels_shm_offset, GLboolean internal) { gles2::cmds::TexSubImage2D* c = GetCmdSpace(); if (c) { c->Init(target, level, xoffset, yoffset, width, height, format, type, pixels_shm_id, pixels_shm_offset, internal); } } void Uniform1f(GLint location, GLfloat x) { gles2::cmds::Uniform1f* c = GetCmdSpace(); if (c) { c->Init(location, x); } } void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) { const uint32_t size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count); gles2::cmds::Uniform1fvImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform1i(GLint location, GLint x) { gles2::cmds::Uniform1i* c = GetCmdSpace(); if (c) { c->Init(location, x); } } void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) { const uint32_t size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count); gles2::cmds::Uniform1ivImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform2f(GLint location, GLfloat x, GLfloat y) { gles2::cmds::Uniform2f* c = GetCmdSpace(); if (c) { c->Init(location, x, y); } } void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) { const uint32_t size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count); gles2::cmds::Uniform2fvImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform2i(GLint location, GLint x, GLint y) { gles2::cmds::Uniform2i* c = GetCmdSpace(); if (c) { c->Init(location, x, y); } } void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) { const uint32_t size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count); gles2::cmds::Uniform2ivImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) { gles2::cmds::Uniform3f* c = GetCmdSpace(); if (c) { c->Init(location, x, y, z); } } void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) { const uint32_t size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count); gles2::cmds::Uniform3fvImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform3i(GLint location, GLint x, GLint y, GLint z) { gles2::cmds::Uniform3i* c = GetCmdSpace(); if (c) { c->Init(location, x, y, z); } } void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) { const uint32_t size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count); gles2::cmds::Uniform3ivImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { gles2::cmds::Uniform4f* c = GetCmdSpace(); if (c) { c->Init(location, x, y, z, w); } } void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) { const uint32_t size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count); gles2::cmds::Uniform4fvImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) { gles2::cmds::Uniform4i* c = GetCmdSpace(); if (c) { c->Init(location, x, y, z, w); } } void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) { const uint32_t size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count); gles2::cmds::Uniform4ivImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(location, count, v); } } void UniformMatrix2fvImmediate(GLint location, GLsizei count, const GLfloat* value) { const uint32_t size = gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count); gles2::cmds::UniformMatrix2fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(location, count, value); } } void UniformMatrix3fvImmediate(GLint location, GLsizei count, const GLfloat* value) { const uint32_t size = gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count); gles2::cmds::UniformMatrix3fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(location, count, value); } } void UniformMatrix4fvImmediate(GLint location, GLsizei count, const GLfloat* value) { const uint32_t size = gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count); gles2::cmds::UniformMatrix4fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(location, count, value); } } void UseProgram(GLuint program) { gles2::cmds::UseProgram* c = GetCmdSpace(); if (c) { c->Init(program); } } void ValidateProgram(GLuint program) { gles2::cmds::ValidateProgram* c = GetCmdSpace(); if (c) { c->Init(program); } } void VertexAttrib1f(GLuint indx, GLfloat x) { gles2::cmds::VertexAttrib1f* c = GetCmdSpace(); if (c) { c->Init(indx, x); } } void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) { const uint32_t size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize(); gles2::cmds::VertexAttrib1fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(indx, values); } } void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) { gles2::cmds::VertexAttrib2f* c = GetCmdSpace(); if (c) { c->Init(indx, x, y); } } void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) { const uint32_t size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize(); gles2::cmds::VertexAttrib2fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(indx, values); } } void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) { gles2::cmds::VertexAttrib3f* c = GetCmdSpace(); if (c) { c->Init(indx, x, y, z); } } void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) { const uint32_t size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize(); gles2::cmds::VertexAttrib3fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(indx, values); } } void VertexAttrib4f(GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) { gles2::cmds::VertexAttrib4f* c = GetCmdSpace(); if (c) { c->Init(indx, x, y, z, w); } } void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) { const uint32_t size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize(); gles2::cmds::VertexAttrib4fvImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(indx, values); } } void VertexAttribPointer(GLuint indx, GLint size, GLenum type, GLboolean normalized, GLsizei stride, GLuint offset) { gles2::cmds::VertexAttribPointer* c = GetCmdSpace(); if (c) { c->Init(indx, size, type, normalized, stride, offset); } } void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) { gles2::cmds::Viewport* c = GetCmdSpace(); if (c) { c->Init(x, y, width, height); } } void BlitFramebufferCHROMIUM(GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0, GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) { gles2::cmds::BlitFramebufferCHROMIUM* c = GetCmdSpace(); if (c) { c->Init( srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask, filter); } } void RenderbufferStorageMultisampleCHROMIUM(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { gles2::cmds::RenderbufferStorageMultisampleCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, samples, internalformat, width, height); } } void RenderbufferStorageMultisampleEXT(GLenum target, GLsizei samples, GLenum internalformat, GLsizei width, GLsizei height) { gles2::cmds::RenderbufferStorageMultisampleEXT* c = GetCmdSpace(); if (c) { c->Init(target, samples, internalformat, width, height); } } void FramebufferTexture2DMultisampleEXT(GLenum target, GLenum attachment, GLenum textarget, GLuint texture, GLsizei samples) { gles2::cmds::FramebufferTexture2DMultisampleEXT* c = GetCmdSpace(); if (c) { c->Init(target, attachment, textarget, texture, samples); } } void TexStorage2DEXT(GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width, GLsizei height) { gles2::cmds::TexStorage2DEXT* c = GetCmdSpace(); if (c) { c->Init(target, levels, internalFormat, width, height); } } void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) { const uint32_t size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n); gles2::cmds::GenQueriesEXTImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(n, queries); } } void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) { const uint32_t size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n); gles2::cmds::DeleteQueriesEXTImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, queries); } } void BeginQueryEXT(GLenum target, GLuint id, uint32_t sync_data_shm_id, uint32_t sync_data_shm_offset) { gles2::cmds::BeginQueryEXT* c = GetCmdSpace(); if (c) { c->Init(target, id, sync_data_shm_id, sync_data_shm_offset); } } void EndQueryEXT(GLenum target, GLuint submit_count) { gles2::cmds::EndQueryEXT* c = GetCmdSpace(); if (c) { c->Init(target, submit_count); } } void InsertEventMarkerEXT(GLuint bucket_id) { gles2::cmds::InsertEventMarkerEXT* c = GetCmdSpace(); if (c) { c->Init(bucket_id); } } void PushGroupMarkerEXT(GLuint bucket_id) { gles2::cmds::PushGroupMarkerEXT* c = GetCmdSpace(); if (c) { c->Init(bucket_id); } } void PopGroupMarkerEXT() { gles2::cmds::PopGroupMarkerEXT* c = GetCmdSpace(); if (c) { c->Init(); } } void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) { const uint32_t size = gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n); gles2::cmds::GenVertexArraysOESImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(n, arrays); } } void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) { const uint32_t size = gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n); gles2::cmds::DeleteVertexArraysOESImmediate* c = GetImmediateCmdSpaceTotalSize< gles2::cmds::DeleteVertexArraysOESImmediate>(size); if (c) { c->Init(n, arrays); } } void IsVertexArrayOES(GLuint array, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::IsVertexArrayOES* c = GetCmdSpace(); if (c) { c->Init(array, result_shm_id, result_shm_offset); } } void BindVertexArrayOES(GLuint array) { gles2::cmds::BindVertexArrayOES* c = GetCmdSpace(); if (c) { c->Init(array); } } void SwapBuffers() { gles2::cmds::SwapBuffers* c = GetCmdSpace(); if (c) { c->Init(); } } void GetMaxValueInBufferCHROMIUM(GLuint buffer_id, GLsizei count, GLenum type, GLuint offset, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::GetMaxValueInBufferCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(buffer_id, count, type, offset, result_shm_id, result_shm_offset); } } void EnableFeatureCHROMIUM(GLuint bucket_id, uint32_t result_shm_id, uint32_t result_shm_offset) { gles2::cmds::EnableFeatureCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(bucket_id, result_shm_id, result_shm_offset); } } void ResizeCHROMIUM(GLuint width, GLuint height, GLfloat scale_factor) { gles2::cmds::ResizeCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(width, height, scale_factor); } } void GetRequestableExtensionsCHROMIUM(uint32_t bucket_id) { gles2::cmds::GetRequestableExtensionsCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(bucket_id); } } void RequestExtensionCHROMIUM(uint32_t bucket_id) { gles2::cmds::RequestExtensionCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(bucket_id); } } void GetMultipleIntegervCHROMIUM(uint32_t pnames_shm_id, uint32_t pnames_shm_offset, GLuint count, uint32_t results_shm_id, uint32_t results_shm_offset, GLsizeiptr size) { gles2::cmds::GetMultipleIntegervCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(pnames_shm_id, pnames_shm_offset, count, results_shm_id, results_shm_offset, size); } } void GetProgramInfoCHROMIUM(GLuint program, uint32_t bucket_id) { gles2::cmds::GetProgramInfoCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(program, bucket_id); } } void GetTranslatedShaderSourceANGLE(GLuint shader, uint32_t bucket_id) { gles2::cmds::GetTranslatedShaderSourceANGLE* c = GetCmdSpace(); if (c) { c->Init(shader, bucket_id); } } void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { gles2::cmds::PostSubBufferCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(x, y, width, height); } } void TexImageIOSurface2DCHROMIUM(GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, GLuint plane) { gles2::cmds::TexImageIOSurface2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, width, height, ioSurfaceId, plane); } } void CopyTextureCHROMIUM(GLenum target, GLenum source_id, GLenum dest_id, GLint level, GLint internalformat, GLenum dest_type) { gles2::cmds::CopyTextureCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, source_id, dest_id, level, internalformat, dest_type); } } void DrawArraysInstancedANGLE(GLenum mode, GLint first, GLsizei count, GLsizei primcount) { gles2::cmds::DrawArraysInstancedANGLE* c = GetCmdSpace(); if (c) { c->Init(mode, first, count, primcount); } } void DrawElementsInstancedANGLE(GLenum mode, GLsizei count, GLenum type, GLuint index_offset, GLsizei primcount) { gles2::cmds::DrawElementsInstancedANGLE* c = GetCmdSpace(); if (c) { c->Init(mode, count, type, index_offset, primcount); } } void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { gles2::cmds::VertexAttribDivisorANGLE* c = GetCmdSpace(); if (c) { c->Init(index, divisor); } } void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { const uint32_t size = gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize(); gles2::cmds::ProduceTextureCHROMIUMImmediate* c = GetImmediateCmdSpaceTotalSize< gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); if (c) { c->Init(target, mailbox); } } void ProduceTextureDirectCHROMIUMImmediate(GLuint texture, GLenum target, const GLbyte* mailbox) { const uint32_t size = gles2::cmds::ProduceTextureDirectCHROMIUMImmediate::ComputeSize(); gles2::cmds::ProduceTextureDirectCHROMIUMImmediate* c = GetImmediateCmdSpaceTotalSize< gles2::cmds::ProduceTextureDirectCHROMIUMImmediate>(size); if (c) { c->Init(texture, target, mailbox); } } void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) { const uint32_t size = gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize(); gles2::cmds::ConsumeTextureCHROMIUMImmediate* c = GetImmediateCmdSpaceTotalSize< gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); if (c) { c->Init(target, mailbox); } } void BindUniformLocationCHROMIUMBucket(GLuint program, GLint location, uint32_t name_bucket_id) { gles2::cmds::BindUniformLocationCHROMIUMBucket* c = GetCmdSpace(); if (c) { c->Init(program, location, name_bucket_id); } } void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) { gles2::cmds::BindTexImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, imageId); } } void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) { gles2::cmds::ReleaseTexImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, imageId); } } void TraceBeginCHROMIUM(GLuint bucket_id) { gles2::cmds::TraceBeginCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(bucket_id); } } void TraceEndCHROMIUM() { gles2::cmds::TraceEndCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(); } } void AsyncTexSubImage2DCHROMIUM(GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width, GLsizei height, GLenum format, GLenum type, uint32_t data_shm_id, uint32_t data_shm_offset, uint32_t async_upload_token, uint32_t sync_data_shm_id, uint32_t sync_data_shm_offset) { gles2::cmds::AsyncTexSubImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, level, xoffset, yoffset, width, height, format, type, data_shm_id, data_shm_offset, async_upload_token, sync_data_shm_id, sync_data_shm_offset); } } void AsyncTexImage2DCHROMIUM(GLenum target, GLint level, GLint internalformat, GLsizei width, GLsizei height, GLenum format, GLenum type, uint32_t pixels_shm_id, uint32_t pixels_shm_offset, uint32_t async_upload_token, uint32_t sync_data_shm_id, uint32_t sync_data_shm_offset) { gles2::cmds::AsyncTexImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target, level, internalformat, width, height, format, type, pixels_shm_id, pixels_shm_offset, async_upload_token, sync_data_shm_id, sync_data_shm_offset); } } void WaitAsyncTexImage2DCHROMIUM(GLenum target) { gles2::cmds::WaitAsyncTexImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(target); } } void WaitAllAsyncTexImage2DCHROMIUM() { gles2::cmds::WaitAllAsyncTexImage2DCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(); } } void DiscardFramebufferEXTImmediate(GLenum target, GLsizei count, const GLenum* attachments) { const uint32_t size = gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count); gles2::cmds::DiscardFramebufferEXTImmediate* c = GetImmediateCmdSpaceTotalSize< gles2::cmds::DiscardFramebufferEXTImmediate>(size); if (c) { c->Init(target, count, attachments); } } void LoseContextCHROMIUM(GLenum current, GLenum other) { gles2::cmds::LoseContextCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(current, other); } } void WaitSyncPointCHROMIUM(GLuint sync_point) { gles2::cmds::WaitSyncPointCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(sync_point); } } void DrawBuffersEXTImmediate(GLsizei count, const GLenum* bufs) { const uint32_t size = gles2::cmds::DrawBuffersEXTImmediate::ComputeSize(count); gles2::cmds::DrawBuffersEXTImmediate* c = GetImmediateCmdSpaceTotalSize(size); if (c) { c->Init(count, bufs); } } void DiscardBackbufferCHROMIUM() { gles2::cmds::DiscardBackbufferCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(); } } 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) { gles2::cmds::ScheduleOverlayPlaneCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(plane_z_order, plane_transform, overlay_texture_id, bounds_x, bounds_y, bounds_width, bounds_height, uv_x, uv_y, uv_width, uv_height); } } void MatrixLoadfCHROMIUMImmediate(GLenum matrixMode, const GLfloat* m) { const uint32_t size = gles2::cmds::MatrixLoadfCHROMIUMImmediate::ComputeSize(); gles2::cmds::MatrixLoadfCHROMIUMImmediate* c = GetImmediateCmdSpaceTotalSize( size); if (c) { c->Init(matrixMode, m); } } void MatrixLoadIdentityCHROMIUM(GLenum matrixMode) { gles2::cmds::MatrixLoadIdentityCHROMIUM* c = GetCmdSpace(); if (c) { c->Init(matrixMode); } } void BlendBarrierKHR() { gles2::cmds::BlendBarrierKHR* c = GetCmdSpace(); if (c) { c->Init(); } } #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_