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

Unified Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 2354713004: Implement WEBGL_compressed_texture_es3_0 extension for WebGL 1/2 (Closed)
Patch Set: fixup Created 4 years, 3 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
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_validation.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/service/feature_info_unittest.cc
diff --git a/gpu/command_buffer/service/feature_info_unittest.cc b/gpu/command_buffer/service/feature_info_unittest.cc
index 0333edabe721ac9989b384c5d34bec1b0e087f01..821e52581d8ad79aba24c25f673dae1eb034de07 100644
--- a/gpu/command_buffer/service/feature_info_unittest.cc
+++ b/gpu/command_buffer/service/feature_info_unittest.cc
@@ -449,6 +449,54 @@ TEST_P(FeatureInfoTest, InitializeEXT_texture_compression_s3tc_srgbGL) {
GL_COMPRESSED_SRGB_ALPHA_S3TC_DXT5_EXT));
}
+TEST_P(FeatureInfoTest, InitializeCHROMIUM_compressed_texture_es3_0) {
+ SetupInitExpectationsWithGLVersion("", "",
+ "OpenGL ES 3.0");
+ EXPECT_THAT(info_->extensions(),
+ HasSubstr("GL_CHROMIUM_compressed_texture_es3_0"));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_R11_EAC));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_SIGNED_R11_EAC));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_RGB8_ETC2));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_SRGB8_ETC2));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_RG11_EAC));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_SIGNED_RG11_EAC));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_RGBA8_ETC2_EAC));
+ EXPECT_TRUE(info_->validators()->compressed_texture_format.IsValid(
+ GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC));
+
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_R11_EAC));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_SIGNED_R11_EAC));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_RGB8_ETC2));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_SRGB8_ETC2));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_RGB8_PUNCHTHROUGH_ALPHA1_ETC2));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_SRGB8_PUNCHTHROUGH_ALPHA1_ETC2));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_RG11_EAC));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_SIGNED_RG11_EAC));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_RGBA8_ETC2_EAC));
+ EXPECT_TRUE(info_->validators()->texture_internal_format_storage.IsValid(
+ GL_COMPRESSED_SRGB8_ALPHA8_ETC2_EAC));
+}
+
TEST_P(FeatureInfoTest, InitializeEXT_texture_format_BGRA8888GLES2) {
SetupInitExpectationsWithGLVersion("GL_EXT_texture_format_BGRA8888", "",
"OpenGL ES 2.0");
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_validation.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698