summaryrefslogtreecommitdiffstats
path: root/gpu/GLES2
diff options
context:
space:
mode:
authortoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-19 05:54:17 +0000
committertoyoshim@chromium.org <toyoshim@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-04-19 05:54:17 +0000
commit74345af2a98e16cd1157a74ff90aa6a95688446a (patch)
treec60884fa51c50b79d322bcb953b17dba88024457 /gpu/GLES2
parentad117b1784c28bf1cfd80d6d7ea85079eff4019d (diff)
downloadchromium_src-74345af2a98e16cd1157a74ff90aa6a95688446a.zip
chromium_src-74345af2a98e16cd1157a74ff90aa6a95688446a.tar.gz
chromium_src-74345af2a98e16cd1157a74ff90aa6a95688446a.tar.bz2
Revert 132934 - this change seems to break many webgl related layout tests
Introduction of CHROMIUM_copy_texture extension that respects pixel-store semantics, and allows copying of BGRA textures. OpenGL ES does not natively allow for copying textures with a BGRA format. The EXT_texture_format_BGRA8888 extension does not specify support for glCopyTexImage calls on these textures. This extension provides a routine to perform texture copies to/from BGRA-backed textures that also respects the following CHROMIUM pixel storage modifiers: UNPACK_FLIP_Y_CHROMIUM UNPACK_PREMULTIPLY_ALPHA_CHROMIUM This extension will be useful for the following purposes: - Copying accelerated Canvas2D contents to WebGL textures without a software readback. (And potentially the same for video-webgl texture copies.) - Copying Canvas2D contents to the compositor backing store. BUG=101051 TEST=none Review URL: http://codereview.chromium.org/9968113 TBR=twiz@chromium.org Review URL: https://chromiumcodereview.appspot.com/10078006 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@132958 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/GLES2')
-rw-r--r--gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt66
1 files changed, 0 insertions, 66 deletions
diff --git a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt b/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
deleted file mode 100644
index c48ac39..0000000
--- a/gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
+++ /dev/null
@@ -1,66 +0,0 @@
-Name
-
- CHROMIUM_copy_texture
-
-Name Strings
-
- GL_CHROMIUM_copy_texture
-
-Version
-
- Last Modifed Date: April 3, 2012
-
-Dependencies
-
- OpenGL ES 2.0 is required.
-
- CHROMIUM_flipy affects the definition of this extension.
- EXT_texture_format_BGRA8888 affects the definition of this extension.
-
-Overview
-
- This extension expands on the functionality provided by the
- glCopyTexImage2D command. A new function is exported,
- glCopyTextureCHROMIUM, that performs the same copy operation as
- glCopyTexImage2D, while respecting the pixel-storage modifiers
- UNPACK_FLIP_Y_CHROMIUM and GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM.
-
- The extension also supports copying BGRA textures, which is not explicitly
- granted by EXT_texture_format_BGRA8888.
-
-New Procedures and Functions
-
- void glCopyTextureCHROMIUM (GLenum target, GLenum source_id,
- GLenum dest_id, GLint level)
-
- Copies the contents of texture referred to by <source_id> to texture
- <dest_id>.
-
- Texture level 0 is copied from the source image to level <level> of the
- destination texture.
-
- <target> uses the same parameters as TexImage2D.
-
- INVALID_VALUE is generated if <target> is not GL_TEXTURE_2D.
-
- INVALID_VALUE is generated if <source_id> or <dest_id> are not valid texture
- objects.
-
- 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.
-
-Errors
-
- None.
-
-New Tokens
-
- None.
-
-New State
-
- None.
-
-Revision History
-
- 8/1/2011 Documented the extension