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

Side by Side Diff: gpu/command_buffer/service/feature_info_unittest.cc

Issue 2767063002: 16-bit video upload to float: intermediate R16_EXT and copy to float. (Closed)
Patch Set: Nit. Created 3 years, 7 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « gpu/command_buffer/service/feature_info.cc ('k') | gpu/command_buffer/service/gles2_cmd_copy_texture_chromium.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698