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

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

Issue 11791032: Refactor FeatureInfo so you can't request features. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 11 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_decoder.cc » ('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 6a469a6603ff545d2b9419748aa0daa79dc1ebf8..00b2f5c0e52f3e6b4504ae837ce32a17c0293664 100644
--- a/gpu/command_buffer/service/feature_info_unittest.cc
+++ b/gpu/command_buffer/service/feature_info_unittest.cc
@@ -77,7 +77,6 @@ TEST_F(FeatureInfoTest, Basic) {
EXPECT_FALSE(info_->feature_flags().npot_ok);
EXPECT_FALSE(info_->feature_flags().enable_texture_float_linear);
EXPECT_FALSE(info_->feature_flags().enable_texture_half_float_linear);
- EXPECT_FALSE(info_->feature_flags().chromium_webglsl);
EXPECT_FALSE(info_->feature_flags().oes_egl_image_external);
EXPECT_FALSE(info_->feature_flags().chromium_stream_texture);
EXPECT_FALSE(info_->feature_flags().angle_translated_shader_source);
@@ -199,7 +198,6 @@ TEST_F(FeatureInfoTest, InitializeNoExtensions) {
HasSubstr("GL_ANGLE_translated_shader_source"));
// Check a couple of random extensions that should not be there.
- EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_CHROMIUM_webglsl")));
EXPECT_THAT(info_->extensions(), Not(HasSubstr("GL_OES_texture_npot")));
EXPECT_THAT(info_->extensions(),
Not(HasSubstr("GL_EXT_texture_compression_dxt1")));
@@ -214,7 +212,6 @@ TEST_F(FeatureInfoTest, InitializeNoExtensions) {
EXPECT_THAT(info_->extensions(),
Not(HasSubstr("GL_OES_compressed_ETC1_RGB8_texture")));
EXPECT_FALSE(info_->feature_flags().npot_ok);
- EXPECT_FALSE(info_->feature_flags().chromium_webglsl);
EXPECT_FALSE(info_->validators()->compressed_texture_format.IsValid(
GL_COMPRESSED_RGB_S3TC_DXT1_EXT));
EXPECT_FALSE(info_->validators()->compressed_texture_format.IsValid(
@@ -677,13 +674,6 @@ TEST_F(FeatureInfoTest, InitializeOES_standard_derivatives) {
GL_FRAGMENT_SHADER_DERIVATIVE_HINT_OES));
}
-TEST_F(FeatureInfoTest, InitializeCHROMIUM_webglsl) {
- SetupInitExpectations("");
- info_->Initialize("GL_CHROMIUM_webglsl");
- EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_webglsl"));
- EXPECT_TRUE(info_->feature_flags().chromium_webglsl);
-}
-
TEST_F(FeatureInfoTest, InitializeOES_rgb8_rgba8) {
SetupInitExpectations("GL_OES_rgb8_rgba8");
info_->Initialize(NULL);
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698