| 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 2699 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2710 | 2710 |
| 2711 gl_->DescheduleUntilFinishedCHROMIUM(); | 2711 gl_->DescheduleUntilFinishedCHROMIUM(); |
| 2712 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2712 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2713 } | 2713 } |
| 2714 | 2714 |
| 2715 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { | 2715 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { |
| 2716 struct Cmds { | 2716 struct Cmds { |
| 2717 cmds::CopyTextureCHROMIUM cmd; | 2717 cmds::CopyTextureCHROMIUM cmd; |
| 2718 }; | 2718 }; |
| 2719 Cmds expected; | 2719 Cmds expected; |
| 2720 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); | 2720 expected.cmd.Init(1, 2, 3, 4, 5, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, |
| 2721 true); |
| 2721 | 2722 |
| 2722 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, | 2723 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, 5, GL_ALPHA, GL_UNSIGNED_BYTE, true, |
| 2723 true); | 2724 true, true); |
| 2724 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2725 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2725 } | 2726 } |
| 2726 | 2727 |
| 2727 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { | 2728 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { |
| 2728 struct Cmds { | 2729 struct Cmds { |
| 2729 cmds::CopySubTextureCHROMIUM cmd; | 2730 cmds::CopySubTextureCHROMIUM cmd; |
| 2730 }; | 2731 }; |
| 2731 Cmds expected; | 2732 Cmds expected; |
| 2732 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, true, true, true); | 2733 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, true, true, true); |
| 2733 | 2734 |
| 2734 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, true, true, true); | 2735 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, true, true, |
| 2736 true); |
| 2735 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2737 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2736 } | 2738 } |
| 2737 | 2739 |
| 2738 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) { | 2740 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) { |
| 2739 struct Cmds { | 2741 struct Cmds { |
| 2740 cmds::CompressedCopyTextureCHROMIUM cmd; | 2742 cmds::CompressedCopyTextureCHROMIUM cmd; |
| 2741 }; | 2743 }; |
| 2742 Cmds expected; | 2744 Cmds expected; |
| 2743 expected.cmd.Init(1, 2); | 2745 expected.cmd.Init(1, 2); |
| 2744 | 2746 |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3039 struct Cmds { | 3041 struct Cmds { |
| 3040 cmds::CoverageModulationCHROMIUM cmd; | 3042 cmds::CoverageModulationCHROMIUM cmd; |
| 3041 }; | 3043 }; |
| 3042 Cmds expected; | 3044 Cmds expected; |
| 3043 expected.cmd.Init(GL_RGB); | 3045 expected.cmd.Init(GL_RGB); |
| 3044 | 3046 |
| 3045 gl_->CoverageModulationCHROMIUM(GL_RGB); | 3047 gl_->CoverageModulationCHROMIUM(GL_RGB); |
| 3046 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3048 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3047 } | 3049 } |
| 3048 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3050 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |