OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // This file is auto-generated from | 5 // This file is auto-generated from |
6 // gpu/command_buffer/build_gles2_cmd_buffer.py | 6 // gpu/command_buffer/build_gles2_cmd_buffer.py |
7 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 735 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
746 expected.data[1] = kTransformFeedbacksStartId + 1; | 746 expected.data[1] = kTransformFeedbacksStartId + 1; |
747 gl_->GenTransformFeedbacks(arraysize(ids), &ids[0]); | 747 gl_->GenTransformFeedbacks(arraysize(ids), &ids[0]); |
748 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 748 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
749 EXPECT_EQ(kTransformFeedbacksStartId, ids[0]); | 749 EXPECT_EQ(kTransformFeedbacksStartId, ids[0]); |
750 EXPECT_EQ(kTransformFeedbacksStartId + 1, ids[1]); | 750 EXPECT_EQ(kTransformFeedbacksStartId + 1, ids[1]); |
751 } | 751 } |
752 // TODO(zmo): Implement unit test for GetActiveAttrib | 752 // TODO(zmo): Implement unit test for GetActiveAttrib |
753 // TODO(zmo): Implement unit test for GetActiveUniform | 753 // TODO(zmo): Implement unit test for GetActiveUniform |
754 // TODO(zmo): Implement unit test for GetActiveUniformBlockiv | 754 // TODO(zmo): Implement unit test for GetActiveUniformBlockiv |
755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName | 755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName |
| 756 // TODO(zmo): Implement unit test for GetActiveUniformsiv |
756 // TODO(zmo): Implement unit test for GetAttachedShaders | 757 // TODO(zmo): Implement unit test for GetAttachedShaders |
757 // TODO(zmo): Implement unit test for GetAttribLocation | 758 // TODO(zmo): Implement unit test for GetAttribLocation |
758 | 759 |
759 TEST_F(GLES2ImplementationTest, GetBooleanv) { | 760 TEST_F(GLES2ImplementationTest, GetBooleanv) { |
760 struct Cmds { | 761 struct Cmds { |
761 cmds::GetBooleanv cmd; | 762 cmds::GetBooleanv cmd; |
762 }; | 763 }; |
763 typedef cmds::GetBooleanv::Result Result; | 764 typedef cmds::GetBooleanv::Result Result; |
764 Result::Type result = 0; | 765 Result::Type result = 0; |
765 Cmds expected; | 766 Cmds expected; |
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2974 struct Cmds { | 2975 struct Cmds { |
2975 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2976 cmds::MatrixLoadIdentityCHROMIUM cmd; |
2976 }; | 2977 }; |
2977 Cmds expected; | 2978 Cmds expected; |
2978 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2979 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
2979 | 2980 |
2980 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2981 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
2981 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2982 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2982 } | 2983 } |
2983 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2984 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |