| 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 2824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2835 struct Cmds { | 2835 struct Cmds { |
| 2836 cmds::CompressedCopyTextureCHROMIUM cmd; | 2836 cmds::CompressedCopyTextureCHROMIUM cmd; |
| 2837 }; | 2837 }; |
| 2838 Cmds expected; | 2838 Cmds expected; |
| 2839 expected.cmd.Init(1, 2, 3); | 2839 expected.cmd.Init(1, 2, 3); |
| 2840 | 2840 |
| 2841 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3); | 2841 gl_->CompressedCopyTextureCHROMIUM(1, 2, 3); |
| 2842 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2842 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2843 } | 2843 } |
| 2844 | 2844 |
| 2845 TEST_F(GLES2ImplementationTest, CompressedCopySubTextureCHROMIUM) { | |
| 2846 struct Cmds { | |
| 2847 cmds::CompressedCopySubTextureCHROMIUM cmd; | |
| 2848 }; | |
| 2849 Cmds expected; | |
| 2850 expected.cmd.Init(1, 2, 3, 4, 5, 6, 7, 8, 9); | |
| 2851 | |
| 2852 gl_->CompressedCopySubTextureCHROMIUM(1, 2, 3, 4, 5, 6, 7, 8, 9); | |
| 2853 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | |
| 2854 } | |
| 2855 | |
| 2856 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 2845 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
| 2857 struct Cmds { | 2846 struct Cmds { |
| 2858 cmds::DrawArraysInstancedANGLE cmd; | 2847 cmds::DrawArraysInstancedANGLE cmd; |
| 2859 }; | 2848 }; |
| 2860 Cmds expected; | 2849 Cmds expected; |
| 2861 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 2850 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
| 2862 | 2851 |
| 2863 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 2852 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
| 2864 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2853 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2865 } | 2854 } |
| (...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3230 struct Cmds { | 3219 struct Cmds { |
| 3231 cmds::CoverageModulationCHROMIUM cmd; | 3220 cmds::CoverageModulationCHROMIUM cmd; |
| 3232 }; | 3221 }; |
| 3233 Cmds expected; | 3222 Cmds expected; |
| 3234 expected.cmd.Init(GL_RGB); | 3223 expected.cmd.Init(GL_RGB); |
| 3235 | 3224 |
| 3236 gl_->CoverageModulationCHROMIUM(GL_RGB); | 3225 gl_->CoverageModulationCHROMIUM(GL_RGB); |
| 3237 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3226 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3238 } | 3227 } |
| 3239 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3228 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |