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

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

Issue 1551143002: Remove the "target" argument from CopyTextureChromium. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compile error. 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
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | gpu/GLES2/gl2extchromium.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 15 matching lines...) Expand all
26 glCopyTexImage2D. 26 glCopyTexImage2D.
27 27
28 The extension also supports copying BGRA textures and copying 28 The extension also supports copying BGRA textures and copying
29 EXTERNAL_OES texture to BGRA texture, which is not explicitly 29 EXTERNAL_OES texture to BGRA texture, which is not explicitly
30 granted by EXT_texture_format_BGRA8888. 30 granted by EXT_texture_format_BGRA8888.
31 31
32 New Procedures and Functions 32 New Procedures and Functions
33 33
34 The command 34 The command
35 35
36 void glCopyTextureCHROMIUM (GLenum target, 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 texture referred to by <source_id> to <dest_id>
44 texture. If <source_id> texture is not defined or has different dimension 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. 45 to <dest_id> texture, define <source_id> texture same to <dest_id> texture.
46 46
(...skipping 16 matching lines...) Expand all
63 GL_LUMINANCE (L, L, L, 1) 63 GL_LUMINANCE (L, L, L, 1)
64 GL_LUMINANCE_ALPHA (L, L, L, A) 64 GL_LUMINANCE_ALPHA (L, L, L, A)
65 GL_RGB (R, G, B, 1) 65 GL_RGB (R, G, B, 1)
66 GL_RGBA (R, G, B, A) 66 GL_RGBA (R, G, B, A)
67 GL_BGRA_EXT (R, G, B, A) 67 GL_BGRA_EXT (R, G, B, A)
68 GL_RGB_YCBCR_422_CHROMIUM (R, G, B, 1) 68 GL_RGB_YCBCR_422_CHROMIUM (R, G, B, 1)
69 69
70 The format type of the destination texture is converted to that specified 70 The format type of the destination texture is converted to that specified
71 by <dest_type>. 71 by <dest_type>.
72 72
73 <target> uses the same parameters as TexImage2D.
74
75 If <flip_y> is true, vertically flip texture image data. 73 If <flip_y> is true, vertically flip texture image data.
76 74
77 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true, 75 If <unpack_premultiply_alpha> and <unpack_unmultiply_alpha> are true,
78 no alpha processing occurs. This is the equivalent of having neither flag 76 no alpha processing occurs. This is the equivalent of having neither flag
79 set. 77 set.
80 78
81 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats 79 INVALID_OPERATION is generated if <internal_format> is not one of the valid formats
82 described above. 80 described above.
83 81
84 INVALID_OPERATION is generated if the internal format of <source_id> is not one of 82 INVALID_OPERATION is generated if the internal format of <source_id> is not one of
85 formats from the table above. 83 formats from the table above.
86 84
87 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D.
88
89 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture 85 INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
90 objects. 86 objects.
91 87
92 INVALID_VALUE is generated if textures corresponding to <dest_id> have not 88 INVALID_VALUE is generated if textures corresponding to <dest_id> have not
93 been bound as GL_TEXTURE_2D object. 89 been bound as GL_TEXTURE_2D object.
94 90
95 INVALID_VALUE is generated if textures corresponding to <source_id> have not 91 INVALID_VALUE is generated if textures corresponding to <source_id> have not
96 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or 92 been bound as GL_TEXTURE_2D, GL_TEXTURE_RECTANGLE_ARB or
97 GL_TEXTURE_EXTERNAL_OES objects. 93 GL_TEXTURE_EXTERNAL_OES objects.
98 94
99 INVALID_VALUE is generated if level 0 of the source texture is not defined. 95 INVALID_VALUE is generated if level 0 of the source texture is not defined.
100 96
101 The command 97 The command
102 98
103 void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, 99 void glCopySubTextureCHROMIUM (GLenum source_id,
104 GLenum dest_id, 100 GLenum dest_id,
105 GLint xoffset, GLint yoffset, 101 GLint xoffset, GLint yoffset,
106 GLint x, GLint y, 102 GLint x, GLint y,
107 GLsizei width, GLsizei height, 103 GLsizei width, GLsizei height,
108 GLboolean unpack_flip_y, 104 GLboolean unpack_flip_y,
109 GLboolean unpack_premultiply_alpha, 105 GLboolean unpack_premultiply_alpha,
110 GLboolean unpack_unmultiply_alpha) 106 GLboolean unpack_unmultiply_alpha)
111 107
112 Copies the sub contents of texture referred to by <source_id> to <dest_id> 108 Copies the sub contents of texture referred to by <source_id> to <dest_id>
113 texture without redefining <dest_id> texture. 109 texture without redefining <dest_id> texture.
114 110
115 See CopyTextureCHROMIUM for the interpretation of the <target>, <flip_y>, 111 See CopyTextureCHROMIUM for the interpretation of the <flip_y>,
116 <premultiply_alpha>, and <unmultiply_alpha> arguments. 112 <premultiply_alpha>, and <unmultiply_alpha> arguments.
117 113
118 <xoffset> and <yoffset> specify a texel offset in the x and y direction 114 <xoffset> and <yoffset> specify a texel offset in the x and y direction
119 respectively within the destination texture. 115 respectively within the destination texture.
120 116
121 <x> and <y> specify specify a texel offset in the x and y direction 117 <x> and <y> specify specify a texel offset in the x and y direction
122 respectively within the source texture. 118 respectively within the source texture.
123 119
124 <width> specifies the width of the texture subimage. 120 <width> specifies the width of the texture subimage.
125 121
126 <height> specifies the width of the texture subimage. 122 <height> specifies the width of the texture subimage.
127 123
128 INVALID_OPERATION is generated if source internal_format and destination 124 INVALID_OPERATION is generated if source internal_format and destination
129 internal_format are not one of the valid formats described above. 125 internal_format are not one of the valid formats described above.
130 126
131 INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D.
132
133 INVALID_OPERATION is generated if the destination texture has not been 127 INVALID_OPERATION is generated if the destination texture has not been
134 defined. 128 defined.
135 129
136 INVALID_VALUE is generated if level 0 of the source texture or 130 INVALID_VALUE is generated if level 0 of the source texture or
137 the destination texture is not defined. 131 the destination texture is not defined.
138 132
139 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. 133 INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
140 134
141 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width, 135 INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width,
142 or (<yoffset> + <height>) > dest_height. 136 or (<yoffset> + <height>) > dest_height.
(...skipping 20 matching lines...) Expand all
163 157
164 None. 158 None.
165 159
166 Revision History 160 Revision History
167 161
168 8/1/2011 Documented the extension 162 8/1/2011 Documented the extension
169 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM() 163 7/4/2013 Add a new parameter dest_type to glCopyTextureCHROMIUM()
170 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target 164 16/7/2014 Add GL_TEXTURE_RECTANGLE_ARB as valid source_id target
171 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and 165 19/6/2015 Add arguments unpack_flip_y, unpack_premultiply_alpha, and
172 unpack_unmultiply_alpha to both commands. 166 unpack_unmultiply_alpha to both commands.
167 4/1/2016 Removed the argument target.
OLDNEW
« no previous file with comments | « content/renderer/media/android/webmediaplayer_android.cc ('k') | gpu/GLES2/gl2extchromium.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698