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

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

Issue 812543002: Update from https://crrev.com/308331 (Closed) Base URL: git@github.com:domokit/mojo.git@master
Patch Set: Created 6 years 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_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('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 7b2faae1860af44a89c256332748721963191d45..8d4553a0de840a787119ee7793ab516580212d4f 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -57,6 +57,13 @@ void BindRenderbuffer(GLenum target, GLuint renderbuffer) {
}
}
+void BindSampler(GLuint unit, GLuint sampler) {
+ gles2::cmds::BindSampler* c = GetCmdSpace<gles2::cmds::BindSampler>();
+ if (c) {
+ c->Init(unit, sampler);
+ }
+}
+
void BindTexture(GLenum target, GLuint texture) {
gles2::cmds::BindTexture* c = GetCmdSpace<gles2::cmds::BindTexture>();
if (c) {
@@ -64,6 +71,14 @@ void BindTexture(GLenum target, GLuint texture) {
}
}
+void BindTransformFeedback(GLenum target, GLuint transformfeedback) {
+ gles2::cmds::BindTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::BindTransformFeedback>();
+ if (c) {
+ c->Init(target, transformfeedback);
+ }
+}
+
void BlendColor(GLclampf red, GLclampf green, GLclampf blue, GLclampf alpha) {
gles2::cmds::BlendColor* c = GetCmdSpace<gles2::cmds::BlendColor>();
if (c) {
@@ -342,6 +357,15 @@ void DeleteRenderbuffersImmediate(GLsizei n, const GLuint* renderbuffers) {
}
}
+void DeleteSamplersImmediate(GLsizei n, const GLuint* samplers) {
+ const uint32_t size = gles2::cmds::DeleteSamplersImmediate::ComputeSize(n);
+ gles2::cmds::DeleteSamplersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::DeleteSamplersImmediate>(size);
+ if (c) {
+ c->Init(n, samplers);
+ }
+}
+
void DeleteShader(GLuint shader) {
gles2::cmds::DeleteShader* c = GetCmdSpace<gles2::cmds::DeleteShader>();
if (c) {
@@ -358,6 +382,17 @@ void DeleteTexturesImmediate(GLsizei n, const GLuint* textures) {
}
}
+void DeleteTransformFeedbacksImmediate(GLsizei n, const GLuint* ids) {
+ const uint32_t size =
+ gles2::cmds::DeleteTransformFeedbacksImmediate::ComputeSize(n);
+ gles2::cmds::DeleteTransformFeedbacksImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::DeleteTransformFeedbacksImmediate>(size);
+ if (c) {
+ c->Init(n, ids);
+ }
+}
+
void DepthFunc(GLenum func) {
gles2::cmds::DepthFunc* c = GetCmdSpace<gles2::cmds::DepthFunc>();
if (c) {
@@ -524,6 +559,15 @@ void GenRenderbuffersImmediate(GLsizei n, GLuint* renderbuffers) {
}
}
+void GenSamplersImmediate(GLsizei n, GLuint* samplers) {
+ const uint32_t size = gles2::cmds::GenSamplersImmediate::ComputeSize(n);
+ gles2::cmds::GenSamplersImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::GenSamplersImmediate>(size);
+ if (c) {
+ c->Init(n, samplers);
+ }
+}
+
void GenTexturesImmediate(GLsizei n, GLuint* textures) {
const uint32_t size = gles2::cmds::GenTexturesImmediate::ComputeSize(n);
gles2::cmds::GenTexturesImmediate* c =
@@ -533,6 +577,17 @@ void GenTexturesImmediate(GLsizei n, GLuint* textures) {
}
}
+void GenTransformFeedbacksImmediate(GLsizei n, GLuint* ids) {
+ const uint32_t size =
+ gles2::cmds::GenTransformFeedbacksImmediate::ComputeSize(n);
+ gles2::cmds::GenTransformFeedbacksImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::GenTransformFeedbacksImmediate>(size);
+ if (c) {
+ c->Init(n, ids);
+ }
+}
+
void GetActiveAttrib(GLuint program,
GLuint index,
uint32_t name_bucket_id,
@@ -677,6 +732,28 @@ void GetRenderbufferParameteriv(GLenum target,
}
}
+void GetSamplerParameterfv(GLuint sampler,
+ GLenum pname,
+ uint32_t params_shm_id,
+ uint32_t params_shm_offset) {
+ gles2::cmds::GetSamplerParameterfv* c =
+ GetCmdSpace<gles2::cmds::GetSamplerParameterfv>();
+ if (c) {
+ c->Init(sampler, pname, params_shm_id, params_shm_offset);
+ }
+}
+
+void GetSamplerParameteriv(GLuint sampler,
+ GLenum pname,
+ uint32_t params_shm_id,
+ uint32_t params_shm_offset) {
+ gles2::cmds::GetSamplerParameteriv* c =
+ GetCmdSpace<gles2::cmds::GetSamplerParameteriv>();
+ if (c) {
+ c->Init(sampler, pname, params_shm_id, params_shm_offset);
+ }
+}
+
void GetShaderiv(GLuint shader,
GLenum pname,
uint32_t params_shm_id,
@@ -886,6 +963,15 @@ void IsRenderbuffer(GLuint renderbuffer,
}
}
+void IsSampler(GLuint sampler,
+ uint32_t result_shm_id,
+ uint32_t result_shm_offset) {
+ gles2::cmds::IsSampler* c = GetCmdSpace<gles2::cmds::IsSampler>();
+ if (c) {
+ c->Init(sampler, result_shm_id, result_shm_offset);
+ }
+}
+
void IsShader(GLuint shader,
uint32_t result_shm_id,
uint32_t result_shm_offset) {
@@ -904,6 +990,16 @@ void IsTexture(GLuint texture,
}
}
+void IsTransformFeedback(GLuint transformfeedback,
+ uint32_t result_shm_id,
+ uint32_t result_shm_offset) {
+ gles2::cmds::IsTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::IsTransformFeedback>();
+ if (c) {
+ c->Init(transformfeedback, result_shm_id, result_shm_offset);
+ }
+}
+
void LineWidth(GLfloat width) {
gles2::cmds::LineWidth* c = GetCmdSpace<gles2::cmds::LineWidth>();
if (c) {
@@ -918,6 +1014,14 @@ void LinkProgram(GLuint program) {
}
}
+void PauseTransformFeedback() {
+ gles2::cmds::PauseTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::PauseTransformFeedback>();
+ if (c) {
+ c->Init();
+ }
+}
+
void PixelStorei(GLenum pname, GLint param) {
gles2::cmds::PixelStorei* c = GetCmdSpace<gles2::cmds::PixelStorei>();
if (c) {
@@ -976,6 +1080,14 @@ void RenderbufferStorage(GLenum target,
}
}
+void ResumeTransformFeedback() {
+ gles2::cmds::ResumeTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::ResumeTransformFeedback>();
+ if (c) {
+ c->Init();
+ }
+}
+
void SampleCoverage(GLclampf value, GLboolean invert) {
gles2::cmds::SampleCoverage* c = GetCmdSpace<gles2::cmds::SampleCoverage>();
if (c) {
@@ -983,6 +1095,46 @@ void SampleCoverage(GLclampf value, GLboolean invert) {
}
}
+void SamplerParameterf(GLuint sampler, GLenum pname, GLfloat param) {
+ gles2::cmds::SamplerParameterf* c =
+ GetCmdSpace<gles2::cmds::SamplerParameterf>();
+ if (c) {
+ c->Init(sampler, pname, param);
+ }
+}
+
+void SamplerParameterfvImmediate(GLuint sampler,
+ GLenum pname,
+ const GLfloat* params) {
+ const uint32_t size = gles2::cmds::SamplerParameterfvImmediate::ComputeSize();
+ gles2::cmds::SamplerParameterfvImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::SamplerParameterfvImmediate>(
+ size);
+ if (c) {
+ c->Init(sampler, pname, params);
+ }
+}
+
+void SamplerParameteri(GLuint sampler, GLenum pname, GLint param) {
+ gles2::cmds::SamplerParameteri* c =
+ GetCmdSpace<gles2::cmds::SamplerParameteri>();
+ if (c) {
+ c->Init(sampler, pname, param);
+ }
+}
+
+void SamplerParameterivImmediate(GLuint sampler,
+ GLenum pname,
+ const GLint* params) {
+ const uint32_t size = gles2::cmds::SamplerParameterivImmediate::ComputeSize();
+ gles2::cmds::SamplerParameterivImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::cmds::SamplerParameterivImmediate>(
+ size);
+ if (c) {
+ c->Init(sampler, pname, params);
+ }
+}
+
void Scissor(GLint x, GLint y, GLsizei width, GLsizei height) {
gles2::cmds::Scissor* c = GetCmdSpace<gles2::cmds::Scissor>();
if (c) {
@@ -1689,6 +1841,14 @@ void BeginQueryEXT(GLenum target,
}
}
+void BeginTransformFeedback(GLenum primitivemode) {
+ gles2::cmds::BeginTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::BeginTransformFeedback>();
+ if (c) {
+ c->Init(primitivemode);
+ }
+}
+
void EndQueryEXT(GLenum target, GLuint submit_count) {
gles2::cmds::EndQueryEXT* c = GetCmdSpace<gles2::cmds::EndQueryEXT>();
if (c) {
@@ -1696,6 +1856,14 @@ void EndQueryEXT(GLenum target, GLuint submit_count) {
}
}
+void EndTransformFeedback() {
+ gles2::cmds::EndTransformFeedback* c =
+ GetCmdSpace<gles2::cmds::EndTransformFeedback>();
+ if (c) {
+ c->Init();
+ }
+}
+
void InsertEventMarkerEXT(GLuint bucket_id) {
gles2::cmds::InsertEventMarkerEXT* c =
GetCmdSpace<gles2::cmds::InsertEventMarkerEXT>();
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698