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

Side by Side 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 // This file is auto-generated from 5 // This file is auto-generated from
6 // gpu/command_buffer/build_gles2_cmd_buffer.py 6 // gpu/command_buffer/build_gles2_cmd_buffer.py
7 // DO NOT EDIT! 7 // DO NOT EDIT!
8 8
9 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 9 #ifndef GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
10 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 10 #define GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
(...skipping 1689 matching lines...) Expand 10 before | Expand all | Expand 10 after
1700 } 1700 }
1701 1701
1702 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) { 1702 void PostSubBufferCHROMIUM(GLint x, GLint y, GLint width, GLint height) {
1703 gles2::PostSubBufferCHROMIUM* c = 1703 gles2::PostSubBufferCHROMIUM* c =
1704 GetCmdSpace<gles2::PostSubBufferCHROMIUM>(); 1704 GetCmdSpace<gles2::PostSubBufferCHROMIUM>();
1705 if (c) { 1705 if (c) {
1706 c->Init(x, y, width, height); 1706 c->Init(x, y, width, height);
1707 } 1707 }
1708 } 1708 }
1709 1709
1710 void ProduceTextureCHROMIUM(
1711 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
1712 gles2::ProduceTextureCHROMIUM* c =
1713 GetCmdSpace<gles2::ProduceTextureCHROMIUM>();
1714 if (c) {
1715 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
1716 }
1717 }
1718
1719 void ProduceTextureCHROMIUMImmediate(GLenum target, const GLint* mailbox) {
1720 const uint32 size = gles2::ProduceTextureCHROMIUMImmediate::ComputeSize();
1721 gles2::ProduceTextureCHROMIUMImmediate* c =
1722 GetImmediateCmdSpaceTotalSize<gles2::ProduceTextureCHROMIUMImmediate>(
1723 size);
1724 if (c) {
1725 c->Init(target, mailbox);
1726 }
1727 }
1728
1729 void ConsumeTextureCHROMIUM(
1730 GLenum target, uint32 mailbox_shm_id, uint32 mailbox_shm_offset) {
1731 gles2::ConsumeTextureCHROMIUM* c =
1732 GetCmdSpace<gles2::ConsumeTextureCHROMIUM>();
1733 if (c) {
1734 c->Init(target, mailbox_shm_id, mailbox_shm_offset);
1735 }
1736 }
1737
1738 void ConsumeTextureCHROMIUMImmediate(GLenum target, const GLint* mailbox) {
1739 const uint32 size = gles2::ConsumeTextureCHROMIUMImmediate::ComputeSize();
1740 gles2::ConsumeTextureCHROMIUMImmediate* c =
1741 GetImmediateCmdSpaceTotalSize<gles2::ConsumeTextureCHROMIUMImmediate>(
1742 size);
1743 if (c) {
1744 c->Init(target, mailbox);
1745 }
1746 }
1747
1710 void TexImageIOSurface2DCHROMIUM( 1748 void TexImageIOSurface2DCHROMIUM(
1711 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId, 1749 GLenum target, GLsizei width, GLsizei height, GLuint ioSurfaceId,
1712 GLuint plane) { 1750 GLuint plane) {
1713 gles2::TexImageIOSurface2DCHROMIUM* c = 1751 gles2::TexImageIOSurface2DCHROMIUM* c =
1714 GetCmdSpace<gles2::TexImageIOSurface2DCHROMIUM>(); 1752 GetCmdSpace<gles2::TexImageIOSurface2DCHROMIUM>();
1715 if (c) { 1753 if (c) {
1716 c->Init(target, width, height, ioSurfaceId, plane); 1754 c->Init(target, width, height, ioSurfaceId, plane);
1717 } 1755 }
1718 } 1756 }
1719 1757
(...skipping 19 matching lines...) Expand all
1739 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) { 1777 void VertexAttribDivisorANGLE(GLuint index, GLuint divisor) {
1740 gles2::VertexAttribDivisorANGLE* c = 1778 gles2::VertexAttribDivisorANGLE* c =
1741 GetCmdSpace<gles2::VertexAttribDivisorANGLE>(); 1779 GetCmdSpace<gles2::VertexAttribDivisorANGLE>();
1742 if (c) { 1780 if (c) {
1743 c->Init(index, divisor); 1781 c->Init(index, divisor);
1744 } 1782 }
1745 } 1783 }
1746 1784
1747 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_ 1785 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_CMD_HELPER_AUTOGEN_H_
1748 1786
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698