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 2844 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2855 struct Cmds { | 2855 struct Cmds { |
2856 cmds::CopySubTextureCHROMIUM cmd; | 2856 cmds::CopySubTextureCHROMIUM cmd; |
2857 }; | 2857 }; |
2858 Cmds expected; | 2858 Cmds expected; |
2859 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9); | 2859 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9); |
2860 | 2860 |
2861 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9); | 2861 gl_->CopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9); |
2862 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2862 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2863 } | 2863 } |
2864 | 2864 |
| 2865 TEST_F(GLES2ImplementationTest, CompressedCopyTextureCHROMIUM) { |
| 2866 struct Cmds { |
| 2867 cmds::CompressedCopyTextureCHROMIUM cmd; |
| 2868 }; |
| 2869 Cmds expected; |
| 2870 expected.cmd.Init(1, 2, 3); |
| 2871 |
| 2872 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3); |
| 2873 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2874 } |
| 2875 |
2865 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2876 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
2866 struct Cmds { | 2877 struct Cmds { |
2867 cmds::DrawArraysInstancedANGLE cmd; | 2878 cmds::DrawArraysInstancedANGLE cmd; |
2868 }; | 2879 }; |
2869 Cmds expected; | 2880 Cmds expected; |
2870 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2881 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
2871 | 2882 |
2872 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2883 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
2873 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2884 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
2874 } | 2885 } |
(...skipping 226 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3101 struct Cmds { | 3112 struct Cmds { |
3102 cmds::MatrixLoadIdentityCHROMIUM cmd; | 3113 cmds::MatrixLoadIdentityCHROMIUM cmd; |
3103 }; | 3114 }; |
3104 Cmds expected; | 3115 Cmds expected; |
3105 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); | 3116 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); |
3106 | 3117 |
3107 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); | 3118 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); |
3108 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3119 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
3109 } | 3120 } |
3110 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3121 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
OLD | NEW |