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

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 would 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
27 New Procedures and Functions
28
29 void glGenMailboxCHROMIUM (GLbyte *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. The scope of the name is implementation specific, for example it
34 might not span multiple displays.
35
36 <mailbox> returns a GL_MAILBOX_SIZE_CHROMIUM byte sized name
37
38
39 void glProduceTextureCHROMIUM (GLenum target, const GLbyte *mailbox)
40
41 Moves the image data of the currently bound texture object into the mailbox.
42 The texture object is redefined as though all its levels had been resized to
43 zero by zero and the texture object is therefore incomplete. If the mailbox
44 previously contained image data, the old image data is deleted. The state
45 of the bound texture object is not saved in the mailbox, only the image
46 data.
47
48 The mailbox is emptied and the texture image data deleted if the context
49 is destroyed before being consumed. See glConsumeTextureCHROMIUM.
50
51 <target> uses the same parameters as TexImage2D.
52
53 <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by
54 glGenMailboxCHROMIUM.
55
56 INVALID_OPERATION is generated if <target> is not a valid target.
57
58 INVALID_OPERATION is generated if the texture is attached to a framebuffer.
59
60 INVALID_OPERATION is generated if the texture is immutable.
61
62 INVALID_OPERATION is generated if <mailbox> is invalid.
Ken Russell (switch to Gerrit) 2012/04/26 22:18:09 Upon further thought: what happens to the texture
63
64
65 void glConsumeTextureCHROMIUM (GLenum target, const GLbyte *mailbox)
66
67 <target> uses the same parameters as TexImage2D.
68
69 <mailbox> identifies a GL_MAILBOX_SIZE_CHROMIUM byte sized name returned by
70 glGenMailboxCHROMIUM.
71
72 Redefines the image data of the currently bound texture object with the
73 image data in the mailbox and empties the mailbox. The state of the
74 currently bound texture object is not modified, only the image data. All
75 levels are redefined.
76
77 INVALID_OPERATION is generated if <target> is not a valid target.
78
79 INVALID_OPERATION is generated if <mailbox> is empty.
80
81 INVALID_OPERATION is generated if <mailbox> is not in the scope of the
82 context.
83
84 INVALID_OPERATION is generated if <mailbox> is invalid.
85
86 INVALID_OPERATION is generated if the texture is attached to a framebuffer.
87
88 INVALID_OPERATION is generated if the texture is immutable.
89
90 INVALID_OPERATION is generated if the image data is invalid in the current
91 context.
92
93 New Tokens
94
95 The size of a mailbox name in bytes.
96
97 GL_MAILBOX_SIZE_CHROMIUM 32
98
99 Errors
100
101 None.
102
103 New Tokens
104
105 None.
106
107 New State
108
109 None.
110
111 Revision History
112
113 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