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

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

Issue 10535174: Addition of unpremultiply setting to GL_CHROMIUM_copy_texture. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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
Index: gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt
===================================================================
--- gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt (revision 141671)
+++ gpu/GLES2/extensions/CHROMIUM/CHROMIUM_copy_texture.txt (working copy)
@@ -23,8 +23,13 @@
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.
+ UNPACK_FLIP_Y_CHROMIUM, GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM and
+ GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM.
+ If GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM is enabled, then
+ GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM is disabled. The converse is also
+ enforced.
+
The extension also supports copying BGRA textures, which is not explicitly
granted by EXT_texture_format_BGRA8888.

Powered by Google App Engine
This is Rietveld 408576698