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 2822 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2833 struct Cmds { | 2833 struct Cmds { |
2834 cmds::CopySubTextureCHROMIUM cmd; | 2834 cmds::CopySubTextureCHROMIUM cmd; |
2835 }; | 2835 }; |
2836 Cmds expected; | 2836 Cmds expected; |
2837 expected.cmd.Init(1, 2, 3, 4, 5); | 2837 expected.cmd.Init(1, 2, 3, 4, 5); |
2838 | 2838 |
2839 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5); | 2839 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5); |
2840 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2840 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2841 } | 2841 } |
2842 | 2842 |
| 2843 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) { |
| 2844 struct Cmds { |
| 2845 cmds::CompressedCopyTextureCHROMIUM cmd; |
| 2846 }; |
| 2847 Cmds expected; |
| 2848 expected.cmd.Init(1, 2, 3, 4, 5); |
| 2849 |
| 2850 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3, 4, 5); |
| 2851 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2852 } |
| 2853 |
2843 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2854 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
2844 struct Cmds { | 2855 struct Cmds { |
2845 cmds::DrawArraysInstancedANGLE cmd; | 2856 cmds::DrawArraysInstancedANGLE cmd; |
2846 }; | 2857 }; |
2847 Cmds expected; | 2858 Cmds expected; |
2848 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2859 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
2849 | 2860 |
2850 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2861 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
2851 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2862 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2852 } | 2863 } |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3079 struct Cmds { | 3090 struct Cmds { |
3080 cmds::MatrixLoadIdentityCHROMIUM cmd; | 3091 cmds::MatrixLoadIdentityCHROMIUM cmd; |
3081 }; | 3092 }; |
3082 Cmds expected; | 3093 Cmds expected; |
3083 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 3094 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
3084 | 3095 |
3085 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 3096 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
3086 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3097 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
3087 } | 3098 } |
3088 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3099 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |