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

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

Issue 1547873002: Allow GL_TEXTURE_RECTANGLE_ARB to be the destination target for copyTextureCHROMIUM. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Comments from kbr. Created 4 years, 11 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
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 22 matching lines...) Expand all
33 33
34 The command 34 The command
35 35
36 void glCopyTextureCHROMIUM (GLenum source_id, 36 void glCopyTextureCHROMIUM (GLenum source_id,
37 GLenum dest_id, 37 GLenum dest_id,
38 GLint internal_format, GLenum dest_type, 38 GLint internal_format, GLenum dest_type,
39 GLboolean unpack_flip_y, 39 GLboolean unpack_flip_y,
40 GLboolean unpack_premultiply_alpha, 40 GLboolean unpack_premultiply_alpha,
41 GLboolean unpack_unmultiply_alpha) 41 GLboolean unpack_unmultiply_alpha)
42 42
43 Copies the contents of texture referred to by <source_id> to <dest_id> 43 Copies the contents of <source_id> texture to <dest_id> texture.
44 texture. If <source_id> texture is not defined or has different dimension
45 to <dest_id> texture, define <source_id> texture same to <dest_id> texture.
46 44
47 Texture level 0 is copied from the source image to level 0 of the 45 Texture level 0 is copied from the source image to level 0 of the
48 destination texture. 46 destination texture.
49 47
50 The internal format of the destination texture is converted to that 48 The internal format of the destination texture is converted to that
51 specified by <internal_format>. Must be one of the following symbolic 49 specified by <internal_format>. Must be one of the following symbolic
52 constants: GL_RGB, GL_RGBA 50 constants: GL_RGB, GL_RGBA
53 The internal format of <source_id> texture must be one of the following 51 The internal format of <source_id> texture must be one of the following
54 symbolic constants: GL_R8, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA, 52 symbolic constants: GL_R8, GL_ALPHA, GL_LUMINANCE, GL_LUMINANCE_ALPHA,
55 GL_RGB, GL_RGBA, GL_BGRA_EXT, GL_RGB_YCBCR_422_CHROMIUM 53 GL_RGB, GL_RGBA, GL_BGRA_EXT, GL_RGB_YCBCR_422_CHROMIUM
(...skipping 23 matching lines...) Expand all
79 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats 77 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats
80 described above. 78 described above.
81 79
82 INVALID_OPERATION is generated if the internal format of <source_id> is not one of 80 INVALID_OPERATION is generated if the internal format of <source_id> is not one of
83 formats from the table above. 81 formats from the table above.
84 82
85 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
86 objects. 84 objects.
87 85
88 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
89 been bound as GL_TEXTURE_2D object. 87 been bound as GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB objects.
90 88
91 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
92 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or 90 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or
93 GL_TEXTURE_EXTERNAL_OES objects. 91 GL_TEXTURE_EXTERNAL_OES objects.
94 92
95 INVALID_VALUE is generated if level 0 of the source texture is not defined. 93 INVALID_VALUE is generated if level 0 of the source texture is not defined.
96 94
97 The command 95 The command
98 96
99 void glCopySubTextureCHROMIUM (GLenum source_id, 97 void glCopySubTextureCHROMIUM (GLenum source_id,
(...skipping 14 matching lines...) Expand all
114 <xoffset> and <yoffset> specify a texel offset in the x and y direction 112 <xoffset> and <yoffset> specify a texel offset in the x and y direction
115 respectively within the destination texture. 113 respectively within the destination texture.
116 114
117 <x> and <y> specify specify a texel offset in the x and y direction 115 <x> and <y> specify specify a texel offset in the x and y direction
118 respectively within the source texture. 116 respectively within the source texture.
119 117
120 <width> specifies the width of the texture subimage. 118 <width> specifies the width of the texture subimage.
121 119
122 <height> specifies the width of the texture subimage. 120 <height> specifies the width of the texture subimage.
123 121
122 INVALID_VALUE is generated if either <source_id> texture or <dest_id>
123 texture is not defined.
124
124 INVALID_OPERATION is generated if source internal_format and destination 125 INVALID_OPERATION is generated if source internal_format and destination
125 internal_format are not one of the valid formats described above. 126 internal_format are not one of the valid formats described above.
126 127
127 INVALID_OPERATION is generated if the destination texture has not been 128 INVALID_OPERATION is generated if the destination texture has not been
128 defined. 129 defined.
129 130
131 INVALID_VALUE is generated if <dest_id> texture is not bound as
132 GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
133
130 INVALID_VALUE is generated if level 0 of the source texture or 134 INVALID_VALUE is generated if level 0 of the source texture or
131 the destination texture is not defined. 135 the destination texture is not defined.
132 136
133 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. 137 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
134 138
135 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width, 139 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width,
136 or (<yoffset> + <height>) > dest_height. 140 or (<yoffset> + <height>) > dest_height.
137 141
138 Dependencies on ARB_texture_rg 142 Dependencies on ARB_texture_rg
139 143
(...skipping 18 matching lines...) Expand all
158 None. 162 None.
159 163
160 Revision History 164 Revision History
161 165
162 8/1/2011 Documented the extension 166 8/1/2011 Documented the extension
163 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() 167 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM()
164 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target 168 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target
165 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and 169 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and
166 unpack_unmultiply_alpha to both commands. 170 unpack_unmultiply_alpha to both commands.
167 4/1/2016 Removed the argument target. 171 4/1/2016 Removed the argument target.
172 4/1/2016 Added GL_TEXTURE_RECTANGLE_ARB as valid dest_id target
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698