diff options
author | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 01:24:07 +0000 |
---|---|---|
committer | apatrick@chromium.org <apatrick@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-05-02 01:24:07 +0000 |
commit | 8a5a84ab8334b6039c33df72af3ce947f4fdf767 (patch) | |
tree | 58bfa1915e2e39ce93d387dba819e26029ff138d /gpu/GLES2 | |
parent | e7abceee38257be619d799b26b57c522ac504669 (diff) | |
download | chromium_src-8a5a84ab8334b6039c33df72af3ce947f4fdf767.zip chromium_src-8a5a84ab8334b6039c33df72af3ce947f4fdf767.tar.gz chromium_src-8a5a84ab8334b6039c33df72af3ce947f4fdf767.tar.bz2 |
Added documentation for GL_CHROMIUM_texture_mailbox GL extension.
Review URL: http://codereview.chromium.org/10222015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@134847 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r-- | gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt | 119 |
1 files changed, 119 insertions, 0 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt new file mode 100644 index 0000000..01b3edc --- /dev/null +++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt @@ -0,0 +1,119 @@ +Name + + CHROMIUM_texture_mailbox + +Name Strings + + GL_CHROMIUM_texture_mailbox + +Version + + Last Modifed Date: April 25, 2012 + +Dependencies + + OpenGL ES 2.0 is required. + +Overview + + This extension defines a way of sharing texture image data between texture + objects in different contexts where the contexts would not normally share + texture resources. Three new functions are exported. glGenMailboxCHROMIUM + generates a name that can be used to identify texture image data outside + the scope of a context group. glProduceMailboxCHROMIUM moves texture image + data out of a texture object and into a mailbox. glConsumeMailboxCHROMIUM + moves texture image data out of a mailbox and into a texture object. + +New Procedures and Functions + + void glGenMailboxCHROMIUM (GLbyte *mailbox) + + Generates a unique name identifying a mailbox. The name is generated using + a cryptographic random number generator and is intended to be difficult to + guess. The scope of the name is implementation specific, for example it + might not span multiple displays. + + <mailbox> returns a GL_MAILBOX_SIZE_CHROMIUM byte sized name + + + void glProduceTextureCHROMIUM (GLenum target, const GLbyte *mailbox) + + Moves the image data of the currently bound texture object into the mailbox. + The texture object is redefined as though all its levels had been resized to + zero by zero and the texture object is therefore incomplete. If the mailbox + previously contained image data, the old image data is deleted. The state + of the bound texture object is not saved in the mailbox, only the image + data. + + If glProduceTextureCHROMIUM generates an error, the associated image data + is preserved in the texture object. + + The mailbox is emptied and the texture image data deleted if the context + is destroyed before being consumed. See glConsumeTextureCHROMIUM. + + <target> uses the same parameters as TexImage2D. + + <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by + glGenMailboxCHROMIUM. + + INVALID_OPERATION is generated if <target> is not a valid target. + + INVALID_OPERATION is generated if the texture is attached to a framebuffer. + + INVALID_OPERATION is generated if the texture is immutable. + + INVALID_OPERATION is generated if <mailbox> is invalid. + + + void glConsumeTextureCHROMIUM (GLenum target, const GLbyte *mailbox) + + <target> uses the same parameters as TexImage2D. + + <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by + glGenMailboxCHROMIUM. + + Redefines the image data of the currently bound texture object with the + image data in the mailbox and empties the mailbox. The state of the + currently bound texture object is not modified, only the image data. All + levels are redefined. + + If glConsumeTextureCHROMIUM generates an error, the associated image data + is preserved in the texture object. + + INVALID_OPERATION is generated if <target> is not a valid target. + + INVALID_OPERATION is generated if <mailbox> is empty. + + INVALID_OPERATION is generated if <mailbox> is not in the scope of the + context. + + INVALID_OPERATION is generated if <mailbox> is invalid. + + INVALID_OPERATION is generated if the texture is attached to a framebuffer. + + INVALID_OPERATION is generated if the texture is immutable. + + INVALID_OPERATION is generated if the image data is invalid in the current + context. + +New Tokens + + The size of a mailbox name in bytes. + + GL_MAILBOX_SIZE_CHROMIUM 64 + +Errors + + None. + +New Tokens + + None. + +New State + + None. + +Revision History + + 4/25/2011 Documented the extension |