summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
diff options
context:
space:
mode:
authortwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 15:43:17 +0000
committertwiz@chromium.org <twiz@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2012-06-19 15:43:17 +0000
commit6c75c71e79b70dcf32982b1da3e219c277872162 (patch)
treee815368906a055004f7273b3c7119764f48689e0 /gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
parenta9377f622db492fbf08fc12eac9d504bb5a4a8b7 (diff)
downloadchromium_src-6c75c71e79b70dcf32982b1da3e219c277872162.zip
chromium_src-6c75c71e79b70dcf32982b1da3e219c277872162.tar.gz
chromium_src-6c75c71e79b70dcf32982b1da3e219c277872162.tar.bz2
Addition of an unpremultiplied-alpha setting for the GL_CHROMIUM_copy_texture command buffer GL extension.
The extension needs to support the ability to unpremultiply the source of the copy because of the canvas2d-webgl texture use case. Canvas is stored in premultiplied form, yet WebGL expects texture contents to be in unpremultiplied form. Change also includes conversion of argument types to overriders of WebGraphicsContext3D::copyTextureCHROMIUM(...). This change is necessary as a result of a wk-change: https://bugs.webkit.org/show_bug.cgi?id=86275 BUG=101051 TEST=none Review URL: https://chromiumcodereview.appspot.com/10535174 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142962 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h8
1 files changed, 8 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
index 98f7f7e..35982fe 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_utils_implementation_autogen.h
@@ -291,6 +291,7 @@ static GLES2Util::EnumToString enum_to_string_table[] = {
{ 0x8827, "GL_DRAW_BUFFER2_NV", },
{ 0x9243, "GL_UNPACK_COLORSPACE_CONVERSION_CHROMIUM", },
{ 0x8DF3, "GL_LOW_INT", },
+ { 0x9242, "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM", },
{ 0x8B53, "GL_INT_VEC2", },
{ 0x0C02, "GL_READ_BUFFER_NV", },
{ 0x9241, "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM", },
@@ -829,6 +830,11 @@ std::string GLES2Util::GetStringGLState(uint32 value) {
{ GL_TEXTURE_BINDING_2D, "GL_TEXTURE_BINDING_2D" },
{ GL_TEXTURE_BINDING_CUBE_MAP, "GL_TEXTURE_BINDING_CUBE_MAP" },
{ GL_UNPACK_ALIGNMENT, "GL_UNPACK_ALIGNMENT" },
+ { GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM" },
+ { GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
+ "GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM" },
+ { GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
+ "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM" },
{ GL_VIEWPORT, "GL_VIEWPORT" },
};
return GLES2Util::GetQualifiedEnumString(
@@ -893,6 +899,8 @@ std::string GLES2Util::GetStringPixelStore(uint32 value) {
{ GL_UNPACK_FLIP_Y_CHROMIUM, "GL_UNPACK_FLIP_Y_CHROMIUM" },
{ GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM,
"GL_UNPACK_PREMULTIPLY_ALPHA_CHROMIUM" },
+ { GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM,
+ "GL_UNPACK_UNPREMULTIPLY_ALPHA_CHROMIUM" },
};
return GLES2Util::GetQualifiedEnumString(
string_table, arraysize(string_table), value);