summaryrefslogtreecommitdiffstats
path: root/gpu/command_buffer/common
diff options
context:
space:
mode:
authorgman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 23:08:46 +0000
committergman@chromium.org <gman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-06-20 23:08:46 +0000
commit297ca1c292e0ab41225d62bf1dfdaa581874db5c (patch)
treecf078cc80e62b0371460e28e1100741d0e20f5f9 /gpu/command_buffer/common
parent2b20c229af200a3d9ad9b8f5b53d98f2472c296f (diff)
downloadchromium_src-297ca1c292e0ab41225d62bf1dfdaa581874db5c.zip
chromium_src-297ca1c292e0ab41225d62bf1dfdaa581874db5c.tar.gz
chromium_src-297ca1c292e0ab41225d62bf1dfdaa581874db5c.tar.bz2
Reapply Enforce-RGB patch with bugs fixed
TEST=ran layout tests BUG=85385 TBR=apatrick@chromium.org git-svn-id: svn://svn.chromium.org/chrome/trunk/src@89751 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common')
-rw-r--r--gpu/command_buffer/common/gles2_cmd_utils.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils.cc b/gpu/command_buffer/common/gles2_cmd_utils.cc
index a814969..308a948 100644
--- a/gpu/command_buffer/common/gles2_cmd_utils.cc
+++ b/gpu/command_buffer/common/gles2_cmd_utils.cc
@@ -517,6 +517,7 @@ uint32 GLES2Util::GetChannelsForFormat(int format) {
case GL_RGB8_OES:
case GL_RGB565:
return 0x0007;
+ case GL_BGRA_EXT:
case GL_RGBA:
case GL_RGBA8_OES:
case GL_RGBA4: