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 1359 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1370 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); | 1370 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); |
1371 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); | 1371 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); |
1372 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); | 1372 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); |
1373 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); | 1373 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); |
1374 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); | 1374 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); |
1375 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); | 1375 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); |
1376 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); | 1376 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); |
1377 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); | 1377 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); |
1378 } | 1378 } |
1379 | 1379 |
| 1380 TEST_P(FeatureInfoTest, InitializeARB_framebuffer_sRGB) { |
| 1381 SetupInitExpectations("GL_ARB_framebuffer_sRGB"); |
| 1382 EXPECT_TRUE(info_->feature_flags().ext_framebuffer_srgb); |
| 1383 } |
| 1384 |
1380 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) { | 1385 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) { |
1381 SetupInitExpectations("GL_APPLE_ycbcr_422"); | 1386 SetupInitExpectations("GL_APPLE_ycbcr_422"); |
1382 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422); | 1387 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422); |
1383 } | 1388 } |
1384 | 1389 |
1385 TEST_P(FeatureInfoTest, DisableMsaaOnNonWebGLContexts) { | 1390 TEST_P(FeatureInfoTest, DisableMsaaOnNonWebGLContexts) { |
1386 base::CommandLine command_line(0, NULL); | 1391 base::CommandLine command_line(0, NULL); |
1387 command_line.AppendSwitchASCII( | 1392 command_line.AppendSwitchASCII( |
1388 switches::kGpuDriverBugWorkarounds, | 1393 switches::kGpuDriverBugWorkarounds, |
1389 base::IntToString(gpu::DISABLE_MSAA_ON_NON_WEBGL_CONTEXTS)); | 1394 base::IntToString(gpu::DISABLE_MSAA_ON_NON_WEBGL_CONTEXTS)); |
(...skipping 11 matching lines...) Expand all Loading... |
1401 base::IntToString(gpu::DISABLE_MSAA_ON_NON_WEBGL_CONTEXTS)); | 1406 base::IntToString(gpu::DISABLE_MSAA_ON_NON_WEBGL_CONTEXTS)); |
1402 SetupInitExpectationsWithGLVersionAndContextTypeAndCommandLine( | 1407 SetupInitExpectationsWithGLVersionAndContextTypeAndCommandLine( |
1403 "GL_EXT_multisampled_render_to_texture GL_EXT_framebuffer_multisample", | 1408 "GL_EXT_multisampled_render_to_texture GL_EXT_framebuffer_multisample", |
1404 "", "", CONTEXT_TYPE_WEBGL1, command_line); | 1409 "", "", CONTEXT_TYPE_WEBGL1, command_line); |
1405 EXPECT_TRUE(info_->feature_flags().multisampled_render_to_texture); | 1410 EXPECT_TRUE(info_->feature_flags().multisampled_render_to_texture); |
1406 EXPECT_TRUE(info_->feature_flags().chromium_framebuffer_multisample); | 1411 EXPECT_TRUE(info_->feature_flags().chromium_framebuffer_multisample); |
1407 } | 1412 } |
1408 | 1413 |
1409 } // namespace gles2 | 1414 } // namespace gles2 |
1410 } // namespace gpu | 1415 } // namespace gpu |
OLD | NEW |