OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "gpu/command_buffer/service/feature_info.h" | 5 #include "gpu/command_buffer/service/feature_info.h" |
6 | 6 |
7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
8 #include "base/memory/scoped_ptr.h" | 8 #include "base/memory/scoped_ptr.h" |
9 #include "base/strings/string_number_conversions.h" | 9 #include "base/strings/string_number_conversions.h" |
10 #include "gpu/command_buffer/service/gpu_service_test.h" | 10 #include "gpu/command_buffer/service/gpu_service_test.h" |
(...skipping 1165 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1176 TEST_P(FeatureInfoTest, ARBSyncDisabled) { | 1176 TEST_P(FeatureInfoTest, ARBSyncDisabled) { |
1177 base::CommandLine command_line(0, NULL); | 1177 base::CommandLine command_line(0, NULL); |
1178 command_line.AppendSwitchASCII( | 1178 command_line.AppendSwitchASCII( |
1179 switches::kGpuDriverBugWorkarounds, | 1179 switches::kGpuDriverBugWorkarounds, |
1180 base::IntToString(gpu::DISABLE_ARB_SYNC)); | 1180 base::IntToString(gpu::DISABLE_ARB_SYNC)); |
1181 SetupInitExpectationsWithCommandLine("GL_ARB_sync", command_line); | 1181 SetupInitExpectationsWithCommandLine("GL_ARB_sync", command_line); |
1182 EXPECT_FALSE(info_->feature_flags().chromium_sync_query); | 1182 EXPECT_FALSE(info_->feature_flags().chromium_sync_query); |
1183 EXPECT_FALSE(gfx::GLFence::IsSupported()); | 1183 EXPECT_FALSE(gfx::GLFence::IsSupported()); |
1184 } | 1184 } |
1185 | 1185 |
| 1186 TEST_P(FeatureInfoTest, BlendEquationAdvancedDisabled) { |
| 1187 base::CommandLine command_line(0, NULL); |
| 1188 command_line.AppendSwitchASCII( |
| 1189 switches::kGpuDriverBugWorkarounds, |
| 1190 base::IntToString(gpu::DISABLE_BLEND_EQUATION_ADVANCED)); |
| 1191 SetupInitExpectationsWithCommandLine( |
| 1192 "GL_KHR_blend_equation_advanced_coherent GL_KHR_blend_equation_advanced", |
| 1193 command_line); |
| 1194 EXPECT_FALSE(info_->feature_flags().blend_equation_advanced); |
| 1195 EXPECT_FALSE(info_->feature_flags().blend_equation_advanced_coherent); |
| 1196 } |
| 1197 |
1186 TEST_P(FeatureInfoTest, InitializeCHROMIUM_path_rendering) { | 1198 TEST_P(FeatureInfoTest, InitializeCHROMIUM_path_rendering) { |
1187 SetupInitExpectationsWithGLVersion( | 1199 SetupInitExpectationsWithGLVersion( |
1188 "GL_ARB_compatibility GL_NV_path_rendering GL_EXT_direct_state_access", | 1200 "GL_ARB_compatibility GL_NV_path_rendering GL_EXT_direct_state_access", |
1189 "", "4.3"); | 1201 "", "4.3"); |
1190 EXPECT_TRUE(info_->feature_flags().chromium_path_rendering); | 1202 EXPECT_TRUE(info_->feature_flags().chromium_path_rendering); |
1191 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_path_rendering")); | 1203 EXPECT_THAT(info_->extensions(), HasSubstr("GL_CHROMIUM_path_rendering")); |
1192 } | 1204 } |
1193 | 1205 |
1194 TEST_P(FeatureInfoTest, InitializeCHROMIUM_path_rendering2) { | 1206 TEST_P(FeatureInfoTest, InitializeCHROMIUM_path_rendering2) { |
1195 SetupInitExpectationsWithGLVersion( | 1207 SetupInitExpectationsWithGLVersion( |
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1271 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); | 1283 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); |
1272 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); | 1284 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); |
1273 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); | 1285 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); |
1274 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); | 1286 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); |
1275 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); | 1287 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); |
1276 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); | 1288 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); |
1277 } | 1289 } |
1278 | 1290 |
1279 } // namespace gles2 | 1291 } // namespace gles2 |
1280 } // namespace gpu | 1292 } // namespace gpu |
OLD | NEW |