diff options
author | bajones@chromium.org <bajones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 01:04:51 +0000 |
---|---|---|
committer | bajones@chromium.org <bajones@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-04-29 01:04:51 +0000 |
commit | 8aec81ec90782e74e4adfb1e848d26dde693e3bc (patch) | |
tree | 8b4e60e784b05b4d2af0c8bf39d4da5aa6c00355 /gpu/command_buffer/common | |
parent | 148dcfd3c32086136f2e3e59cbecbcdd36a9f7e9 (diff) | |
download | chromium_src-8aec81ec90782e74e4adfb1e848d26dde693e3bc.zip chromium_src-8aec81ec90782e74e4adfb1e848d26dde693e3bc.tar.gz chromium_src-8aec81ec90782e74e4adfb1e848d26dde693e3bc.tar.bz2 |
Adding support for PVRTC, ATC, and ETC1 textures to the command buffer
BUG=364564
Review URL: https://codereview.chromium.org/242163002
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@266723 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'gpu/command_buffer/common')
-rw-r--r-- | gpu/command_buffer/common/gles2_cmd_utils_unittest.cc | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/gpu/command_buffer/common/gles2_cmd_utils_unittest.cc b/gpu/command_buffer/common/gles2_cmd_utils_unittest.cc index 864c881..0ded3b9 100644 --- a/gpu/command_buffer/common/gles2_cmd_utils_unittest.cc +++ b/gpu/command_buffer/common/gles2_cmd_utils_unittest.cc @@ -245,6 +245,19 @@ TEST_F(GLES2UtilTest, GetChannelsForCompressedFormat) { GL_COMPRESSED_RGBA_S3TC_DXT3_EXT)); EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( GL_COMPRESSED_RGBA_S3TC_DXT5_EXT)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat(GL_ATC_RGB_AMD)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_ATC_RGBA_EXPLICIT_ALPHA_AMD)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_ATC_RGBA_INTERPOLATED_ALPHA_AMD)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_COMPRESSED_RGB_PVRTC_4BPPV1_IMG)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_COMPRESSED_RGB_PVRTC_2BPPV1_IMG)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_COMPRESSED_RGBA_PVRTC_4BPPV1_IMG)); + EXPECT_EQ(0u, GLES2Util::GetChannelsForFormat( + GL_COMPRESSED_RGBA_PVRTC_2BPPV1_IMG)); } namespace { |