| 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 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 127 EXPECT_FALSE(info_->feature_flags().nv_draw_buffers); | 127 EXPECT_FALSE(info_->feature_flags().nv_draw_buffers); |
| 128 EXPECT_FALSE(info_->feature_flags().ext_discard_framebuffer); | 128 EXPECT_FALSE(info_->feature_flags().ext_discard_framebuffer); |
| 129 EXPECT_FALSE(info_->feature_flags().angle_depth_texture); | 129 EXPECT_FALSE(info_->feature_flags().angle_depth_texture); |
| 130 EXPECT_FALSE(info_->feature_flags().is_angle); | 130 EXPECT_FALSE(info_->feature_flags().is_angle); |
| 131 | 131 |
| 132 #define GPU_OP(type, name) EXPECT_FALSE(info_->workarounds().name); | 132 #define GPU_OP(type, name) EXPECT_FALSE(info_->workarounds().name); |
| 133 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) | 133 GPU_DRIVER_BUG_WORKAROUNDS(GPU_OP) |
| 134 #undef GPU_OP | 134 #undef GPU_OP |
| 135 EXPECT_EQ(0, info_->workarounds().max_texture_size); | 135 EXPECT_EQ(0, info_->workarounds().max_texture_size); |
| 136 EXPECT_EQ(0, info_->workarounds().max_cube_map_texture_size); | 136 EXPECT_EQ(0, info_->workarounds().max_cube_map_texture_size); |
| 137 EXPECT_FALSE(info_->workarounds().gl_clear_broken); |
| 137 | 138 |
| 138 // Test good types. | 139 // Test good types. |
| 139 { | 140 { |
| 140 static const GLenum kAlphaTypes[] = { | 141 static const GLenum kAlphaTypes[] = { |
| 141 GL_UNSIGNED_BYTE, | 142 GL_UNSIGNED_BYTE, |
| 142 }; | 143 }; |
| 143 static const GLenum kRGBTypes[] = { | 144 static const GLenum kRGBTypes[] = { |
| 144 GL_UNSIGNED_BYTE, | 145 GL_UNSIGNED_BYTE, |
| 145 GL_UNSIGNED_SHORT_5_6_5, | 146 GL_UNSIGNED_SHORT_5_6_5, |
| 146 }; | 147 }; |
| (...skipping 1249 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1396 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) { | 1397 TEST_F(FeatureInfoTest, InitializeKHR_blend_equations_advanced_coherent) { |
| 1397 SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent"); | 1398 SetupInitExpectations("GL_KHR_blend_equation_advanced_coherent"); |
| 1398 EXPECT_THAT(info_->extensions(), | 1399 EXPECT_THAT(info_->extensions(), |
| 1399 HasSubstr("GL_KHR_blend_equation_advanced_coherent")); | 1400 HasSubstr("GL_KHR_blend_equation_advanced_coherent")); |
| 1400 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); | 1401 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced); |
| 1401 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent); | 1402 EXPECT_TRUE(info_->feature_flags().blend_equation_advanced_coherent); |
| 1402 } | 1403 } |
| 1403 | 1404 |
| 1404 } // namespace gles2 | 1405 } // namespace gles2 |
| 1405 } // namespace gpu | 1406 } // namespace gpu |
| OLD | NEW |