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

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

Issue 10222015: Added documentation for GL_CHROMIUM_texture_mailbox GL extension. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Property Changes:
Added: svn:eol-style
+ LF
OLDNEW
(Empty)
1 Name
2
3 CHROMIUM_texture_mailbox
4
5 Name Strings
6
7 GL_CHROMIUM_texture_mailbox
8
9 Version
10
11 Last Modifed Date: April 25, 2012
12
13 Dependencies
14
15 OpenGL ES 2.0 is required.
16
17 Overview
18
19 This extension defines a way of sharing texture image data between texture
20 objects in different contexts where the contexts need not normally share
21 texture resources. Three new functions are exported. glGenMailboxCHROMIUM
22 generates a name that can be used to identify texture image data outside
23 the scope of a context group. glProduceMailboxCHROMIUM moves texture image
24 data out of a texture object and into a mailbox. glConsumeMailboxCHROMIUM
25 moves texture image data out of a mailbox and into a texture object.
26
Ken Russell (switch to Gerrit) 2012/04/26 00:37:19 Should it be mentioned that there may be implement
27 New Procedures and Functions
28
29 void glGenMailboxCHROMIUM (char *mailbox)
30
31 Generates a unique name identifying a mailbox. The name is generated using
32 a cryptographic random number generator and is intended to be difficult to
33 guess.
34
35 <mailbox> returns a a 32 byte name
36
37
38 void glProduceTextureCHROMIUM (GLenum target, const char *mailbox)
39
40 Moves the image data of the currently bound texture object into the mailbox.
41 The texture object is redefined as though all its levels had been resized to
42 zero by zero and the texture object is therefore incomplete. If the mailbox
43 previously contained image data, the old image data is deleted. The state
44 of the bound texture object is not saved in the mailbox, only the image
45 data.
46
47 <target> uses the same parameters as TexImage2D.
48
49 <mailbox> identifies a 32 byte name returned by glGenMailboxCHROMIUM.
50
51 INVALID_OPERATION is generated if <target> is not a valid target.
52
53 INVALID_OPERATION is generated if the texture is attached to a framebuffer.
54
55 INVALID_OPERATION is generated if the texture is immutable.
56
57
58 void glConsumeTextureCHROMIUM (GLenum target, const char *mailbox)
59
60 <target> uses the same parameters as TexImage2D.
61
62 <mailbox> identifies a 32 byte name returned by glGenMailboxCHROMIUM.
63
64 Redefines the image data of the currently bound texture object with the
65 image data in the mailbox and empties the mailbox. The state of the
66 currently bound texture is not modified, only the image data. All levels
67 are redefined.
68
69 INVALID_OPERATION is generated if <target> is not a valid target.
70
71 INVALID_OPERATION is generated if <mailbox> is emopty.
Ken Russell (switch to Gerrit) 2012/04/26 00:37:19 typo: empty
72
73 INVALID_OPERATION is generated if the texture is attached to a framebuffer.
74
75 INVALID_OPERATION is generated if the texture is immutable.
76
77 INVALID_OPERATION is generated if the image data is invalid in the current
78 context.
Ken Russell (switch to Gerrit) 2012/04/26 00:37:19 Any error if the mailbox isn't referenceable from
79
80 Errors
81
82 None.
83
84 New Tokens
85
86 None.
87
88 New State
89
90 None.
91
92 Revision History
93
94 4/25/2011 Documented the extension
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698