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

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
Index: gpu/command_buffer/client/gles2_cmd_helper_autogen.h
===================================================================
--- gpu/command_buffer/client/gles2_cmd_helper_autogen.h (revision 132415)
+++ gpu/command_buffer/client/gles2_cmd_helper_autogen.h (working copy)
@@ -1707,6 +1707,44 @@
}
}
+ 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 GLint* 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 GLint* mailbox) {
+ const uint32 size = gles2::ConsumeTextureCHROMIUMImmediate::ComputeSize();
+ gles2::ConsumeTextureCHROMIUMImmediate* c =
+ GetImmediateCmdSpaceTotalSize<gles2::ConsumeTextureCHROMIUMImmediate>(
+ size);
+ if (c) {
+ c->Init(target, mailbox);
+ }
+ }
+
void TexImageIOSurface2DCHROMIUM(
GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
GLuint plane) {

Powered by Google App Engine
This is Rietveld 408576698