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

Side by Side Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_texture_mailbox.txt

Issue 2207253002: Unbind video texture from mailbox after copying to WebGL. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add comment Created 4 years, 4 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
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 Name 1 Name
2 2
3 CHROMIUM_texture_mailbox 3 CHROMIUM_texture_mailbox
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_texture_mailbox 7 GL_CHROMIUM_texture_mailbox
8 8
9 Version 9 Version
10 10
11 Last Modifed Date: June 2, 2014 11 Last Modifed Date: August 3, 2016
12 12
13 Dependencies 13 Dependencies
14 14
15 OpenGL ES 2.0 is required. 15 OpenGL ES 2.0 is required.
16 16
17 Overview 17 Overview
18 18
19 This extension defines a way of sharing texture image data between texture 19 This extension defines a way of sharing texture image data between texture
20 objects in different contexts where the contexts would not normally share 20 objects in different contexts where the contexts would not normally share
21 texture resources. Five new functions are exported. glGenMailboxCHROMIUM 21 texture resources. Five new functions are exported. glGenMailboxCHROMIUM
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 62
63 INVALID_OPERATION is generated if <mailbox> is invalid. 63 INVALID_OPERATION is generated if <mailbox> is invalid.
64 64
65 65
66 void glProduceTextureDirectCHROMIUM (GLuint texture, GLenum target, 66 void glProduceTextureDirectCHROMIUM (GLuint texture, GLenum target,
67 const GLbyte *mailbox) 67 const GLbyte *mailbox)
68 68
69 Associates the specified texture object with the mailbox name. Performs 69 Associates the specified texture object with the mailbox name. Performs
70 identically to glProduceTextureCHROMIUM except that the texture specified by 70 identically to glProduceTextureCHROMIUM except that the texture specified by
71 <texture> is used instead of the currently bound texture. This operation 71 <texture> is used instead of the currently bound texture. This operation
72 does not change the texture bindings or alter the bound texture in any way. 72 does not change the texture bindings or alter the bound texture in any
73 way. If <texture> is 0 then any previous association of the mailbox with a
74 texture object is broken and no new association is created.
73 75
74 <texture> Specifies the name of a texture. 76 <texture> Specifies the name of a texture.
75 77
76 78
77 void glConsumeTextureCHROMIUM (GLenum target, const GLbyte *mailbox) 79 void glConsumeTextureCHROMIUM (GLenum target, const GLbyte *mailbox)
78 80
79 <target> uses the same parameters as TexImage2D. 81 <target> uses the same parameters as TexImage2D.
80 82
81 <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by 83 <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by
82 glGenMailboxCHROMIUM. 84 glGenMailboxCHROMIUM.
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 136
135 None. 137 None.
136 138
137 Revision History 139 Revision History
138 140
139 4/25/2011 Documented the extension 141 4/25/2011 Documented the extension
140 5/23/2013 Major revision in Produce/Consume semantics, introducing 142 5/23/2013 Major revision in Produce/Consume semantics, introducing
141 sharing. 143 sharing.
142 6/02/2014 Added glProduceTextureDirectCHROMIUM and 144 6/02/2014 Added glProduceTextureDirectCHROMIUM and
143 glCreateAndConsumeTextureCHROMIUM definitions. 145 glCreateAndConsumeTextureCHROMIUM definitions.
146 8/03/2016 Allow unbinding mailbox using glProduceTextureDirectCHROMIUM.
OLDNEW
« no previous file with comments | « no previous file | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698