| 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 2875 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2886 struct Cmds { | 2886 struct Cmds { |
| 2887 cmds::CompressedCopyTextureCHROMIUM cmd; | 2887 cmds::CompressedCopyTextureCHROMIUM cmd; |
| 2888 }; | 2888 }; |
| 2889 Cmds expected; | 2889 Cmds expected; |
| 2890 expected.cmd.Init(1, 2, 3); | 2890 expected.cmd.Init(1, 2, 3); |
| 2891 | 2891 |
| 2892 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3); | 2892 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3); |
| 2893 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2893 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2894 } | 2894 } |
| 2895 | 2895 |
| 2896 TEST_F(GLES2ImplementationTest, CompressedCopySubTextureCHROMIUM) { |
| 2897 struct Cmds { |
| 2898 cmds::CompressedCopySubTextureCHROMIUM cmd; |
| 2899 }; |
| 2900 Cmds expected; |
| 2901 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9); |
| 2902 |
| 2903 gl_->CompressedCopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9); |
| 2904 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2905 } |
| 2906 |
| 2896 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2907 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
| 2897 struct Cmds { | 2908 struct Cmds { |
| 2898 cmds::DrawArraysInstancedANGLE cmd; | 2909 cmds::DrawArraysInstancedANGLE cmd; |
| 2899 }; | 2910 }; |
| 2900 Cmds expected; | 2911 Cmds expected; |
| 2901 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2912 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
| 2902 | 2913 |
| 2903 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2914 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
| 2904 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2915 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2905 } | 2916 } |
| (...skipping 369 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3275 struct Cmds { | 3286 struct Cmds { |
| 3276 cmds::StencilThenCoverStrokePathCHROMIUM cmd; | 3287 cmds::StencilThenCoverStrokePathCHROMIUM cmd; |
| 3277 }; | 3288 }; |
| 3278 Cmds expected; | 3289 Cmds expected; |
| 3279 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3290 expected.cmd.Init(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3280 | 3291 |
| 3281 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); | 3292 gl_->StencilThenCoverStrokePathCHROMIUM(1, 2, 3, GL_CONVEX_HULL_CHROMIUM); |
| 3282 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3293 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3283 } | 3294 } |
| 3284 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3295 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |