Chromium Code Reviews

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

Issue 988693005: Chromium roll (https://codereview.chromium.org/976353002) (Closed) Base URL: https://github.com/domokit/mojo.git@master
Patch Set: fixed bad android build patch Created 5 years, 9 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff |
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/GLES2/gl2chromium_autogen.h » ('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_copy_texture 3 CHROMIUM_copy_texture
4 4
5 Name Strings 5 Name Strings
6 6
7 GL_CHROMIUM_copy_texture 7 GL_CHROMIUM_copy_texture
8 8
9 Version 9 Version
10 10
(...skipping 18 matching lines...)
29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and 29 If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and
30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha 30 GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM are enabled. Then no alpha
31 processing occurs. This is the equivalent of having neither flag set. 31 processing occurs. This is the equivalent of having neither flag set.
32 32
33 The extension also supports copying BGRA textures and copying 33 The extension also supports copying BGRA textures and copying
34 EXTERNAL_OES texture to BGRA texture, which is not explicitly 34 EXTERNAL_OES texture to BGRA texture, which is not explicitly
35 granted by EXT_texture_format_BGRA8888. 35 granted by EXT_texture_format_BGRA8888.
36 36
37 New Procedures and Functions 37 New Procedures and Functions
38 38
39 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, 39 The command
40 GLenum dest_id, GLint level,
41 GLint internal_format, GLenum dest_type)
42 40
43 Copies the contents of texture referred to by <source_id> to texture 41 void glCopyTextureCHROMIUM (GLenum target, GLenum source_id,
44 <dest_id>. 42 GLenum dest_id,
43 GLint internal_format, GLenum dest_type)
45 44
46 Texture level 0 is copied from the source image to level <level> of the 45 Copies the contents of texture referred to by <source_id> to <dest_id>
47 destination texture. The level parameter must be 0 at present. 46 texture. If <source_id> texture is not defined or has different dimension
47 to <dest_id> texture, define <source_id> texture same to <dest_id> texture.
48
49 Texture level 0 is copied from the source image to level 0 of the
50 destination texture.
48 51
49 The internal format of the destination texture is converted to that 52 The internal format of the destination texture is converted to that
50 specified by <internal_format>. Must be one of the following symbolic 53 specified by <internal_format>. Must be one of the following symbolic
51 constants: GL_RGB, GL_RGBA 54 constants: GL_RGB, GL_RGBA
52 The internal format of <source_id> texture must be one of the following 55 The internal format of <source_id> texture must be one of the following
53 symbolic constants: GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB, 56 symbolic constants: GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, GL_RGB,
54 GL_RGBA, GL_BGRA_EXT 57 GL_RGBA, GL_BGRA_EXT
55 When <source_id> texture doens't contain a superset of the component 58 When <source_id> texture doens't contain a superset of the component
56 required by <internal_format>, fill the components by following rules. 59 required by <internal_format>, fill the components by following rules.
57 60
(...skipping 22 matching lines...)
80 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture 83 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
81 objects. 84 objects.
82 85
83 INVALID_VALUE is generated if textures corresponding to <dest_id> have not 86 INVALID_VALUE is generated if textures corresponding to <dest_id> have not
84 been bound as GL_TEXTURE_2D object. 87 been bound as GL_TEXTURE_2D object.
85 88
86 INVALID_VALUE is generated if textures corresponding to <source_id> have not 89 INVALID_VALUE is generated if textures corresponding to <source_id> have not
87 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or 90 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or
88 GL_TEXTURE_EXTERNAL_OES objects. 91 GL_TEXTURE_EXTERNAL_OES objects.
89 92
90 INVALID_VALUE is generated if <level> is not a valid level of the 93 INVALID_VALUE is generated if level 0 of the source texture is not defined.
91 destination texture, or if level 0 of the source texture is not defined. 94
95 The command
96
97 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id,
98 GLenum dest_id,
99 GLint xoffset, GLint yoffset)
100
101 Copies the sub contents of texture referred to by <source_id> to <dest_id>
102 texture without redefining <dest_id> texture.
103
104 See CopyTextureCHROMIUM for the interpretation of the <target> arguments.
105
106 <xoffset> and <yoffset> specify a texel offset in the x and y direction
107 respectively within the destination texture.
108
109 INVALID_OPERATION is generated if source internal_format and destination
110 internal_format are not one of the valid formats described above.
111
112 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D.
113
114 INVALID_OPERATION is generated if the destination texture has not been
115 defined.
116
117 INVALID_VALUE is generated if level 0 of the source texture or
118 the destination texture is not defined.
119
120 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
121
122 INVALID_VALUE is generated if (<xoffset> + source_width) > dest_width,
123 or (<yoffset> + source_height) > dest_height.
92 124
93 Errors 125 Errors
94 126
95 None. 127 None.
96 128
97 New Tokens 129 New Tokens
98 130
99 None. 131 None.
100 132
101 New State 133 New State
102 134
103 None. 135 None.
104 136
105 Revision History 137 Revision History
106 138
107 8/1/2011 Documented the extension 139 8/1/2011 Documented the extension
108 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() 140 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM()
109 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target. 141 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target.
OLDNEW
« no previous file with comments | « gpu/BUILD.gn ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine