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

Unified Diff: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_image.txt

Issue 2443023002: gpu: Add CHROMIUM_copy_image extension.
Patch Set: rebase Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_image.txt
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_image.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_image.txt
new file mode 100644
index 0000000000000000000000000000000000000000..59518f7e1068b72dffe2e9db0170fa46250c03fb
--- /dev/null
+++ b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_image.txt
@@ -0,0 +1,96 @@
+Name
+
+ CHROMIUM_copy_image
+
+Name Strings
+
+ GL_CHROMIUM_copy_image
+
+Version
+
+ Last Modified Date: October 9, 2016
+
+Dependencies
+
+ OpenGL ES 2.0 is required.
+
+ Requires the CHROMIUM_image extension.
+
+ Requires the CHROMIUM_fence extension.
+
+Overview
+
+ This extension provides a mechanism for copying images to texture targets.
+
+Issues
+
+ None
+
+New Tokens
+
+ None
+
+New Procedures and Functions
+
+ The command
+
+ void CopyImageSubData(GLint source_image_id,
+ GLint dest_texture_id,
+ GLint xoffset, GLint yoffset,
+ GLint x, GLint y,
+ GLsizei width, GLsizei height,
+ GLint in_fence_id, GLint out_fence_id);
+
+ may be used to copy a region of image to a texture object.
+
+ CopyImageSubData does not perform general-purpose conversions
+ such as scaling, resizing, blending, color-space, or format
+ conversions. It should be considered to operate in a manner
+ similar to a CPU memcpy.
+
+ If <in_fence_id> is non-zero then the copy operation is deferred
+ until the condition of the sync object referenced by
+ <in_fence_id> is satisfied. If <out_fence_id> is non-zero then
+ the sync object referenced by <out_fence_id> will be signaled
+ when copy operation has completed.
+
+ <xoffset> and <yoffset> specify a texel offset in the x and y
+ direction respectively within the destination texture.
+
+ <x> and <y> specify an offset in the x and y direction
+ respectively within the source image.
+
+ <width> specifies the width of the subimage.
+
+ <height> specifies the width of the subimage.
+
+ INVALID_OPERATION is generated if <image_id> is not a valid image id.
+
+ INVALID_OPERATION is generated if image format and destination
+ Internal format are not one of the valid formats described above.
+
+ INVALID_OPERATION is generated if the destination texture has not been
+ defined.
+
+ INVALID_VALUE is generated if <dest_texture_id> texture is not defined.
+
+ INVALID_VALUE is generated if <dest_texture_id> texture is not bound as
+ GL_TEXTURE_2D or GL_TEXTURE_RECTANGLE_ARB.
+
+ INVALID_VALUE is generated if <xoffset> < 0 , or <yoffset> < 0.
+
+ INVALID_VALUE is generated if (<xoffset> + <width>) > dest_width,
+ or (<yoffset> + <height>) > dest_height.
+
+
+Errors
+
+ None.
+
+New State
+
+ None.
+
+Revision History
+
+ 10/9/2016 Documented the extension
« no previous file with comments | « cc/test/test_web_graphics_context_3d.h ('k') | gpu/GLES2/gl2chromium_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698