| 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 744 expected.gen.Init(arraysize(ids), &ids[0]); | 744 expected.gen.Init(arraysize(ids), &ids[0]); |
| 745 expected.data[0] = kTransformFeedbacksStartId; | 745 expected.data[0] = kTransformFeedbacksStartId; |
| 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 GetActiveUniformBlockName | 755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName |
| 755 // TODO(zmo): Implement unit test for GetAttachedShaders | 756 // TODO(zmo): Implement unit test for GetAttachedShaders |
| 756 // TODO(zmo): Implement unit test for GetAttribLocation | 757 // TODO(zmo): Implement unit test for GetAttribLocation |
| 757 | 758 |
| 758 TEST_F(GLES2ImplementationTest, GetBooleanv) { | 759 TEST_F(GLES2ImplementationTest, GetBooleanv) { |
| 759 struct Cmds { | 760 struct Cmds { |
| 760 cmds::GetBooleanv cmd; | 761 cmds::GetBooleanv cmd; |
| 761 }; | 762 }; |
| 762 typedef cmds::GetBooleanv::Result Result; | 763 typedef cmds::GetBooleanv::Result Result; |
| 763 Result::Type result = 0; | 764 Result::Type result = 0; |
| (...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2960 struct Cmds { | 2961 struct Cmds { |
| 2961 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2962 cmds::MatrixLoadIdentityCHROMIUM cmd; |
| 2962 }; | 2963 }; |
| 2963 Cmds expected; | 2964 Cmds expected; |
| 2964 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2965 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
| 2965 | 2966 |
| 2966 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2967 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
| 2967 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2968 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2968 } | 2969 } |
| 2969 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2970 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |