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 <stddef.h> | 7 #include <stddef.h> |
8 | 8 |
9 #include <memory> | 9 #include <memory> |
10 | 10 |
(...skipping 1646 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1657 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); | 1657 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); |
1658 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); | 1658 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RG_EXT)); |
1659 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); | 1659 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); |
1660 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); | 1660 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RG_EXT)); |
1661 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); | 1661 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RED_EXT)); |
1662 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); | 1662 EXPECT_TRUE(info_->validators()->read_pixel_format.IsValid(GL_RG_EXT)); |
1663 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); | 1663 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_R8_EXT)); |
1664 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); | 1664 EXPECT_TRUE(info_->validators()->render_buffer_format.IsValid(GL_RG8_EXT)); |
1665 } | 1665 } |
1666 | 1666 |
| 1667 TEST_P(FeatureInfoTest, InitializeEXT_texture_norm16) { |
| 1668 SetupInitExpectations("GL_EXT_texture_norm16"); |
| 1669 EXPECT_TRUE(info_->feature_flags().ext_texture_norm16); |
| 1670 |
| 1671 EXPECT_TRUE(info_->validators()->texture_format.IsValid(GL_RED_EXT)); |
| 1672 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_R16_EXT)); |
| 1673 EXPECT_TRUE(info_->validators()->texture_internal_format.IsValid(GL_RED_EXT)); |
| 1674 } |
| 1675 |
1667 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) { | 1676 TEST_P(FeatureInfoTest, InitializeCHROMIUM_ycbcr_422_imageTrue) { |
1668 SetupInitExpectations("GL_APPLE_ycbcr_422"); | 1677 SetupInitExpectations("GL_APPLE_ycbcr_422"); |
1669 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422); | 1678 EXPECT_TRUE(info_->feature_flags().chromium_image_ycbcr_422); |
1670 } | 1679 } |
1671 | 1680 |
1672 } // namespace gles2 | 1681 } // namespace gles2 |
1673 } // namespace gpu | 1682 } // namespace gpu |
OLD | NEW |