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

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

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 8 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_c_lib_autogen.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
===================================================================
--- gpu/command_buffer/client/gles2_cmd_helper_autogen.h (revision 134729)
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h (working copy)
@@ -1752,5 +1752,50 @@
}
}
+ void GenMailboxCHROMIUM(GLuint bucket_id) {
+ gles2::GenMailboxCHROMIUM* c = GetCmdSpace<gles2::GenMailboxCHROMIUM>();
+ if (c) {
+ c->Init(bucket_id);
+ }
+ }
+
+ void ProduceTextureCHROMIUM(
+ GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
+ gles2::ProduceTextureCHROMIUM* c =
+ GetCmdSpace<gles2::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);
+ if (c) {
+ c->Init(target, mailbox);
+ }
+ }
+
+ void ConsumeTextureCHROMIUM(
+ GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
+ gles2::ConsumeTextureCHROMIUM* c =
+ GetCmdSpace<gles2::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);
+ if (c) {
+ c->Init(target, mailbox);
+ }
+ }
+
#endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
« no previous file with comments | « gpu/command_buffer/client/gles2_c_lib_autogen.h ('k') | gpu/command_buffer/client/gles2_implementation.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698