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 333 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
344 struct Cmds { | 344 struct Cmds { |
345 cmds::CopyTexSubImage2D cmd; | 345 cmds::CopyTexSubImage2D cmd; |
346 }; | 346 }; |
347 Cmds expected; | 347 Cmds expected; |
348 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8); | 348 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8); |
349 | 349 |
350 gl_->CopyTexSubImage2D(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8); | 350 gl_->CopyTexSubImage2D(GL_TEXTURE_2D, 2, 3, 4, 5, 6, 7, 8); |
351 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 351 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
352 } | 352 } |
353 | 353 |
| 354 TEST_F(GLES2ImplementationTest, CopyTexSubImage3D) { |
| 355 struct Cmds { |
| 356 cmds::CopyTexSubImage3D cmd; |
| 357 }; |
| 358 Cmds expected; |
| 359 expected.cmd.Init(GL_TEXTURE_3D, 2, 3, 4, 5, 6, 7, 8, 9); |
| 360 |
| 361 gl_->CopyTexSubImage3D(GL_TEXTURE_3D, 2, 3, 4, 5, 6, 7, 8, 9); |
| 362 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 363 } |
| 364 |
354 TEST_F(GLES2ImplementationTest, CullFace) { | 365 TEST_F(GLES2ImplementationTest, CullFace) { |
355 struct Cmds { | 366 struct Cmds { |
356 cmds::CullFace cmd; | 367 cmds::CullFace cmd; |
357 }; | 368 }; |
358 Cmds expected; | 369 Cmds expected; |
359 expected.cmd.Init(GL_FRONT); | 370 expected.cmd.Init(GL_FRONT); |
360 | 371 |
361 gl_->CullFace(GL_FRONT); | 372 gl_->CullFace(GL_FRONT); |
362 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 373 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
363 } | 374 } |
(...skipping 2535 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2899 struct Cmds { | 2910 struct Cmds { |
2900 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2911 cmds::MatrixLoadIdentityCHROMIUM cmd; |
2901 }; | 2912 }; |
2902 Cmds expected; | 2913 Cmds expected; |
2903 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2914 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
2904 | 2915 |
2905 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 2916 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
2906 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2917 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2907 } | 2918 } |
2908 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 2919 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |