Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt |
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt |
index ad9ca689ca90303ffa3c9342e3d70894ef7a5719..39990d6563d8a58dcf4c3d58222c4cce3cc5810d 100644 |
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt |
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt |
@@ -36,12 +36,15 @@ Overview |
New Procedures and Functions |
- void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, |
- GLenum dest_id, GLint level, |
- GLint internal_format, GLenum dest_type) |
+ The command |
- Copies the contents of texture referred to by <source_id> to texture |
- <dest_id>. |
+ void glCopyTextureCHROMIUM (GLenum target, GLenum source_id, |
+ GLenum dest_id, GLint level, |
+ GLint internal_format, GLenum dest_type) |
+ |
+ Copies the contents of texture referred to by <source_id> to <dest_id> |
+ texture. If <source_id> texture is not defined or has different dimension |
+ to <dest_id> texture, define <source_id> texture same to <dest_id> texture. |
Texture level 0 is copied from the source image to level <level> of the |
destination texture. The level parameter must be 0 at present. |
@@ -90,6 +93,39 @@ New Procedures and Functions |
INVALID_VALUE is generated if <level> is not a valid level of the |
destination texture, or if level 0 of the source texture is not defined. |
+ The command |
+ |
+ void glCopySubTextureCHROMIUM (GLenum target, GLenum source_id, |
+ GLenum dest_id, GLint level, |
+ GLint xoffset, GLint yoffset) |
+ |
+ Copies the sub contents of texture referred to by <source_id> to <dest_id> |
+ texture without redefining <dest_id> texture. |
+ |
+ See CopyTextureCHROMIUM for the interpretation of the <target> and <level> |
+ arguments. |
+ |
+ <xoffset> and <yoffset> specify a texel offset in the x and y direction |
+ respectively within the destination texture. |
+ |
+ INVALID_OPERATION is generated if source internal_format and destination |
+ internal_format are not one of the valid formats described above. |
+ |
+ INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D. |
+ |
+ INVALID_OPERATION is generated if the destination texture has not been |
+ defined. |
+ |
+ INVALID_VALUE is generated if <level> is less than 0. |
+ |
+ INVALID_VALUE may be generated if <level> >log2(max), where max is |
Ken Russell (switch to Gerrit)
2015/02/25 22:19:10
I think this should say "is" instead of "may be".
|
+ the returned value of GL_MAX_TEXTURE_SIZE. |
+ |
+ INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0. |
+ |
+ INVALID_VALUE is generated if (<xoffset> + source_width) > dest_width, |
+ or (<yoffset> + source_height) > dest_height. |
+ |
Errors |
None. |