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