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 1133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1144 | 1144 |
1145 for (int jj = 0; jj < 1; ++jj) { | 1145 for (int jj = 0; jj < 1; ++jj) { |
1146 data[jj] = static_cast<GLint>(jj); | 1146 data[jj] = static_cast<GLint>(jj); |
1147 } | 1147 } |
1148 Cmds expected; | 1148 Cmds expected; |
1149 expected.cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, &data[0]); | 1149 expected.cmd.Init(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, &data[0]); |
1150 gl_->TexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, &data[0]); | 1150 gl_->TexParameteriv(GL_TEXTURE_2D, GL_TEXTURE_MAG_FILTER, &data[0]); |
1151 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1151 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1152 } | 1152 } |
1153 | 1153 |
| 1154 TEST_F(GLES2ImplementationTest, TexStorage3D) { |
| 1155 struct Cmds { |
| 1156 cmds::TexStorage3D cmd; |
| 1157 }; |
| 1158 Cmds expected; |
| 1159 expected.cmd.Init(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); |
| 1160 |
| 1161 gl_->TexStorage3D(GL_TEXTURE_3D, 2, GL_RGB565, 4, 5, 6); |
| 1162 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1163 } |
| 1164 |
1154 TEST_F(GLES2ImplementationTest, Uniform1f) { | 1165 TEST_F(GLES2ImplementationTest, Uniform1f) { |
1155 struct Cmds { | 1166 struct Cmds { |
1156 cmds::Uniform1f cmd; | 1167 cmds::Uniform1f cmd; |
1157 }; | 1168 }; |
1158 Cmds expected; | 1169 Cmds expected; |
1159 expected.cmd.Init(1, 2); | 1170 expected.cmd.Init(1, 2); |
1160 | 1171 |
1161 gl_->Uniform1f(1, 2); | 1172 gl_->Uniform1f(1, 2); |
1162 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1173 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1163 } | 1174 } |
(...skipping 1241 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2405 struct Cmds { | 2416 struct Cmds { |
2406 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2417 cmds::MatrixLoadIdentityCHROMIUM cmd; |
2407 }; | 2418 }; |
2408 Cmds expected; | 2419 Cmds expected; |
2409 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2420 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
2410 | 2421 |
2411 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2422 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
2412 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2423 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2413 } | 2424 } |
2414 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2425 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |