| 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 2731 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2742 | 2742 |
| 2743 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); | 2743 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); |
| 2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2744 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2745 } | 2745 } |
| 2746 | 2746 |
| 2747 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { | 2747 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { |
| 2748 struct Cmds { | 2748 struct Cmds { |
| 2749 cmds::CopyTextureCHROMIUM cmd; | 2749 cmds::CopyTextureCHROMIUM cmd; |
| 2750 }; | 2750 }; |
| 2751 Cmds expected; | 2751 Cmds expected; |
| 2752 expected.cmd.Init(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE); | 2752 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
| 2753 | 2753 |
| 2754 gl_->CopyTextureCHROMIUM(1, 2, 3, GL_ALPHA, GL_UNSIGNED_BYTE); | 2754 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
| 2755 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2755 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2756 } | 2756 } |
| 2757 | 2757 |
| 2758 TEST_F(GLES2ImplementationTest, CopySubTextureCHROMIUM) { | |
| 2759 struct Cmds { | |
| 2760 cmds::CopySubTextureCHROMIUM cmd; | |
| 2761 }; | |
| 2762 Cmds expected; | |
| 2763 expected.cmd.Init(1, 2, 3, 4, 5); | |
| 2764 | |
| 2765 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5); | |
| 2766 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | |
| 2767 } | |
| 2768 | |
| 2769 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2758 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
| 2770 struct Cmds { | 2759 struct Cmds { |
| 2771 cmds::DrawArraysInstancedANGLE cmd; | 2760 cmds::DrawArraysInstancedANGLE cmd; |
| 2772 }; | 2761 }; |
| 2773 Cmds expected; | 2762 Cmds expected; |
| 2774 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2763 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
| 2775 | 2764 |
| 2776 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2765 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
| 2777 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2766 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2778 } | 2767 } |
| (...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3005 struct Cmds { | 2994 struct Cmds { |
| 3006 cmds::MatrixLoadIdentityCHROMIUM cmd; | 2995 cmds::MatrixLoadIdentityCHROMIUM cmd; |
| 3007 }; | 2996 }; |
| 3008 Cmds expected; | 2997 Cmds expected; |
| 3009 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 2998 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
| 3010 | 2999 |
| 3011 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 3000 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
| 3012 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3001 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3013 } | 3002 } |
| 3014 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3003 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |