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

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

Issue 299043003: Adding bindless variants mailbox produce/consume (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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
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 360983aecd15d2616f092215f6104ba3ec067098..378539bb494908ed8868a07555655eba3611d9cc 100644
--- a/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
+++ b/gpu/command_buffer/client/gles2_cmd_helper_autogen.h
@@ -2018,6 +2018,30 @@ void ProduceTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
}
}
+void ProduceTextureBindlessCHROMIUM(GLuint texture,
+ GLenum target,
+ uint32_t mailbox_shm_id,
+ uint32_t mailbox_shm_offset) {
+ gles2::cmds::ProduceTextureBindlessCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::ProduceTextureBindlessCHROMIUM>();
+ if (c) {
+ c->Init(texture, target, mailbox_shm_id, mailbox_shm_offset);
+ }
+}
+
+void ProduceTextureBindlessCHROMIUMImmediate(GLuint texture,
+ GLenum target,
+ const GLbyte* mailbox) {
+ const uint32_t size =
+ gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate::ComputeSize();
+ gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::ProduceTextureBindlessCHROMIUMImmediate>(size);
+ if (c) {
+ c->Init(texture, target, mailbox);
+ }
+}
+
void ConsumeTextureCHROMIUM(GLenum target,
uint32_t mailbox_shm_id,
uint32_t mailbox_shm_offset) {
@@ -2039,6 +2063,30 @@ void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLbyte* mailbox) {
}
}
+void CreateAndConsumeTextureCHROMIUM(GLenum target,
+ uint32_t mailbox_shm_id,
+ uint32_t mailbox_shm_offset,
+ uint32_t client_id) {
+ gles2::cmds::CreateAndConsumeTextureCHROMIUM* c =
+ GetCmdSpace<gles2::cmds::CreateAndConsumeTextureCHROMIUM>();
+ if (c) {
+ c->Init(target, mailbox_shm_id, mailbox_shm_offset, client_id);
+ }
+}
+
+void CreateAndConsumeTextureCHROMIUMImmediate(GLenum target,
+ uint32_t client_id,
+ const GLbyte* _mailbox) {
+ const uint32_t size =
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate::ComputeSize();
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<
+ gles2::cmds::CreateAndConsumeTextureCHROMIUMImmediate>(size);
+ if (c) {
+ c->Init(target, client_id, _mailbox);
+ }
+}
+
void BindUniformLocationCHROMIUM(GLuint program,
GLint location,
uint32_t name_shm_id,

Powered by Google App Engine
This is Rietveld 408576698