Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(285)

Unified Diff: gpu/command_buffer/client/gles2_cmd_helper_autogen.h

Issue 12326146: Refactor/Rename a bunch of GPU stuff (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/client/gles2_cmd_helper_autogen.h
diff --git a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
index 3aa64a19a8983f7a0a54d870d1f6f799fd7cea25..c9c8d7f344dbbe32e5b822046582d9b139cb163c 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -10,14 +10,14 @@
#define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
void ActiveTexture(GLenum texture) {
- gles2::ActiveTexture* c = GetCmdSpace<gles2::ActiveTexture>();
+ gles2::cmds::ActiveTexture* c = GetCmdSpace<gles2::cmds::ActiveTexture>();
if (c) {
c->Init(texture);
}
}
void AttachShader(GLuint program, GLuint shader) {
- gles2::AttachShader* c = GetCmdSpace<gles2::AttachShader>();
+ gles2::cmds::AttachShader* c = GetCmdSpace<gles2::cmds::AttachShader>();
if (c) {
c->Init(program, shader);
}
@@ -26,7 +26,8 @@
void BindAttribLocation(
GLuint program, GLuint index, uint32 name_shm_id, uint32 name_shm_offset,
uint32 data_size) {
- gles2::BindAttribLocation* c = GetCmdSpace<gles2::BindAttribLocation>();
+ gles2::cmds::BindAttribLocation* c =
+ GetCmdSpace<gles2::cmds::BindAttribLocation>();
if (c) {
c->Init(program, index, name_shm_id, name_shm_offset, data_size);
}
@@ -35,8 +36,9 @@
void BindAttribLocationImmediate(
GLuint program, GLuint index, const char* name) {
const uint32 data_size = strlen(name);
- gles2::BindAttribLocationImmediate* c =
- GetImmediateCmdSpace<gles2::BindAttribLocationImmediate>(data_size);
+ gles2::cmds::BindAttribLocationImmediate* c =
+ GetImmediateCmdSpace<gles2::cmds::BindAttribLocationImmediate>(
+ data_size);
if (c) {
c->Init(program, index, name, data_size);
}
@@ -44,36 +46,38 @@
void BindAttribLocationBucket(
GLuint program, GLuint index, uint32 name_bucket_id) {
- gles2::BindAttribLocationBucket* c =
- GetCmdSpace<gles2::BindAttribLocationBucket>();
+ gles2::cmds::BindAttribLocationBucket* c =
+ GetCmdSpace<gles2::cmds::BindAttribLocationBucket>();
if (c) {
c->Init(program, index, name_bucket_id);
}
}
void BindBuffer(GLenum target, GLuint buffer) {
- gles2::BindBuffer* c = GetCmdSpace<gles2::BindBuffer>();
+ gles2::cmds::BindBuffer* c = GetCmdSpace<gles2::cmds::BindBuffer>();
if (c) {
c->Init(target, buffer);
}
}
void BindFramebuffer(GLenum target, GLuint framebuffer) {
- gles2::BindFramebuffer* c = GetCmdSpace<gles2::BindFramebuffer>();
+ gles2::cmds::BindFramebuffer* c =
+ GetCmdSpace<gles2::cmds::BindFramebuffer>();
if (c) {
c->Init(target, framebuffer);
}
}
void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
- gles2::BindRenderbuffer* c = GetCmdSpace<gles2::BindRenderbuffer>();
+ gles2::cmds::BindRenderbuffer* c =
+ GetCmdSpace<gles2::cmds::BindRenderbuffer>();
if (c) {
c->Init(target, renderbuffer);
}
}
void BindTexture(GLenum target, GLuint texture) {
- gles2::BindTexture* c = GetCmdSpace<gles2::BindTexture>();
+ gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
if (c) {
c->Init(target, texture);
}
@@ -81,29 +85,29 @@
void BlendColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
- gles2::BlendColor* c = GetCmdSpace<gles2::BlendColor>();
+ gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>();
if (c) {
c->Init(red, green, blue, alpha);
}
}
void BlendEquation(GLenum mode) {
- gles2::BlendEquation* c = GetCmdSpace<gles2::BlendEquation>();
+ gles2::cmds::BlendEquation* c = GetCmdSpace<gles2::cmds::BlendEquation>();
if (c) {
c->Init(mode);
}
}
void BlendEquationSeparate(GLenum modeRGB, GLenum modeAlpha) {
- gles2::BlendEquationSeparate* c =
- GetCmdSpace<gles2::BlendEquationSeparate>();
+ gles2::cmds::BlendEquationSeparate* c =
+ GetCmdSpace<gles2::cmds::BlendEquationSeparate>();
if (c) {
c->Init(modeRGB, modeAlpha);
}
}
void BlendFunc(GLenum sfactor, GLenum dfactor) {
- gles2::BlendFunc* c = GetCmdSpace<gles2::BlendFunc>();
+ gles2::cmds::BlendFunc* c = GetCmdSpace<gles2::cmds::BlendFunc>();
if (c) {
c->Init(sfactor, dfactor);
}
@@ -111,7 +115,8 @@
void BlendFuncSeparate(
GLenum srcRGB, GLenum dstRGB, GLenum srcAlpha, GLenum dstAlpha) {
- gles2::BlendFuncSeparate* c = GetCmdSpace<gles2::BlendFuncSeparate>();
+ gles2::cmds::BlendFuncSeparate* c =
+ GetCmdSpace<gles2::cmds::BlendFuncSeparate>();
if (c) {
c->Init(srcRGB, dstRGB, srcAlpha, dstAlpha);
}
@@ -120,7 +125,7 @@
void BufferData(
GLenum target, GLsizeiptr size, uint32 data_shm_id,
uint32 data_shm_offset, GLenum usage) {
- gles2::BufferData* c = GetCmdSpace<gles2::BufferData>();
+ gles2::cmds::BufferData* c = GetCmdSpace<gles2::cmds::BufferData>();
if (c) {
c->Init(target, size, data_shm_id, data_shm_offset, usage);
}
@@ -128,8 +133,8 @@
void BufferDataImmediate(GLenum target, GLsizeiptr size, GLenum usage) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::BufferDataImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::BufferDataImmediate>(s);
+ gles2::cmds::BufferDataImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::BufferDataImmediate>(s);
if (c) {
c->Init(target, size, usage);
}
@@ -138,7 +143,7 @@
void BufferSubData(
GLenum target, GLintptr offset, GLsizeiptr size, uint32 data_shm_id,
uint32 data_shm_offset) {
- gles2::BufferSubData* c = GetCmdSpace<gles2::BufferSubData>();
+ gles2::cmds::BufferSubData* c = GetCmdSpace<gles2::cmds::BufferSubData>();
if (c) {
c->Init(target, offset, size, data_shm_id, data_shm_offset);
}
@@ -147,8 +152,8 @@
void BufferSubDataImmediate(
GLenum target, GLintptr offset, GLsizeiptr size) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::BufferSubDataImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::BufferSubDataImmediate>(s);
+ gles2::cmds::BufferSubDataImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::BufferSubDataImmediate>(s);
if (c) {
c->Init(target, offset, size);
}
@@ -156,15 +161,15 @@
void CheckFramebufferStatus(
GLenum target, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::CheckFramebufferStatus* c =
- GetCmdSpace<gles2::CheckFramebufferStatus>();
+ gles2::cmds::CheckFramebufferStatus* c =
+ GetCmdSpace<gles2::cmds::CheckFramebufferStatus>();
if (c) {
c->Init(target, result_shm_id, result_shm_offset);
}
}
void Clear(GLbitfield mask) {
- gles2::Clear* c = GetCmdSpace<gles2::Clear>();
+ gles2::cmds::Clear* c = GetCmdSpace<gles2::cmds::Clear>();
if (c) {
c->Init(mask);
}
@@ -172,21 +177,21 @@
void ClearColor(
GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
- gles2::ClearColor* c = GetCmdSpace<gles2::ClearColor>();
+ gles2::cmds::ClearColor* c = GetCmdSpace<gles2::cmds::ClearColor>();
if (c) {
c->Init(red, green, blue, alpha);
}
}
void ClearDepthf(GLclampf depth) {
- gles2::ClearDepthf* c = GetCmdSpace<gles2::ClearDepthf>();
+ gles2::cmds::ClearDepthf* c = GetCmdSpace<gles2::cmds::ClearDepthf>();
if (c) {
c->Init(depth);
}
}
void ClearStencil(GLint s) {
- gles2::ClearStencil* c = GetCmdSpace<gles2::ClearStencil>();
+ gles2::cmds::ClearStencil* c = GetCmdSpace<gles2::cmds::ClearStencil>();
if (c) {
c->Init(s);
}
@@ -194,14 +199,14 @@
void ColorMask(
GLboolean red, GLboolean green, GLboolean blue, GLboolean alpha) {
- gles2::ColorMask* c = GetCmdSpace<gles2::ColorMask>();
+ gles2::cmds::ColorMask* c = GetCmdSpace<gles2::cmds::ColorMask>();
if (c) {
c->Init(red, green, blue, alpha);
}
}
void CompileShader(GLuint shader) {
- gles2::CompileShader* c = GetCmdSpace<gles2::CompileShader>();
+ gles2::cmds::CompileShader* c = GetCmdSpace<gles2::cmds::CompileShader>();
if (c) {
c->Init(shader);
}
@@ -211,8 +216,8 @@
GLenum target, GLint level, GLenum internalformat, GLsizei width,
GLsizei height, GLint border, GLsizei imageSize, uint32 data_shm_id,
uint32 data_shm_offset) {
- gles2::CompressedTexImage2D* c =
- GetCmdSpace<gles2::CompressedTexImage2D>();
+ gles2::cmds::CompressedTexImage2D* c =
+ GetCmdSpace<gles2::cmds::CompressedTexImage2D>();
if (c) {
c->Init(
target, level, internalformat, width, height, border, imageSize,
@@ -224,8 +229,8 @@
GLenum target, GLint level, GLenum internalformat, GLsizei width,
GLsizei height, GLint border, GLsizei imageSize) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::CompressedTexImage2DImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::CompressedTexImage2DImmediate>(s);
+ gles2::cmds::CompressedTexImage2DImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::CompressedTexImage2DImmediate>(s); // NOLINT
if (c) {
c->Init(target, level, internalformat, width, height, border, imageSize);
}
@@ -234,8 +239,8 @@
void CompressedTexImage2DBucket(
GLenum target, GLint level, GLenum internalformat, GLsizei width,
GLsizei height, GLint border, GLuint bucket_id) {
- gles2::CompressedTexImage2DBucket* c =
- GetCmdSpace<gles2::CompressedTexImage2DBucket>();
+ gles2::cmds::CompressedTexImage2DBucket* c =
+ GetCmdSpace<gles2::cmds::CompressedTexImage2DBucket>();
if (c) {
c->Init(target, level, internalformat, width, height, border, bucket_id);
}
@@ -245,8 +250,8 @@
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLsizei imageSize, uint32 data_shm_id,
uint32 data_shm_offset) {
- gles2::CompressedTexSubImage2D* c =
- GetCmdSpace<gles2::CompressedTexSubImage2D>();
+ gles2::cmds::CompressedTexSubImage2D* c =
+ GetCmdSpace<gles2::cmds::CompressedTexSubImage2D>();
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, imageSize,
@@ -258,9 +263,8 @@
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLsizei imageSize) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::CompressedTexSubImage2DImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::CompressedTexSubImage2DImmediate>(
- s);
+ gles2::cmds::CompressedTexSubImage2DImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::CompressedTexSubImage2DImmediate>(s); // NOLINT
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, imageSize);
@@ -270,8 +274,8 @@
void CompressedTexSubImage2DBucket(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLuint bucket_id) {
- gles2::CompressedTexSubImage2DBucket* c =
- GetCmdSpace<gles2::CompressedTexSubImage2DBucket>();
+ gles2::cmds::CompressedTexSubImage2DBucket* c =
+ GetCmdSpace<gles2::cmds::CompressedTexSubImage2DBucket>();
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, bucket_id);
@@ -281,7 +285,8 @@
void CopyTexImage2D(
GLenum target, GLint level, GLenum internalformat, GLint x, GLint y,
GLsizei width, GLsizei height, GLint border) {
- gles2::CopyTexImage2D* c = GetCmdSpace<gles2::CopyTexImage2D>();
+ gles2::cmds::CopyTexImage2D* c =
+ GetCmdSpace<gles2::cmds::CopyTexImage2D>();
if (c) {
c->Init(target, level, internalformat, x, y, width, height, border);
}
@@ -290,28 +295,29 @@
void CopyTexSubImage2D(
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLint x,
GLint y, GLsizei width, GLsizei height) {
- gles2::CopyTexSubImage2D* c = GetCmdSpace<gles2::CopyTexSubImage2D>();
+ gles2::cmds::CopyTexSubImage2D* c =
+ GetCmdSpace<gles2::cmds::CopyTexSubImage2D>();
if (c) {
c->Init(target, level, xoffset, yoffset, x, y, width, height);
}
}
void CreateProgram(uint32 client_id) {
- gles2::CreateProgram* c = GetCmdSpace<gles2::CreateProgram>();
+ gles2::cmds::CreateProgram* c = GetCmdSpace<gles2::cmds::CreateProgram>();
if (c) {
c->Init(client_id);
}
}
void CreateShader(GLenum type, uint32 client_id) {
- gles2::CreateShader* c = GetCmdSpace<gles2::CreateShader>();
+ gles2::cmds::CreateShader* c = GetCmdSpace<gles2::cmds::CreateShader>();
if (c) {
c->Init(type, client_id);
}
}
void CullFace(GLenum mode) {
- gles2::CullFace* c = GetCmdSpace<gles2::CullFace>();
+ gles2::cmds::CullFace* c = GetCmdSpace<gles2::cmds::CullFace>();
if (c) {
c->Init(mode);
}
@@ -319,16 +325,17 @@
void DeleteBuffers(
GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) {
- gles2::DeleteBuffers* c = GetCmdSpace<gles2::DeleteBuffers>();
+ gles2::cmds::DeleteBuffers* c = GetCmdSpace<gles2::cmds::DeleteBuffers>();
if (c) {
c->Init(n, buffers_shm_id, buffers_shm_offset);
}
}
void DeleteBuffersImmediate(GLsizei n, const GLuint* buffers) {
- const uint32 size = gles2::DeleteBuffersImmediate::ComputeSize(n);
- gles2::DeleteBuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteBuffersImmediate>(size);
+ const uint32 size = gles2::cmds::DeleteBuffersImmediate::ComputeSize(n);
+ gles2::cmds::DeleteBuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteBuffersImmediate>(
+ size);
if (c) {
c->Init(n, buffers);
}
@@ -336,16 +343,18 @@
void DeleteFramebuffers(
GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) {
- gles2::DeleteFramebuffers* c = GetCmdSpace<gles2::DeleteFramebuffers>();
+ gles2::cmds::DeleteFramebuffers* c =
+ GetCmdSpace<gles2::cmds::DeleteFramebuffers>();
if (c) {
c->Init(n, framebuffers_shm_id, framebuffers_shm_offset);
}
}
void DeleteFramebuffersImmediate(GLsizei n, const GLuint* framebuffers) {
- const uint32 size = gles2::DeleteFramebuffersImmediate::ComputeSize(n);
- gles2::DeleteFramebuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteFramebuffersImmediate>(
+ const uint32 size =
+ gles2::cmds::DeleteFramebuffersImmediate::ComputeSize(n);
+ gles2::cmds::DeleteFramebuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteFramebuffersImmediate>(
size);
if (c) {
c->Init(n, framebuffers);
@@ -353,7 +362,7 @@
}
void DeleteProgram(GLuint program) {
- gles2::DeleteProgram* c = GetCmdSpace<gles2::DeleteProgram>();
+ gles2::cmds::DeleteProgram* c = GetCmdSpace<gles2::cmds::DeleteProgram>();
if (c) {
c->Init(program);
}
@@ -362,24 +371,25 @@
void DeleteRenderbuffers(
GLsizei n, uint32 renderbuffers_shm_id,
uint32 renderbuffers_shm_offset) {
- gles2::DeleteRenderbuffers* c = GetCmdSpace<gles2::DeleteRenderbuffers>();
+ gles2::cmds::DeleteRenderbuffers* c =
+ GetCmdSpace<gles2::cmds::DeleteRenderbuffers>();
if (c) {
c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset);
}
}
void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) {
- const uint32 size = gles2::DeleteRenderbuffersImmediate::ComputeSize(n);
- gles2::DeleteRenderbuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteRenderbuffersImmediate>(
- size);
+ const uint32 size =
+ gles2::cmds::DeleteRenderbuffersImmediate::ComputeSize(n);
+ gles2::cmds::DeleteRenderbuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteRenderbuffersImmediate>(size); // NOLINT
if (c) {
c->Init(n, renderbuffers);
}
}
void DeleteShader(GLuint shader) {
- gles2::DeleteShader* c = GetCmdSpace<gles2::DeleteShader>();
+ gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
if (c) {
c->Init(shader);
}
@@ -387,66 +397,68 @@
void DeleteTextures(
GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) {
- gles2::DeleteTextures* c = GetCmdSpace<gles2::DeleteTextures>();
+ gles2::cmds::DeleteTextures* c =
+ GetCmdSpace<gles2::cmds::DeleteTextures>();
if (c) {
c->Init(n, textures_shm_id, textures_shm_offset);
}
}
void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
- const uint32 size = gles2::DeleteTexturesImmediate::ComputeSize(n);
- gles2::DeleteTexturesImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteTexturesImmediate>(size);
+ const uint32 size = gles2::cmds::DeleteTexturesImmediate::ComputeSize(n);
+ gles2::cmds::DeleteTexturesImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteTexturesImmediate>(
+ size);
if (c) {
c->Init(n, textures);
}
}
void DepthFunc(GLenum func) {
- gles2::DepthFunc* c = GetCmdSpace<gles2::DepthFunc>();
+ gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
if (c) {
c->Init(func);
}
}
void DepthMask(GLboolean flag) {
- gles2::DepthMask* c = GetCmdSpace<gles2::DepthMask>();
+ gles2::cmds::DepthMask* c = GetCmdSpace<gles2::cmds::DepthMask>();
if (c) {
c->Init(flag);
}
}
void DepthRangef(GLclampf zNear, GLclampf zFar) {
- gles2::DepthRangef* c = GetCmdSpace<gles2::DepthRangef>();
+ gles2::cmds::DepthRangef* c = GetCmdSpace<gles2::cmds::DepthRangef>();
if (c) {
c->Init(zNear, zFar);
}
}
void DetachShader(GLuint program, GLuint shader) {
- gles2::DetachShader* c = GetCmdSpace<gles2::DetachShader>();
+ gles2::cmds::DetachShader* c = GetCmdSpace<gles2::cmds::DetachShader>();
if (c) {
c->Init(program, shader);
}
}
void Disable(GLenum cap) {
- gles2::Disable* c = GetCmdSpace<gles2::Disable>();
+ gles2::cmds::Disable* c = GetCmdSpace<gles2::cmds::Disable>();
if (c) {
c->Init(cap);
}
}
void DisableVertexAttribArray(GLuint index) {
- gles2::DisableVertexAttribArray* c =
- GetCmdSpace<gles2::DisableVertexAttribArray>();
+ gles2::cmds::DisableVertexAttribArray* c =
+ GetCmdSpace<gles2::cmds::DisableVertexAttribArray>();
if (c) {
c->Init(index);
}
}
void DrawArrays(GLenum mode, GLint first, GLsizei count) {
- gles2::DrawArrays* c = GetCmdSpace<gles2::DrawArrays>();
+ gles2::cmds::DrawArrays* c = GetCmdSpace<gles2::cmds::DrawArrays>();
if (c) {
c->Init(mode, first, count);
}
@@ -454,36 +466,36 @@
void DrawElements(
GLenum mode, GLsizei count, GLenum type, GLuint index_offset) {
- gles2::DrawElements* c = GetCmdSpace<gles2::DrawElements>();
+ gles2::cmds::DrawElements* c = GetCmdSpace<gles2::cmds::DrawElements>();
if (c) {
c->Init(mode, count, type, index_offset);
}
}
void Enable(GLenum cap) {
- gles2::Enable* c = GetCmdSpace<gles2::Enable>();
+ gles2::cmds::Enable* c = GetCmdSpace<gles2::cmds::Enable>();
if (c) {
c->Init(cap);
}
}
void EnableVertexAttribArray(GLuint index) {
- gles2::EnableVertexAttribArray* c =
- GetCmdSpace<gles2::EnableVertexAttribArray>();
+ gles2::cmds::EnableVertexAttribArray* c =
+ GetCmdSpace<gles2::cmds::EnableVertexAttribArray>();
if (c) {
c->Init(index);
}
}
void Finish() {
- gles2::Finish* c = GetCmdSpace<gles2::Finish>();
+ gles2::cmds::Finish* c = GetCmdSpace<gles2::cmds::Finish>();
if (c) {
c->Init();
}
}
void Flush() {
- gles2::Flush* c = GetCmdSpace<gles2::Flush>();
+ gles2::cmds::Flush* c = GetCmdSpace<gles2::cmds::Flush>();
if (c) {
c->Init();
}
@@ -492,8 +504,8 @@
void FramebufferRenderbuffer(
GLenum target, GLenum attachment, GLenum renderbuffertarget,
GLuint renderbuffer) {
- gles2::FramebufferRenderbuffer* c =
- GetCmdSpace<gles2::FramebufferRenderbuffer>();
+ gles2::cmds::FramebufferRenderbuffer* c =
+ GetCmdSpace<gles2::cmds::FramebufferRenderbuffer>();
if (c) {
c->Init(target, attachment, renderbuffertarget, renderbuffer);
}
@@ -502,15 +514,15 @@
void FramebufferTexture2D(
GLenum target, GLenum attachment, GLenum textarget, GLuint texture,
GLint level) {
- gles2::FramebufferTexture2D* c =
- GetCmdSpace<gles2::FramebufferTexture2D>();
+ gles2::cmds::FramebufferTexture2D* c =
+ GetCmdSpace<gles2::cmds::FramebufferTexture2D>();
if (c) {
c->Init(target, attachment, textarget, texture, level);
}
}
void FrontFace(GLenum mode) {
- gles2::FrontFace* c = GetCmdSpace<gles2::FrontFace>();
+ gles2::cmds::FrontFace* c = GetCmdSpace<gles2::cmds::FrontFace>();
if (c) {
c->Init(mode);
}
@@ -518,23 +530,24 @@
void GenBuffers(
GLsizei n, uint32 buffers_shm_id, uint32 buffers_shm_offset) {
- gles2::GenBuffers* c = GetCmdSpace<gles2::GenBuffers>();
+ gles2::cmds::GenBuffers* c = GetCmdSpace<gles2::cmds::GenBuffers>();
if (c) {
c->Init(n, buffers_shm_id, buffers_shm_offset);
}
}
void GenBuffersImmediate(GLsizei n, GLuint* buffers) {
- const uint32 size = gles2::GenBuffersImmediate::ComputeSize(n);
- gles2::GenBuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenBuffersImmediate>(size);
+ const uint32 size = gles2::cmds::GenBuffersImmediate::ComputeSize(n);
+ gles2::cmds::GenBuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenBuffersImmediate>(size);
if (c) {
c->Init(n, buffers);
}
}
void GenerateMipmap(GLenum target) {
- gles2::GenerateMipmap* c = GetCmdSpace<gles2::GenerateMipmap>();
+ gles2::cmds::GenerateMipmap* c =
+ GetCmdSpace<gles2::cmds::GenerateMipmap>();
if (c) {
c->Init(target);
}
@@ -542,16 +555,18 @@
void GenFramebuffers(
GLsizei n, uint32 framebuffers_shm_id, uint32 framebuffers_shm_offset) {
- gles2::GenFramebuffers* c = GetCmdSpace<gles2::GenFramebuffers>();
+ gles2::cmds::GenFramebuffers* c =
+ GetCmdSpace<gles2::cmds::GenFramebuffers>();
if (c) {
c->Init(n, framebuffers_shm_id, framebuffers_shm_offset);
}
}
void GenFramebuffersImmediate(GLsizei n, GLuint* framebuffers) {
- const uint32 size = gles2::GenFramebuffersImmediate::ComputeSize(n);
- gles2::GenFramebuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenFramebuffersImmediate>(size);
+ const uint32 size = gles2::cmds::GenFramebuffersImmediate::ComputeSize(n);
+ gles2::cmds::GenFramebuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenFramebuffersImmediate>(
+ size);
if (c) {
c->Init(n, framebuffers);
}
@@ -560,16 +575,18 @@
void GenRenderbuffers(
GLsizei n, uint32 renderbuffers_shm_id,
uint32 renderbuffers_shm_offset) {
- gles2::GenRenderbuffers* c = GetCmdSpace<gles2::GenRenderbuffers>();
+ gles2::cmds::GenRenderbuffers* c =
+ GetCmdSpace<gles2::cmds::GenRenderbuffers>();
if (c) {
c->Init(n, renderbuffers_shm_id, renderbuffers_shm_offset);
}
}
void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) {
- const uint32 size = gles2::GenRenderbuffersImmediate::ComputeSize(n);
- gles2::GenRenderbuffersImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenRenderbuffersImmediate>(size);
+ const uint32 size = gles2::cmds::GenRenderbuffersImmediate::ComputeSize(n);
+ gles2::cmds::GenRenderbuffersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenRenderbuffersImmediate>(
+ size);
if (c) {
c->Init(n, renderbuffers);
}
@@ -577,16 +594,16 @@
void GenTextures(
GLsizei n, uint32 textures_shm_id, uint32 textures_shm_offset) {
- gles2::GenTextures* c = GetCmdSpace<gles2::GenTextures>();
+ gles2::cmds::GenTextures* c = GetCmdSpace<gles2::cmds::GenTextures>();
if (c) {
c->Init(n, textures_shm_id, textures_shm_offset);
}
}
void GenTexturesImmediate(GLsizei n, GLuint* textures) {
- const uint32 size = gles2::GenTexturesImmediate::ComputeSize(n);
- gles2::GenTexturesImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenTexturesImmediate>(size);
+ const uint32 size = gles2::cmds::GenTexturesImmediate::ComputeSize(n);
+ gles2::cmds::GenTexturesImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenTexturesImmediate>(size);
if (c) {
c->Init(n, textures);
}
@@ -595,7 +612,8 @@
void GetActiveAttrib(
GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id,
uint32 result_shm_offset) {
- gles2::GetActiveAttrib* c = GetCmdSpace<gles2::GetActiveAttrib>();
+ gles2::cmds::GetActiveAttrib* c =
+ GetCmdSpace<gles2::cmds::GetActiveAttrib>();
if (c) {
c->Init(
program, index, name_bucket_id, result_shm_id, result_shm_offset);
@@ -605,7 +623,8 @@
void GetActiveUniform(
GLuint program, GLuint index, uint32 name_bucket_id, uint32 result_shm_id,
uint32 result_shm_offset) {
- gles2::GetActiveUniform* c = GetCmdSpace<gles2::GetActiveUniform>();
+ gles2::cmds::GetActiveUniform* c =
+ GetCmdSpace<gles2::cmds::GetActiveUniform>();
if (c) {
c->Init(
program, index, name_bucket_id, result_shm_id, result_shm_offset);
@@ -615,7 +634,8 @@
void GetAttachedShaders(
GLuint program, uint32 result_shm_id, uint32 result_shm_offset,
uint32 result_size) {
- gles2::GetAttachedShaders* c = GetCmdSpace<gles2::GetAttachedShaders>();
+ gles2::cmds::GetAttachedShaders* c =
+ GetCmdSpace<gles2::cmds::GetAttachedShaders>();
if (c) {
c->Init(program, result_shm_id, result_shm_offset, result_size);
}
@@ -623,7 +643,7 @@
void GetBooleanv(
GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
- gles2::GetBooleanv* c = GetCmdSpace<gles2::GetBooleanv>();
+ gles2::cmds::GetBooleanv* c = GetCmdSpace<gles2::cmds::GetBooleanv>();
if (c) {
c->Init(pname, params_shm_id, params_shm_offset);
}
@@ -632,15 +652,15 @@
void GetBufferParameteriv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetBufferParameteriv* c =
- GetCmdSpace<gles2::GetBufferParameteriv>();
+ gles2::cmds::GetBufferParameteriv* c =
+ GetCmdSpace<gles2::cmds::GetBufferParameteriv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
}
void GetError(uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::GetError* c = GetCmdSpace<gles2::GetError>();
+ gles2::cmds::GetError* c = GetCmdSpace<gles2::cmds::GetError>();
if (c) {
c->Init(result_shm_id, result_shm_offset);
}
@@ -648,7 +668,7 @@
void GetFloatv(
GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
- gles2::GetFloatv* c = GetCmdSpace<gles2::GetFloatv>();
+ gles2::cmds::GetFloatv* c = GetCmdSpace<gles2::cmds::GetFloatv>();
if (c) {
c->Init(pname, params_shm_id, params_shm_offset);
}
@@ -657,8 +677,8 @@
void GetFramebufferAttachmentParameteriv(
GLenum target, GLenum attachment, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetFramebufferAttachmentParameteriv* c =
- GetCmdSpace<gles2::GetFramebufferAttachmentParameteriv>();
+ gles2::cmds::GetFramebufferAttachmentParameteriv* c =
+ GetCmdSpace<gles2::cmds::GetFramebufferAttachmentParameteriv>();
if (c) {
c->Init(target, attachment, pname, params_shm_id, params_shm_offset);
}
@@ -666,7 +686,7 @@
void GetIntegerv(
GLenum pname, uint32 params_shm_id, uint32 params_shm_offset) {
- gles2::GetIntegerv* c = GetCmdSpace<gles2::GetIntegerv>();
+ gles2::cmds::GetIntegerv* c = GetCmdSpace<gles2::cmds::GetIntegerv>();
if (c) {
c->Init(pname, params_shm_id, params_shm_offset);
}
@@ -675,14 +695,15 @@
void GetProgramiv(
GLuint program, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetProgramiv* c = GetCmdSpace<gles2::GetProgramiv>();
+ gles2::cmds::GetProgramiv* c = GetCmdSpace<gles2::cmds::GetProgramiv>();
if (c) {
c->Init(program, pname, params_shm_id, params_shm_offset);
}
}
void GetProgramInfoLog(GLuint program, uint32 bucket_id) {
- gles2::GetProgramInfoLog* c = GetCmdSpace<gles2::GetProgramInfoLog>();
+ gles2::cmds::GetProgramInfoLog* c =
+ GetCmdSpace<gles2::cmds::GetProgramInfoLog>();
if (c) {
c->Init(program, bucket_id);
}
@@ -691,8 +712,8 @@
void GetRenderbufferParameteriv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetRenderbufferParameteriv* c =
- GetCmdSpace<gles2::GetRenderbufferParameteriv>();
+ gles2::cmds::GetRenderbufferParameteriv* c =
+ GetCmdSpace<gles2::cmds::GetRenderbufferParameteriv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
@@ -701,14 +722,15 @@
void GetShaderiv(
GLuint shader, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetShaderiv* c = GetCmdSpace<gles2::GetShaderiv>();
+ gles2::cmds::GetShaderiv* c = GetCmdSpace<gles2::cmds::GetShaderiv>();
if (c) {
c->Init(shader, pname, params_shm_id, params_shm_offset);
}
}
void GetShaderInfoLog(GLuint shader, uint32 bucket_id) {
- gles2::GetShaderInfoLog* c = GetCmdSpace<gles2::GetShaderInfoLog>();
+ gles2::cmds::GetShaderInfoLog* c =
+ GetCmdSpace<gles2::cmds::GetShaderInfoLog>();
if (c) {
c->Init(shader, bucket_id);
}
@@ -717,22 +739,23 @@
void GetShaderPrecisionFormat(
GLenum shadertype, GLenum precisiontype, uint32 result_shm_id,
uint32 result_shm_offset) {
- gles2::GetShaderPrecisionFormat* c =
- GetCmdSpace<gles2::GetShaderPrecisionFormat>();
+ gles2::cmds::GetShaderPrecisionFormat* c =
+ GetCmdSpace<gles2::cmds::GetShaderPrecisionFormat>();
if (c) {
c->Init(shadertype, precisiontype, result_shm_id, result_shm_offset);
}
}
void GetShaderSource(GLuint shader, uint32 bucket_id) {
- gles2::GetShaderSource* c = GetCmdSpace<gles2::GetShaderSource>();
+ gles2::cmds::GetShaderSource* c =
+ GetCmdSpace<gles2::cmds::GetShaderSource>();
if (c) {
c->Init(shader, bucket_id);
}
}
void GetString(GLenum name, uint32 bucket_id) {
- gles2::GetString* c = GetCmdSpace<gles2::GetString>();
+ gles2::cmds::GetString* c = GetCmdSpace<gles2::cmds::GetString>();
if (c) {
c->Init(name, bucket_id);
}
@@ -741,7 +764,8 @@
void GetTexParameterfv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetTexParameterfv* c = GetCmdSpace<gles2::GetTexParameterfv>();
+ gles2::cmds::GetTexParameterfv* c =
+ GetCmdSpace<gles2::cmds::GetTexParameterfv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
@@ -750,7 +774,8 @@
void GetTexParameteriv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetTexParameteriv* c = GetCmdSpace<gles2::GetTexParameteriv>();
+ gles2::cmds::GetTexParameteriv* c =
+ GetCmdSpace<gles2::cmds::GetTexParameteriv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
@@ -759,7 +784,7 @@
void GetUniformfv(
GLuint program, GLint location, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetUniformfv* c = GetCmdSpace<gles2::GetUniformfv>();
+ gles2::cmds::GetUniformfv* c = GetCmdSpace<gles2::cmds::GetUniformfv>();
if (c) {
c->Init(program, location, params_shm_id, params_shm_offset);
}
@@ -768,7 +793,7 @@
void GetUniformiv(
GLuint program, GLint location, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetUniformiv* c = GetCmdSpace<gles2::GetUniformiv>();
+ gles2::cmds::GetUniformiv* c = GetCmdSpace<gles2::cmds::GetUniformiv>();
if (c) {
c->Init(program, location, params_shm_id, params_shm_offset);
}
@@ -777,7 +802,8 @@
void GetVertexAttribfv(
GLuint index, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetVertexAttribfv* c = GetCmdSpace<gles2::GetVertexAttribfv>();
+ gles2::cmds::GetVertexAttribfv* c =
+ GetCmdSpace<gles2::cmds::GetVertexAttribfv>();
if (c) {
c->Init(index, pname, params_shm_id, params_shm_offset);
}
@@ -786,7 +812,8 @@
void GetVertexAttribiv(
GLuint index, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::GetVertexAttribiv* c = GetCmdSpace<gles2::GetVertexAttribiv>();
+ gles2::cmds::GetVertexAttribiv* c =
+ GetCmdSpace<gles2::cmds::GetVertexAttribiv>();
if (c) {
c->Init(index, pname, params_shm_id, params_shm_offset);
}
@@ -795,15 +822,15 @@
void GetVertexAttribPointerv(
GLuint index, GLenum pname, uint32 pointer_shm_id,
uint32 pointer_shm_offset) {
- gles2::GetVertexAttribPointerv* c =
- GetCmdSpace<gles2::GetVertexAttribPointerv>();
+ gles2::cmds::GetVertexAttribPointerv* c =
+ GetCmdSpace<gles2::cmds::GetVertexAttribPointerv>();
if (c) {
c->Init(index, pname, pointer_shm_id, pointer_shm_offset);
}
}
void Hint(GLenum target, GLenum mode) {
- gles2::Hint* c = GetCmdSpace<gles2::Hint>();
+ gles2::cmds::Hint* c = GetCmdSpace<gles2::cmds::Hint>();
if (c) {
c->Init(target, mode);
}
@@ -811,14 +838,14 @@
void IsBuffer(
GLuint buffer, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsBuffer* c = GetCmdSpace<gles2::IsBuffer>();
+ gles2::cmds::IsBuffer* c = GetCmdSpace<gles2::cmds::IsBuffer>();
if (c) {
c->Init(buffer, result_shm_id, result_shm_offset);
}
}
void IsEnabled(GLenum cap, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsEnabled* c = GetCmdSpace<gles2::IsEnabled>();
+ gles2::cmds::IsEnabled* c = GetCmdSpace<gles2::cmds::IsEnabled>();
if (c) {
c->Init(cap, result_shm_id, result_shm_offset);
}
@@ -826,7 +853,7 @@
void IsFramebuffer(
GLuint framebuffer, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsFramebuffer* c = GetCmdSpace<gles2::IsFramebuffer>();
+ gles2::cmds::IsFramebuffer* c = GetCmdSpace<gles2::cmds::IsFramebuffer>();
if (c) {
c->Init(framebuffer, result_shm_id, result_shm_offset);
}
@@ -834,7 +861,7 @@
void IsProgram(
GLuint program, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsProgram* c = GetCmdSpace<gles2::IsProgram>();
+ gles2::cmds::IsProgram* c = GetCmdSpace<gles2::cmds::IsProgram>();
if (c) {
c->Init(program, result_shm_id, result_shm_offset);
}
@@ -842,7 +869,8 @@
void IsRenderbuffer(
GLuint renderbuffer, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsRenderbuffer* c = GetCmdSpace<gles2::IsRenderbuffer>();
+ gles2::cmds::IsRenderbuffer* c =
+ GetCmdSpace<gles2::cmds::IsRenderbuffer>();
if (c) {
c->Init(renderbuffer, result_shm_id, result_shm_offset);
}
@@ -850,7 +878,7 @@
void IsShader(
GLuint shader, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsShader* c = GetCmdSpace<gles2::IsShader>();
+ gles2::cmds::IsShader* c = GetCmdSpace<gles2::cmds::IsShader>();
if (c) {
c->Init(shader, result_shm_id, result_shm_offset);
}
@@ -858,35 +886,35 @@
void IsTexture(
GLuint texture, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsTexture* c = GetCmdSpace<gles2::IsTexture>();
+ gles2::cmds::IsTexture* c = GetCmdSpace<gles2::cmds::IsTexture>();
if (c) {
c->Init(texture, result_shm_id, result_shm_offset);
}
}
void LineWidth(GLfloat width) {
- gles2::LineWidth* c = GetCmdSpace<gles2::LineWidth>();
+ gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
if (c) {
c->Init(width);
}
}
void LinkProgram(GLuint program) {
- gles2::LinkProgram* c = GetCmdSpace<gles2::LinkProgram>();
+ gles2::cmds::LinkProgram* c = GetCmdSpace<gles2::cmds::LinkProgram>();
if (c) {
c->Init(program);
}
}
void PixelStorei(GLenum pname, GLint param) {
- gles2::PixelStorei* c = GetCmdSpace<gles2::PixelStorei>();
+ gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
if (c) {
c->Init(pname, param);
}
}
void PolygonOffset(GLfloat factor, GLfloat units) {
- gles2::PolygonOffset* c = GetCmdSpace<gles2::PolygonOffset>();
+ gles2::cmds::PolygonOffset* c = GetCmdSpace<gles2::cmds::PolygonOffset>();
if (c) {
c->Init(factor, units);
}
@@ -896,7 +924,7 @@
GLint x, GLint y, GLsizei width, GLsizei height, GLenum format,
GLenum type, uint32 pixels_shm_id, uint32 pixels_shm_offset,
uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::ReadPixels* c = GetCmdSpace<gles2::ReadPixels>();
+ gles2::cmds::ReadPixels* c = GetCmdSpace<gles2::cmds::ReadPixels>();
if (c) {
c->Init(
x, y, width, height, format, type, pixels_shm_id, pixels_shm_offset,
@@ -905,8 +933,8 @@
}
void ReleaseShaderCompiler() {
- gles2::ReleaseShaderCompiler* c =
- GetCmdSpace<gles2::ReleaseShaderCompiler>();
+ gles2::cmds::ReleaseShaderCompiler* c =
+ GetCmdSpace<gles2::cmds::ReleaseShaderCompiler>();
if (c) {
c->Init();
}
@@ -914,21 +942,23 @@
void RenderbufferStorage(
GLenum target, GLenum internalformat, GLsizei width, GLsizei height) {
- gles2::RenderbufferStorage* c = GetCmdSpace<gles2::RenderbufferStorage>();
+ gles2::cmds::RenderbufferStorage* c =
+ GetCmdSpace<gles2::cmds::RenderbufferStorage>();
if (c) {
c->Init(target, internalformat, width, height);
}
}
void SampleCoverage(GLclampf value, GLboolean invert) {
- gles2::SampleCoverage* c = GetCmdSpace<gles2::SampleCoverage>();
+ gles2::cmds::SampleCoverage* c =
+ GetCmdSpace<gles2::cmds::SampleCoverage>();
if (c) {
c->Init(value, invert);
}
}
void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
- gles2::Scissor* c = GetCmdSpace<gles2::Scissor>();
+ gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>();
if (c) {
c->Init(x, y, width, height);
}
@@ -938,7 +968,7 @@
GLsizei n, uint32 shaders_shm_id, uint32 shaders_shm_offset,
GLenum binaryformat, uint32 binary_shm_id, uint32 binary_shm_offset,
GLsizei length) {
- gles2::ShaderBinary* c = GetCmdSpace<gles2::ShaderBinary>();
+ gles2::cmds::ShaderBinary* c = GetCmdSpace<gles2::cmds::ShaderBinary>();
if (c) {
c->Init(
n, shaders_shm_id, shaders_shm_offset, binaryformat, binary_shm_id,
@@ -949,7 +979,7 @@
void ShaderSource(
GLuint shader, uint32 data_shm_id, uint32 data_shm_offset,
uint32 data_size) {
- gles2::ShaderSource* c = GetCmdSpace<gles2::ShaderSource>();
+ gles2::cmds::ShaderSource* c = GetCmdSpace<gles2::cmds::ShaderSource>();
if (c) {
c->Init(shader, data_shm_id, data_shm_offset, data_size);
}
@@ -957,50 +987,53 @@
void ShaderSourceImmediate(GLuint shader, uint32 data_size) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::ShaderSourceImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::ShaderSourceImmediate>(s);
+ gles2::cmds::ShaderSourceImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::ShaderSourceImmediate>(s);
if (c) {
c->Init(shader, data_size);
}
}
void ShaderSourceBucket(GLuint shader, uint32 data_bucket_id) {
- gles2::ShaderSourceBucket* c = GetCmdSpace<gles2::ShaderSourceBucket>();
+ gles2::cmds::ShaderSourceBucket* c =
+ GetCmdSpace<gles2::cmds::ShaderSourceBucket>();
if (c) {
c->Init(shader, data_bucket_id);
}
}
void StencilFunc(GLenum func, GLint ref, GLuint mask) {
- gles2::StencilFunc* c = GetCmdSpace<gles2::StencilFunc>();
+ gles2::cmds::StencilFunc* c = GetCmdSpace<gles2::cmds::StencilFunc>();
if (c) {
c->Init(func, ref, mask);
}
}
void StencilFuncSeparate(GLenum face, GLenum func, GLint ref, GLuint mask) {
- gles2::StencilFuncSeparate* c = GetCmdSpace<gles2::StencilFuncSeparate>();
+ gles2::cmds::StencilFuncSeparate* c =
+ GetCmdSpace<gles2::cmds::StencilFuncSeparate>();
if (c) {
c->Init(face, func, ref, mask);
}
}
void StencilMask(GLuint mask) {
- gles2::StencilMask* c = GetCmdSpace<gles2::StencilMask>();
+ gles2::cmds::StencilMask* c = GetCmdSpace<gles2::cmds::StencilMask>();
if (c) {
c->Init(mask);
}
}
void StencilMaskSeparate(GLenum face, GLuint mask) {
- gles2::StencilMaskSeparate* c = GetCmdSpace<gles2::StencilMaskSeparate>();
+ gles2::cmds::StencilMaskSeparate* c =
+ GetCmdSpace<gles2::cmds::StencilMaskSeparate>();
if (c) {
c->Init(face, mask);
}
}
void StencilOp(GLenum fail, GLenum zfail, GLenum zpass) {
- gles2::StencilOp* c = GetCmdSpace<gles2::StencilOp>();
+ gles2::cmds::StencilOp* c = GetCmdSpace<gles2::cmds::StencilOp>();
if (c) {
c->Init(fail, zfail, zpass);
}
@@ -1008,7 +1041,8 @@
void StencilOpSeparate(
GLenum face, GLenum fail, GLenum zfail, GLenum zpass) {
- gles2::StencilOpSeparate* c = GetCmdSpace<gles2::StencilOpSeparate>();
+ gles2::cmds::StencilOpSeparate* c =
+ GetCmdSpace<gles2::cmds::StencilOpSeparate>();
if (c) {
c->Init(face, fail, zfail, zpass);
}
@@ -1018,7 +1052,7 @@
GLenum target, GLint level, GLint internalformat, GLsizei width,
GLsizei height, GLint border, GLenum format, GLenum type,
uint32 pixels_shm_id, uint32 pixels_shm_offset) {
- gles2::TexImage2D* c = GetCmdSpace<gles2::TexImage2D>();
+ gles2::cmds::TexImage2D* c = GetCmdSpace<gles2::cmds::TexImage2D>();
if (c) {
c->Init(
target, level, internalformat, width, height, border, format, type,
@@ -1030,8 +1064,8 @@
GLenum target, GLint level, GLint internalformat, GLsizei width,
GLsizei height, GLint border, GLenum format, GLenum type) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::TexImage2DImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::TexImage2DImmediate>(s);
+ gles2::cmds::TexImage2DImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::TexImage2DImmediate>(s);
if (c) {
c->Init(
target, level, internalformat, width, height, border, format, type);
@@ -1039,7 +1073,7 @@
}
void TexParameterf(GLenum target, GLenum pname, GLfloat param) {
- gles2::TexParameterf* c = GetCmdSpace<gles2::TexParameterf>();
+ gles2::cmds::TexParameterf* c = GetCmdSpace<gles2::cmds::TexParameterf>();
if (c) {
c->Init(target, pname, param);
}
@@ -1048,7 +1082,8 @@
void TexParameterfv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::TexParameterfv* c = GetCmdSpace<gles2::TexParameterfv>();
+ gles2::cmds::TexParameterfv* c =
+ GetCmdSpace<gles2::cmds::TexParameterfv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
@@ -1056,16 +1091,17 @@
void TexParameterfvImmediate(
GLenum target, GLenum pname, const GLfloat* params) {
- const uint32 size = gles2::TexParameterfvImmediate::ComputeSize();
- gles2::TexParameterfvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::TexParameterfvImmediate>(size);
+ const uint32 size = gles2::cmds::TexParameterfvImmediate::ComputeSize();
+ gles2::cmds::TexParameterfvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterfvImmediate>(
+ size);
if (c) {
c->Init(target, pname, params);
}
}
void TexParameteri(GLenum target, GLenum pname, GLint param) {
- gles2::TexParameteri* c = GetCmdSpace<gles2::TexParameteri>();
+ gles2::cmds::TexParameteri* c = GetCmdSpace<gles2::cmds::TexParameteri>();
if (c) {
c->Init(target, pname, param);
}
@@ -1074,7 +1110,8 @@
void TexParameteriv(
GLenum target, GLenum pname, uint32 params_shm_id,
uint32 params_shm_offset) {
- gles2::TexParameteriv* c = GetCmdSpace<gles2::TexParameteriv>();
+ gles2::cmds::TexParameteriv* c =
+ GetCmdSpace<gles2::cmds::TexParameteriv>();
if (c) {
c->Init(target, pname, params_shm_id, params_shm_offset);
}
@@ -1082,9 +1119,10 @@
void TexParameterivImmediate(
GLenum target, GLenum pname, const GLint* params) {
- const uint32 size = gles2::TexParameterivImmediate::ComputeSize();
- gles2::TexParameterivImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::TexParameterivImmediate>(size);
+ const uint32 size = gles2::cmds::TexParameterivImmediate::ComputeSize();
+ gles2::cmds::TexParameterivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::TexParameterivImmediate>(
+ size);
if (c) {
c->Init(target, pname, params);
}
@@ -1094,7 +1132,7 @@
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, uint32 pixels_shm_id,
uint32 pixels_shm_offset, GLboolean internal) {
- gles2::TexSubImage2D* c = GetCmdSpace<gles2::TexSubImage2D>();
+ gles2::cmds::TexSubImage2D* c = GetCmdSpace<gles2::cmds::TexSubImage2D>();
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, type,
@@ -1106,8 +1144,8 @@
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, GLboolean internal) {
const uint32 s = 0; // TODO(gman): compute correct size
- gles2::TexSubImage2DImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::TexSubImage2DImmediate>(s);
+ gles2::cmds::TexSubImage2DImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::TexSubImage2DImmediate>(s);
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, type,
@@ -1116,7 +1154,7 @@
}
void Uniform1f(GLint location, GLfloat x) {
- gles2::Uniform1f* c = GetCmdSpace<gles2::Uniform1f>();
+ gles2::cmds::Uniform1f* c = GetCmdSpace<gles2::cmds::Uniform1f>();
if (c) {
c->Init(location, x);
}
@@ -1124,23 +1162,23 @@
void Uniform1fv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform1fv* c = GetCmdSpace<gles2::Uniform1fv>();
+ gles2::cmds::Uniform1fv* c = GetCmdSpace<gles2::cmds::Uniform1fv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform1fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
- const uint32 size = gles2::Uniform1fvImmediate::ComputeSize(count);
- gles2::Uniform1fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform1fvImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform1fvImmediate::ComputeSize(count);
+ gles2::cmds::Uniform1fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1fvImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform1i(GLint location, GLint x) {
- gles2::Uniform1i* c = GetCmdSpace<gles2::Uniform1i>();
+ gles2::cmds::Uniform1i* c = GetCmdSpace<gles2::cmds::Uniform1i>();
if (c) {
c->Init(location, x);
}
@@ -1148,23 +1186,23 @@
void Uniform1iv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform1iv* c = GetCmdSpace<gles2::Uniform1iv>();
+ gles2::cmds::Uniform1iv* c = GetCmdSpace<gles2::cmds::Uniform1iv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform1ivImmediate(GLint location, GLsizei count, const GLint* v) {
- const uint32 size = gles2::Uniform1ivImmediate::ComputeSize(count);
- gles2::Uniform1ivImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform1ivImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform1ivImmediate::ComputeSize(count);
+ gles2::cmds::Uniform1ivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform1ivImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform2f(GLint location, GLfloat x, GLfloat y) {
- gles2::Uniform2f* c = GetCmdSpace<gles2::Uniform2f>();
+ gles2::cmds::Uniform2f* c = GetCmdSpace<gles2::cmds::Uniform2f>();
if (c) {
c->Init(location, x, y);
}
@@ -1172,23 +1210,23 @@
void Uniform2fv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform2fv* c = GetCmdSpace<gles2::Uniform2fv>();
+ gles2::cmds::Uniform2fv* c = GetCmdSpace<gles2::cmds::Uniform2fv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform2fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
- const uint32 size = gles2::Uniform2fvImmediate::ComputeSize(count);
- gles2::Uniform2fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform2fvImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform2fvImmediate::ComputeSize(count);
+ gles2::cmds::Uniform2fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2fvImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform2i(GLint location, GLint x, GLint y) {
- gles2::Uniform2i* c = GetCmdSpace<gles2::Uniform2i>();
+ gles2::cmds::Uniform2i* c = GetCmdSpace<gles2::cmds::Uniform2i>();
if (c) {
c->Init(location, x, y);
}
@@ -1196,23 +1234,23 @@
void Uniform2iv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform2iv* c = GetCmdSpace<gles2::Uniform2iv>();
+ gles2::cmds::Uniform2iv* c = GetCmdSpace<gles2::cmds::Uniform2iv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform2ivImmediate(GLint location, GLsizei count, const GLint* v) {
- const uint32 size = gles2::Uniform2ivImmediate::ComputeSize(count);
- gles2::Uniform2ivImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform2ivImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform2ivImmediate::ComputeSize(count);
+ gles2::cmds::Uniform2ivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform2ivImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform3f(GLint location, GLfloat x, GLfloat y, GLfloat z) {
- gles2::Uniform3f* c = GetCmdSpace<gles2::Uniform3f>();
+ gles2::cmds::Uniform3f* c = GetCmdSpace<gles2::cmds::Uniform3f>();
if (c) {
c->Init(location, x, y, z);
}
@@ -1220,23 +1258,23 @@
void Uniform3fv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform3fv* c = GetCmdSpace<gles2::Uniform3fv>();
+ gles2::cmds::Uniform3fv* c = GetCmdSpace<gles2::cmds::Uniform3fv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform3fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
- const uint32 size = gles2::Uniform3fvImmediate::ComputeSize(count);
- gles2::Uniform3fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform3fvImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform3fvImmediate::ComputeSize(count);
+ gles2::cmds::Uniform3fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3fvImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform3i(GLint location, GLint x, GLint y, GLint z) {
- gles2::Uniform3i* c = GetCmdSpace<gles2::Uniform3i>();
+ gles2::cmds::Uniform3i* c = GetCmdSpace<gles2::cmds::Uniform3i>();
if (c) {
c->Init(location, x, y, z);
}
@@ -1244,23 +1282,23 @@
void Uniform3iv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform3iv* c = GetCmdSpace<gles2::Uniform3iv>();
+ gles2::cmds::Uniform3iv* c = GetCmdSpace<gles2::cmds::Uniform3iv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform3ivImmediate(GLint location, GLsizei count, const GLint* v) {
- const uint32 size = gles2::Uniform3ivImmediate::ComputeSize(count);
- gles2::Uniform3ivImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform3ivImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform3ivImmediate::ComputeSize(count);
+ gles2::cmds::Uniform3ivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform3ivImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform4f(GLint location, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
- gles2::Uniform4f* c = GetCmdSpace<gles2::Uniform4f>();
+ gles2::cmds::Uniform4f* c = GetCmdSpace<gles2::cmds::Uniform4f>();
if (c) {
c->Init(location, x, y, z, w);
}
@@ -1268,23 +1306,23 @@
void Uniform4fv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform4fv* c = GetCmdSpace<gles2::Uniform4fv>();
+ gles2::cmds::Uniform4fv* c = GetCmdSpace<gles2::cmds::Uniform4fv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform4fvImmediate(GLint location, GLsizei count, const GLfloat* v) {
- const uint32 size = gles2::Uniform4fvImmediate::ComputeSize(count);
- gles2::Uniform4fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform4fvImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform4fvImmediate::ComputeSize(count);
+ gles2::cmds::Uniform4fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4fvImmediate>(size);
if (c) {
c->Init(location, count, v);
}
}
void Uniform4i(GLint location, GLint x, GLint y, GLint z, GLint w) {
- gles2::Uniform4i* c = GetCmdSpace<gles2::Uniform4i>();
+ gles2::cmds::Uniform4i* c = GetCmdSpace<gles2::cmds::Uniform4i>();
if (c) {
c->Init(location, x, y, z, w);
}
@@ -1292,16 +1330,16 @@
void Uniform4iv(
GLint location, GLsizei count, uint32 v_shm_id, uint32 v_shm_offset) {
- gles2::Uniform4iv* c = GetCmdSpace<gles2::Uniform4iv>();
+ gles2::cmds::Uniform4iv* c = GetCmdSpace<gles2::cmds::Uniform4iv>();
if (c) {
c->Init(location, count, v_shm_id, v_shm_offset);
}
}
void Uniform4ivImmediate(GLint location, GLsizei count, const GLint* v) {
- const uint32 size = gles2::Uniform4ivImmediate::ComputeSize(count);
- gles2::Uniform4ivImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::Uniform4ivImmediate>(size);
+ const uint32 size = gles2::cmds::Uniform4ivImmediate::ComputeSize(count);
+ gles2::cmds::Uniform4ivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::Uniform4ivImmediate>(size);
if (c) {
c->Init(location, count, v);
}
@@ -1310,7 +1348,8 @@
void UniformMatrix2fv(
GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
uint32 value_shm_offset) {
- gles2::UniformMatrix2fv* c = GetCmdSpace<gles2::UniformMatrix2fv>();
+ gles2::cmds::UniformMatrix2fv* c =
+ GetCmdSpace<gles2::cmds::UniformMatrix2fv>();
if (c) {
c->Init(location, count, transpose, value_shm_id, value_shm_offset);
}
@@ -1319,9 +1358,11 @@
void UniformMatrix2fvImmediate(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) {
- const uint32 size = gles2::UniformMatrix2fvImmediate::ComputeSize(count);
- gles2::UniformMatrix2fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix2fvImmediate>(size);
+ const uint32 size =
+ gles2::cmds::UniformMatrix2fvImmediate::ComputeSize(count);
+ gles2::cmds::UniformMatrix2fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix2fvImmediate>(
+ size);
if (c) {
c->Init(location, count, transpose, value);
}
@@ -1330,7 +1371,8 @@
void UniformMatrix3fv(
GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
uint32 value_shm_offset) {
- gles2::UniformMatrix3fv* c = GetCmdSpace<gles2::UniformMatrix3fv>();
+ gles2::cmds::UniformMatrix3fv* c =
+ GetCmdSpace<gles2::cmds::UniformMatrix3fv>();
if (c) {
c->Init(location, count, transpose, value_shm_id, value_shm_offset);
}
@@ -1339,9 +1381,11 @@
void UniformMatrix3fvImmediate(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) {
- const uint32 size = gles2::UniformMatrix3fvImmediate::ComputeSize(count);
- gles2::UniformMatrix3fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix3fvImmediate>(size);
+ const uint32 size =
+ gles2::cmds::UniformMatrix3fvImmediate::ComputeSize(count);
+ gles2::cmds::UniformMatrix3fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix3fvImmediate>(
+ size);
if (c) {
c->Init(location, count, transpose, value);
}
@@ -1350,7 +1394,8 @@
void UniformMatrix4fv(
GLint location, GLsizei count, GLboolean transpose, uint32 value_shm_id,
uint32 value_shm_offset) {
- gles2::UniformMatrix4fv* c = GetCmdSpace<gles2::UniformMatrix4fv>();
+ gles2::cmds::UniformMatrix4fv* c =
+ GetCmdSpace<gles2::cmds::UniformMatrix4fv>();
if (c) {
c->Init(location, count, transpose, value_shm_id, value_shm_offset);
}
@@ -1359,30 +1404,34 @@
void UniformMatrix4fvImmediate(
GLint location, GLsizei count, GLboolean transpose,
const GLfloat* value) {
- const uint32 size = gles2::UniformMatrix4fvImmediate::ComputeSize(count);
- gles2::UniformMatrix4fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::UniformMatrix4fvImmediate>(size);
+ const uint32 size =
+ gles2::cmds::UniformMatrix4fvImmediate::ComputeSize(count);
+ gles2::cmds::UniformMatrix4fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::UniformMatrix4fvImmediate>(
+ size);
if (c) {
c->Init(location, count, transpose, value);
}
}
void UseProgram(GLuint program) {
- gles2::UseProgram* c = GetCmdSpace<gles2::UseProgram>();
+ gles2::cmds::UseProgram* c = GetCmdSpace<gles2::cmds::UseProgram>();
if (c) {
c->Init(program);
}
}
void ValidateProgram(GLuint program) {
- gles2::ValidateProgram* c = GetCmdSpace<gles2::ValidateProgram>();
+ gles2::cmds::ValidateProgram* c =
+ GetCmdSpace<gles2::cmds::ValidateProgram>();
if (c) {
c->Init(program);
}
}
void VertexAttrib1f(GLuint indx, GLfloat x) {
- gles2::VertexAttrib1f* c = GetCmdSpace<gles2::VertexAttrib1f>();
+ gles2::cmds::VertexAttrib1f* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib1f>();
if (c) {
c->Init(indx, x);
}
@@ -1390,23 +1439,26 @@
void VertexAttrib1fv(
GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
- gles2::VertexAttrib1fv* c = GetCmdSpace<gles2::VertexAttrib1fv>();
+ gles2::cmds::VertexAttrib1fv* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib1fv>();
if (c) {
c->Init(indx, values_shm_id, values_shm_offset);
}
}
void VertexAttrib1fvImmediate(GLuint indx, const GLfloat* values) {
- const uint32 size = gles2::VertexAttrib1fvImmediate::ComputeSize();
- gles2::VertexAttrib1fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib1fvImmediate>(size);
+ const uint32 size = gles2::cmds::VertexAttrib1fvImmediate::ComputeSize();
+ gles2::cmds::VertexAttrib1fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib1fvImmediate>(
+ size);
if (c) {
c->Init(indx, values);
}
}
void VertexAttrib2f(GLuint indx, GLfloat x, GLfloat y) {
- gles2::VertexAttrib2f* c = GetCmdSpace<gles2::VertexAttrib2f>();
+ gles2::cmds::VertexAttrib2f* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib2f>();
if (c) {
c->Init(indx, x, y);
}
@@ -1414,23 +1466,26 @@
void VertexAttrib2fv(
GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
- gles2::VertexAttrib2fv* c = GetCmdSpace<gles2::VertexAttrib2fv>();
+ gles2::cmds::VertexAttrib2fv* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib2fv>();
if (c) {
c->Init(indx, values_shm_id, values_shm_offset);
}
}
void VertexAttrib2fvImmediate(GLuint indx, const GLfloat* values) {
- const uint32 size = gles2::VertexAttrib2fvImmediate::ComputeSize();
- gles2::VertexAttrib2fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib2fvImmediate>(size);
+ const uint32 size = gles2::cmds::VertexAttrib2fvImmediate::ComputeSize();
+ gles2::cmds::VertexAttrib2fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib2fvImmediate>(
+ size);
if (c) {
c->Init(indx, values);
}
}
void VertexAttrib3f(GLuint indx, GLfloat x, GLfloat y, GLfloat z) {
- gles2::VertexAttrib3f* c = GetCmdSpace<gles2::VertexAttrib3f>();
+ gles2::cmds::VertexAttrib3f* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib3f>();
if (c) {
c->Init(indx, x, y, z);
}
@@ -1438,16 +1493,18 @@
void VertexAttrib3fv(
GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
- gles2::VertexAttrib3fv* c = GetCmdSpace<gles2::VertexAttrib3fv>();
+ gles2::cmds::VertexAttrib3fv* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib3fv>();
if (c) {
c->Init(indx, values_shm_id, values_shm_offset);
}
}
void VertexAttrib3fvImmediate(GLuint indx, const GLfloat* values) {
- const uint32 size = gles2::VertexAttrib3fvImmediate::ComputeSize();
- gles2::VertexAttrib3fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib3fvImmediate>(size);
+ const uint32 size = gles2::cmds::VertexAttrib3fvImmediate::ComputeSize();
+ gles2::cmds::VertexAttrib3fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib3fvImmediate>(
+ size);
if (c) {
c->Init(indx, values);
}
@@ -1455,7 +1512,8 @@
void VertexAttrib4f(
GLuint indx, GLfloat x, GLfloat y, GLfloat z, GLfloat w) {
- gles2::VertexAttrib4f* c = GetCmdSpace<gles2::VertexAttrib4f>();
+ gles2::cmds::VertexAttrib4f* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib4f>();
if (c) {
c->Init(indx, x, y, z, w);
}
@@ -1463,16 +1521,18 @@
void VertexAttrib4fv(
GLuint indx, uint32 values_shm_id, uint32 values_shm_offset) {
- gles2::VertexAttrib4fv* c = GetCmdSpace<gles2::VertexAttrib4fv>();
+ gles2::cmds::VertexAttrib4fv* c =
+ GetCmdSpace<gles2::cmds::VertexAttrib4fv>();
if (c) {
c->Init(indx, values_shm_id, values_shm_offset);
}
}
void VertexAttrib4fvImmediate(GLuint indx, const GLfloat* values) {
- const uint32 size = gles2::VertexAttrib4fvImmediate::ComputeSize();
- gles2::VertexAttrib4fvImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::VertexAttrib4fvImmediate>(size);
+ const uint32 size = gles2::cmds::VertexAttrib4fvImmediate::ComputeSize();
+ gles2::cmds::VertexAttrib4fvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::VertexAttrib4fvImmediate>(
+ size);
if (c) {
c->Init(indx, values);
}
@@ -1481,14 +1541,15 @@
void VertexAttribPointer(
GLuint indx, GLint size, GLenum type, GLboolean normalized,
GLsizei stride, GLuint offset) {
- gles2::VertexAttribPointer* c = GetCmdSpace<gles2::VertexAttribPointer>();
+ gles2::cmds::VertexAttribPointer* c =
+ GetCmdSpace<gles2::cmds::VertexAttribPointer>();
if (c) {
c->Init(indx, size, type, normalized, stride, offset);
}
}
void Viewport(GLint x, GLint y, GLsizei width, GLsizei height) {
- gles2::Viewport* c = GetCmdSpace<gles2::Viewport>();
+ gles2::cmds::Viewport* c = GetCmdSpace<gles2::cmds::Viewport>();
if (c) {
c->Init(x, y, width, height);
}
@@ -1497,7 +1558,8 @@
void BlitFramebufferEXT(
GLint srcX0, GLint srcY0, GLint srcX1, GLint srcY1, GLint dstX0,
GLint dstY0, GLint dstX1, GLint dstY1, GLbitfield mask, GLenum filter) {
- gles2::BlitFramebufferEXT* c = GetCmdSpace<gles2::BlitFramebufferEXT>();
+ gles2::cmds::BlitFramebufferEXT* c =
+ GetCmdSpace<gles2::cmds::BlitFramebufferEXT>();
if (c) {
c->Init(
srcX0, srcY0, srcX1, srcY1, dstX0, dstY0, dstX1, dstY1, mask,
@@ -1508,8 +1570,8 @@
void RenderbufferStorageMultisampleEXT(
GLenum target, GLsizei samples, GLenum internalformat, GLsizei width,
GLsizei height) {
- gles2::RenderbufferStorageMultisampleEXT* c =
- GetCmdSpace<gles2::RenderbufferStorageMultisampleEXT>();
+ gles2::cmds::RenderbufferStorageMultisampleEXT* c =
+ GetCmdSpace<gles2::cmds::RenderbufferStorageMultisampleEXT>();
if (c) {
c->Init(target, samples, internalformat, width, height);
}
@@ -1518,7 +1580,8 @@
void TexStorage2DEXT(
GLenum target, GLsizei levels, GLenum internalFormat, GLsizei width,
GLsizei height) {
- gles2::TexStorage2DEXT* c = GetCmdSpace<gles2::TexStorage2DEXT>();
+ gles2::cmds::TexStorage2DEXT* c =
+ GetCmdSpace<gles2::cmds::TexStorage2DEXT>();
if (c) {
c->Init(target, levels, internalFormat, width, height);
}
@@ -1526,16 +1589,17 @@
void GenQueriesEXT(
GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) {
- gles2::GenQueriesEXT* c = GetCmdSpace<gles2::GenQueriesEXT>();
+ gles2::cmds::GenQueriesEXT* c = GetCmdSpace<gles2::cmds::GenQueriesEXT>();
if (c) {
c->Init(n, queries_shm_id, queries_shm_offset);
}
}
void GenQueriesEXTImmediate(GLsizei n, GLuint* queries) {
- const uint32 size = gles2::GenQueriesEXTImmediate::ComputeSize(n);
- gles2::GenQueriesEXTImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenQueriesEXTImmediate>(size);
+ const uint32 size = gles2::cmds::GenQueriesEXTImmediate::ComputeSize(n);
+ gles2::cmds::GenQueriesEXTImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenQueriesEXTImmediate>(
+ size);
if (c) {
c->Init(n, queries);
}
@@ -1543,16 +1607,18 @@
void DeleteQueriesEXT(
GLsizei n, uint32 queries_shm_id, uint32 queries_shm_offset) {
- gles2::DeleteQueriesEXT* c = GetCmdSpace<gles2::DeleteQueriesEXT>();
+ gles2::cmds::DeleteQueriesEXT* c =
+ GetCmdSpace<gles2::cmds::DeleteQueriesEXT>();
if (c) {
c->Init(n, queries_shm_id, queries_shm_offset);
}
}
void DeleteQueriesEXTImmediate(GLsizei n, const GLuint* queries) {
- const uint32 size = gles2::DeleteQueriesEXTImmediate::ComputeSize(n);
- gles2::DeleteQueriesEXTImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteQueriesEXTImmediate>(size);
+ const uint32 size = gles2::cmds::DeleteQueriesEXTImmediate::ComputeSize(n);
+ gles2::cmds::DeleteQueriesEXTImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteQueriesEXTImmediate>(
+ size);
if (c) {
c->Init(n, queries);
}
@@ -1561,36 +1627,38 @@
void BeginQueryEXT(
GLenum target, GLuint id, uint32 sync_data_shm_id,
uint32 sync_data_shm_offset) {
- gles2::BeginQueryEXT* c = GetCmdSpace<gles2::BeginQueryEXT>();
+ gles2::cmds::BeginQueryEXT* c = GetCmdSpace<gles2::cmds::BeginQueryEXT>();
if (c) {
c->Init(target, id, sync_data_shm_id, sync_data_shm_offset);
}
}
void EndQueryEXT(GLenum target, GLuint submit_count) {
- gles2::EndQueryEXT* c = GetCmdSpace<gles2::EndQueryEXT>();
+ gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
if (c) {
c->Init(target, submit_count);
}
}
void InsertEventMarkerEXT(GLuint bucket_id) {
- gles2::InsertEventMarkerEXT* c =
- GetCmdSpace<gles2::InsertEventMarkerEXT>();
+ gles2::cmds::InsertEventMarkerEXT* c =
+ GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
if (c) {
c->Init(bucket_id);
}
}
void PushGroupMarkerEXT(GLuint bucket_id) {
- gles2::PushGroupMarkerEXT* c = GetCmdSpace<gles2::PushGroupMarkerEXT>();
+ gles2::cmds::PushGroupMarkerEXT* c =
+ GetCmdSpace<gles2::cmds::PushGroupMarkerEXT>();
if (c) {
c->Init(bucket_id);
}
}
void PopGroupMarkerEXT() {
- gles2::PopGroupMarkerEXT* c = GetCmdSpace<gles2::PopGroupMarkerEXT>();
+ gles2::cmds::PopGroupMarkerEXT* c =
+ GetCmdSpace<gles2::cmds::PopGroupMarkerEXT>();
if (c) {
c->Init();
}
@@ -1598,16 +1666,18 @@
void GenVertexArraysOES(
GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) {
- gles2::GenVertexArraysOES* c = GetCmdSpace<gles2::GenVertexArraysOES>();
+ gles2::cmds::GenVertexArraysOES* c =
+ GetCmdSpace<gles2::cmds::GenVertexArraysOES>();
if (c) {
c->Init(n, arrays_shm_id, arrays_shm_offset);
}
}
void GenVertexArraysOESImmediate(GLsizei n, GLuint* arrays) {
- const uint32 size = gles2::GenVertexArraysOESImmediate::ComputeSize(n);
- gles2::GenVertexArraysOESImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::GenVertexArraysOESImmediate>(
+ const uint32 size =
+ gles2::cmds::GenVertexArraysOESImmediate::ComputeSize(n);
+ gles2::cmds::GenVertexArraysOESImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenVertexArraysOESImmediate>(
size);
if (c) {
c->Init(n, arrays);
@@ -1616,18 +1686,18 @@
void DeleteVertexArraysOES(
GLsizei n, uint32 arrays_shm_id, uint32 arrays_shm_offset) {
- gles2::DeleteVertexArraysOES* c =
- GetCmdSpace<gles2::DeleteVertexArraysOES>();
+ gles2::cmds::DeleteVertexArraysOES* c =
+ GetCmdSpace<gles2::cmds::DeleteVertexArraysOES>();
if (c) {
c->Init(n, arrays_shm_id, arrays_shm_offset);
}
}
void DeleteVertexArraysOESImmediate(GLsizei n, const GLuint* arrays) {
- const uint32 size = gles2::DeleteVertexArraysOESImmediate::ComputeSize(n);
- gles2::DeleteVertexArraysOESImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DeleteVertexArraysOESImmediate>(
- size);
+ const uint32 size =
+ gles2::cmds::DeleteVertexArraysOESImmediate::ComputeSize(n);
+ gles2::cmds::DeleteVertexArraysOESImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteVertexArraysOESImmediate>(size); // NOLINT
if (c) {
c->Init(n, arrays);
}
@@ -1635,21 +1705,23 @@
void IsVertexArrayOES(
GLuint array, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::IsVertexArrayOES* c = GetCmdSpace<gles2::IsVertexArrayOES>();
+ gles2::cmds::IsVertexArrayOES* c =
+ GetCmdSpace<gles2::cmds::IsVertexArrayOES>();
if (c) {
c->Init(array, result_shm_id, result_shm_offset);
}
}
void BindVertexArrayOES(GLuint array) {
- gles2::BindVertexArrayOES* c = GetCmdSpace<gles2::BindVertexArrayOES>();
+ gles2::cmds::BindVertexArrayOES* c =
+ GetCmdSpace<gles2::cmds::BindVertexArrayOES>();
if (c) {
c->Init(array);
}
}
void SwapBuffers() {
- gles2::SwapBuffers* c = GetCmdSpace<gles2::SwapBuffers>();
+ gles2::cmds::SwapBuffers* c = GetCmdSpace<gles2::cmds::SwapBuffers>();
if (c) {
c->Init();
}
@@ -1658,8 +1730,8 @@
void GetMaxValueInBufferCHROMIUM(
GLuint buffer_id, GLsizei count, GLenum type, GLuint offset,
uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::GetMaxValueInBufferCHROMIUM* c =
- GetCmdSpace<gles2::GetMaxValueInBufferCHROMIUM>();
+ gles2::cmds::GetMaxValueInBufferCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GetMaxValueInBufferCHROMIUM>();
if (c) {
c->Init(
buffer_id, count, type, offset, result_shm_id, result_shm_offset);
@@ -1669,8 +1741,8 @@
void GenSharedIdsCHROMIUM(
GLuint namespace_id, GLuint id_offset, GLsizei n, uint32 ids_shm_id,
uint32 ids_shm_offset) {
- gles2::GenSharedIdsCHROMIUM* c =
- GetCmdSpace<gles2::GenSharedIdsCHROMIUM>();
+ gles2::cmds::GenSharedIdsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GenSharedIdsCHROMIUM>();
if (c) {
c->Init(namespace_id, id_offset, n, ids_shm_id, ids_shm_offset);
}
@@ -1679,8 +1751,8 @@
void DeleteSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, uint32 ids_shm_id,
uint32 ids_shm_offset) {
- gles2::DeleteSharedIdsCHROMIUM* c =
- GetCmdSpace<gles2::DeleteSharedIdsCHROMIUM>();
+ gles2::cmds::DeleteSharedIdsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::DeleteSharedIdsCHROMIUM>();
if (c) {
c->Init(namespace_id, n, ids_shm_id, ids_shm_offset);
}
@@ -1689,8 +1761,8 @@
void RegisterSharedIdsCHROMIUM(
GLuint namespace_id, GLsizei n, uint32 ids_shm_id,
uint32 ids_shm_offset) {
- gles2::RegisterSharedIdsCHROMIUM* c =
- GetCmdSpace<gles2::RegisterSharedIdsCHROMIUM>();
+ gles2::cmds::RegisterSharedIdsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::RegisterSharedIdsCHROMIUM>();
if (c) {
c->Init(namespace_id, n, ids_shm_id, ids_shm_offset);
}
@@ -1698,31 +1770,32 @@
void EnableFeatureCHROMIUM(
GLuint bucket_id, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::EnableFeatureCHROMIUM* c =
- GetCmdSpace<gles2::EnableFeatureCHROMIUM>();
+ gles2::cmds::EnableFeatureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::EnableFeatureCHROMIUM>();
if (c) {
c->Init(bucket_id, result_shm_id, result_shm_offset);
}
}
void ResizeCHROMIUM(GLuint width, GLuint height) {
- gles2::ResizeCHROMIUM* c = GetCmdSpace<gles2::ResizeCHROMIUM>();
+ gles2::cmds::ResizeCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ResizeCHROMIUM>();
if (c) {
c->Init(width, height);
}
}
void GetRequestableExtensionsCHROMIUM(uint32 bucket_id) {
- gles2::GetRequestableExtensionsCHROMIUM* c =
- GetCmdSpace<gles2::GetRequestableExtensionsCHROMIUM>();
+ gles2::cmds::GetRequestableExtensionsCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GetRequestableExtensionsCHROMIUM>();
if (c) {
c->Init(bucket_id);
}
}
void RequestExtensionCHROMIUM(uint32 bucket_id) {
- gles2::RequestExtensionCHROMIUM* c =
- GetCmdSpace<gles2::RequestExtensionCHROMIUM>();
+ gles2::cmds::RequestExtensionCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::RequestExtensionCHROMIUM>();
if (c) {
c->Init(bucket_id);
}
@@ -1731,8 +1804,8 @@
void GetMultipleIntegervCHROMIUM(
uint32 pnames_shm_id, uint32 pnames_shm_offset, GLuint count,
uint32 results_shm_id, uint32 results_shm_offset, GLsizeiptr size) {
- gles2::GetMultipleIntegervCHROMIUM* c =
- GetCmdSpace<gles2::GetMultipleIntegervCHROMIUM>();
+ gles2::cmds::GetMultipleIntegervCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GetMultipleIntegervCHROMIUM>();
if (c) {
c->Init(
pnames_shm_id, pnames_shm_offset, count, results_shm_id,
@@ -1741,8 +1814,8 @@
}
void GetProgramInfoCHROMIUM(GLuint program, uint32 bucket_id) {
- gles2::GetProgramInfoCHROMIUM* c =
- GetCmdSpace<gles2::GetProgramInfoCHROMIUM>();
+ gles2::cmds::GetProgramInfoCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GetProgramInfoCHROMIUM>();
if (c) {
c->Init(program, bucket_id);
}
@@ -1750,32 +1823,32 @@
void CreateStreamTextureCHROMIUM(
GLuint client_id, uint32 result_shm_id, uint32 result_shm_offset) {
- gles2::CreateStreamTextureCHROMIUM* c =
- GetCmdSpace<gles2::CreateStreamTextureCHROMIUM>();
+ gles2::cmds::CreateStreamTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CreateStreamTextureCHROMIUM>();
if (c) {
c->Init(client_id, result_shm_id, result_shm_offset);
}
}
void DestroyStreamTextureCHROMIUM(GLuint texture) {
- gles2::DestroyStreamTextureCHROMIUM* c =
- GetCmdSpace<gles2::DestroyStreamTextureCHROMIUM>();
+ gles2::cmds::DestroyStreamTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::DestroyStreamTextureCHROMIUM>();
if (c) {
c->Init(texture);
}
}
void GetTranslatedShaderSourceANGLE(GLuint shader, uint32 bucket_id) {
- gles2::GetTranslatedShaderSourceANGLE* c =
- GetCmdSpace<gles2::GetTranslatedShaderSourceANGLE>();
+ gles2::cmds::GetTranslatedShaderSourceANGLE* c =
+ GetCmdSpace<gles2::cmds::GetTranslatedShaderSourceANGLE>();
if (c) {
c->Init(shader, bucket_id);
}
}
void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
- gles2::PostSubBufferCHROMIUM* c =
- GetCmdSpace<gles2::PostSubBufferCHROMIUM>();
+ gles2::cmds::PostSubBufferCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::PostSubBufferCHROMIUM>();
if (c) {
c->Init(x, y, width, height);
}
@@ -1784,8 +1857,8 @@
void TexImageIOSurface2DCHROMIUM(
GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
GLuint plane) {
- gles2::TexImageIOSurface2DCHROMIUM* c =
- GetCmdSpace<gles2::TexImageIOSurface2DCHROMIUM>();
+ gles2::cmds::TexImageIOSurface2DCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::TexImageIOSurface2DCHROMIUM>();
if (c) {
c->Init(target, width, height, ioSurfaceId, plane);
}
@@ -1794,7 +1867,8 @@
void CopyTextureCHROMIUM(
GLenum target, GLenum source_id, GLenum dest_id, GLint level,
GLint internalformat) {
- gles2::CopyTextureCHROMIUM* c = GetCmdSpace<gles2::CopyTextureCHROMIUM>();
+ gles2::cmds::CopyTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CopyTextureCHROMIUM>();
if (c) {
c->Init(target, source_id, dest_id, level, internalformat);
}
@@ -1802,8 +1876,8 @@
void DrawArraysInstancedANGLE(
GLenum mode, GLint first, GLsizei count, GLsizei primcount) {
- gles2::DrawArraysInstancedANGLE* c =
- GetCmdSpace<gles2::DrawArraysInstancedANGLE>();
+ gles2::cmds::DrawArraysInstancedANGLE* c =
+ GetCmdSpace<gles2::cmds::DrawArraysInstancedANGLE>();
if (c) {
c->Init(mode, first, count, primcount);
}
@@ -1812,23 +1886,24 @@
void DrawElementsInstancedANGLE(
GLenum mode, GLsizei count, GLenum type, GLuint index_offset,
GLsizei primcount) {
- gles2::DrawElementsInstancedANGLE* c =
- GetCmdSpace<gles2::DrawElementsInstancedANGLE>();
+ gles2::cmds::DrawElementsInstancedANGLE* c =
+ GetCmdSpace<gles2::cmds::DrawElementsInstancedANGLE>();
if (c) {
c->Init(mode, count, type, index_offset, primcount);
}
}
void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
- gles2::VertexAttribDivisorANGLE* c =
- GetCmdSpace<gles2::VertexAttribDivisorANGLE>();
+ gles2::cmds::VertexAttribDivisorANGLE* c =
+ GetCmdSpace<gles2::cmds::VertexAttribDivisorANGLE>();
if (c) {
c->Init(index, divisor);
}
}
void GenMailboxCHROMIUM(GLuint bucket_id) {
- gles2::GenMailboxCHROMIUM* c = GetCmdSpace<gles2::GenMailboxCHROMIUM>();
+ gles2::cmds::GenMailboxCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::GenMailboxCHROMIUM>();
if (c) {
c->Init(bucket_id);
}
@@ -1836,18 +1911,18 @@
void ProduceTextureCHROMIUM(
GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
- gles2::ProduceTextureCHROMIUM* c =
- GetCmdSpace<gles2::ProduceTextureCHROMIUM>();
+ gles2::cmds::ProduceTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ProduceTextureCHROMIUM>();
if (c) {
c->Init(target, mailbox_shm_id, mailbox_shm_offset);
}
}
void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
- const uint32 size = gles2::ProduceTextureCHROMIUMImmediate::ComputeSize();
- gles2::ProduceTextureCHROMIUMImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::ProduceTextureCHROMIUMImmediate>(
- size);
+ const uint32 size =
+ gles2::cmds::ProduceTextureCHROMIUMImmediate::ComputeSize();
+ gles2::cmds::ProduceTextureCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::ProduceTextureCHROMIUMImmediate>(size); // NOLINT
if (c) {
c->Init(target, mailbox);
}
@@ -1855,18 +1930,18 @@
void ConsumeTextureCHROMIUM(
GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
- gles2::ConsumeTextureCHROMIUM* c =
- GetCmdSpace<gles2::ConsumeTextureCHROMIUM>();
+ gles2::cmds::ConsumeTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ConsumeTextureCHROMIUM>();
if (c) {
c->Init(target, mailbox_shm_id, mailbox_shm_offset);
}
}
void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
- const uint32 size = gles2::ConsumeTextureCHROMIUMImmediate::ComputeSize();
- gles2::ConsumeTextureCHROMIUMImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::ConsumeTextureCHROMIUMImmediate>(
- size);
+ const uint32 size =
+ gles2::cmds::ConsumeTextureCHROMIUMImmediate::ComputeSize();
+ gles2::cmds::ConsumeTextureCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::ConsumeTextureCHROMIUMImmediate>(size); // NOLINT
if (c) {
c->Init(target, mailbox);
}
@@ -1875,8 +1950,8 @@
void BindUniformLocationCHROMIUM(
GLuint program, GLint location, uint32 name_shm_id,
uint32 name_shm_offset, uint32 data_size) {
- gles2::BindUniformLocationCHROMIUM* c =
- GetCmdSpace<gles2::BindUniformLocationCHROMIUM>();
+ gles2::cmds::BindUniformLocationCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUM>();
if (c) {
c->Init(program, location, name_shm_id, name_shm_offset, data_size);
}
@@ -1885,8 +1960,8 @@
void BindUniformLocationCHROMIUMImmediate(
GLuint program, GLint location, const char* name) {
const uint32 data_size = strlen(name);
- gles2::BindUniformLocationCHROMIUMImmediate* c =
- GetImmediateCmdSpace<gles2::BindUniformLocationCHROMIUMImmediate>(
+ gles2::cmds::BindUniformLocationCHROMIUMImmediate* c =
+ GetImmediateCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMImmediate>(
data_size);
if (c) {
c->Init(program, location, name, data_size);
@@ -1895,38 +1970,40 @@
void BindUniformLocationCHROMIUMBucket(
GLuint program, GLint location, uint32 name_bucket_id) {
- gles2::BindUniformLocationCHROMIUMBucket* c =
- GetCmdSpace<gles2::BindUniformLocationCHROMIUMBucket>();
+ gles2::cmds::BindUniformLocationCHROMIUMBucket* c =
+ GetCmdSpace<gles2::cmds::BindUniformLocationCHROMIUMBucket>();
if (c) {
c->Init(program, location, name_bucket_id);
}
}
void BindTexImage2DCHROMIUM(GLenum target, GLint imageId) {
- gles2::BindTexImage2DCHROMIUM* c =
- GetCmdSpace<gles2::BindTexImage2DCHROMIUM>();
+ gles2::cmds::BindTexImage2DCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::BindTexImage2DCHROMIUM>();
if (c) {
c->Init(target, imageId);
}
}
void ReleaseTexImage2DCHROMIUM(GLenum target, GLint imageId) {
- gles2::ReleaseTexImage2DCHROMIUM* c =
- GetCmdSpace<gles2::ReleaseTexImage2DCHROMIUM>();
+ gles2::cmds::ReleaseTexImage2DCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ReleaseTexImage2DCHROMIUM>();
if (c) {
c->Init(target, imageId);
}
}
void TraceBeginCHROMIUM(GLuint bucket_id) {
- gles2::TraceBeginCHROMIUM* c = GetCmdSpace<gles2::TraceBeginCHROMIUM>();
+ gles2::cmds::TraceBeginCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::TraceBeginCHROMIUM>();
if (c) {
c->Init(bucket_id);
}
}
void TraceEndCHROMIUM() {
- gles2::TraceEndCHROMIUM* c = GetCmdSpace<gles2::TraceEndCHROMIUM>();
+ gles2::cmds::TraceEndCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::TraceEndCHROMIUM>();
if (c) {
c->Init();
}
@@ -1936,8 +2013,8 @@
GLenum target, GLint level, GLint xoffset, GLint yoffset, GLsizei width,
GLsizei height, GLenum format, GLenum type, uint32 data_shm_id,
uint32 data_shm_offset) {
- gles2::AsyncTexSubImage2DCHROMIUM* c =
- GetCmdSpace<gles2::AsyncTexSubImage2DCHROMIUM>();
+ gles2::cmds::AsyncTexSubImage2DCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::AsyncTexSubImage2DCHROMIUM>();
if (c) {
c->Init(
target, level, xoffset, yoffset, width, height, format, type,
@@ -1949,8 +2026,8 @@
GLenum target, GLint level, GLint internalformat, GLsizei width,
GLsizei height, GLint border, GLenum format, GLenum type,
uint32 pixels_shm_id, uint32 pixels_shm_offset) {
- gles2::AsyncTexImage2DCHROMIUM* c =
- GetCmdSpace<gles2::AsyncTexImage2DCHROMIUM>();
+ gles2::cmds::AsyncTexImage2DCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::AsyncTexImage2DCHROMIUM>();
if (c) {
c->Init(
target, level, internalformat, width, height, border, format, type,
@@ -1961,8 +2038,8 @@
void DiscardFramebufferEXT(
GLenum target, GLsizei count, uint32 attachments_shm_id,
uint32 attachments_shm_offset) {
- gles2::DiscardFramebufferEXT* c =
- GetCmdSpace<gles2::DiscardFramebufferEXT>();
+ gles2::cmds::DiscardFramebufferEXT* c =
+ GetCmdSpace<gles2::cmds::DiscardFramebufferEXT>();
if (c) {
c->Init(target, count, attachments_shm_id, attachments_shm_offset);
}
@@ -1971,25 +2048,25 @@
void DiscardFramebufferEXTImmediate(
GLenum target, GLsizei count, const GLenum* attachments) {
const uint32 size =
- gles2::DiscardFramebufferEXTImmediate::ComputeSize(count);
- gles2::DiscardFramebufferEXTImmediate* c =
- GetImmediateCmdSpaceTotalSize<gles2::DiscardFramebufferEXTImmediate>(
- size);
+ gles2::cmds::DiscardFramebufferEXTImmediate::ComputeSize(count);
+ gles2::cmds::DiscardFramebufferEXTImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DiscardFramebufferEXTImmediate>(size); // NOLINT
if (c) {
c->Init(target, count, attachments);
}
}
void LoseContextCHROMIUM(GLenum current, GLenum other) {
- gles2::LoseContextCHROMIUM* c = GetCmdSpace<gles2::LoseContextCHROMIUM>();
+ gles2::cmds::LoseContextCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::LoseContextCHROMIUM>();
if (c) {
c->Init(current, other);
}
}
void WaitSyncPointCHROMIUM(GLuint sync_point) {
- gles2::WaitSyncPointCHROMIUM* c =
- GetCmdSpace<gles2::WaitSyncPointCHROMIUM>();
+ gles2::cmds::WaitSyncPointCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::WaitSyncPointCHROMIUM>();
if (c) {
c->Init(sync_point);
}
« no previous file with comments | « gpu/command_buffer/client/gles2_cmd_helper.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698