| 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 2683 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 2694   struct Cmds { | 2694   struct Cmds { | 
| 2695     cmds::DescheduleUntilFinishedCHROMIUM cmd; | 2695     cmds::DescheduleUntilFinishedCHROMIUM cmd; | 
| 2696   }; | 2696   }; | 
| 2697   Cmds expected; | 2697   Cmds expected; | 
| 2698   expected.cmd.Init(); | 2698   expected.cmd.Init(); | 
| 2699 | 2699 | 
| 2700   gl_->DescheduleUntilFinishedCHROMIUM(); | 2700   gl_->DescheduleUntilFinishedCHROMIUM(); | 
| 2701   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2701   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 
| 2702 } | 2702 } | 
| 2703 | 2703 | 
| 2704 TEST_F(GLES2ImplementationTest, TexImageIOSurface2DCHROMIUM) { |  | 
| 2705   struct Cmds { |  | 
| 2706     cmds::TexImageIOSurface2DCHROMIUM cmd; |  | 
| 2707   }; |  | 
| 2708   Cmds expected; |  | 
| 2709   expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); |  | 
| 2710 |  | 
| 2711   gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); |  | 
| 2712   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |  | 
| 2713 } |  | 
| 2714 |  | 
| 2715 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { | 2704 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { | 
| 2716   struct Cmds { | 2705   struct Cmds { | 
| 2717     cmds::CopyTextureCHROMIUM cmd; | 2706     cmds::CopyTextureCHROMIUM cmd; | 
| 2718   }; | 2707   }; | 
| 2719   Cmds expected; | 2708   Cmds expected; | 
| 2720   expected.cmd.Init(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); | 2709   expected.cmd.Init(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); | 
| 2721 | 2710 | 
| 2722   gl_->CopyTextureCHROMIUM(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); | 2711   gl_->CopyTextureCHROMIUM(1, 2, GL_ALPHA, GL_UNSIGNED_BYTE, true, true, true); | 
| 2723   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2712   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 
| 2724 } | 2713 } | 
| (...skipping 295 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
| 3020   struct Cmds { | 3009   struct Cmds { | 
| 3021     cmds::CoverageModulationCHROMIUM cmd; | 3010     cmds::CoverageModulationCHROMIUM cmd; | 
| 3022   }; | 3011   }; | 
| 3023   Cmds expected; | 3012   Cmds expected; | 
| 3024   expected.cmd.Init(GL_RGB); | 3013   expected.cmd.Init(GL_RGB); | 
| 3025 | 3014 | 
| 3026   gl_->CoverageModulationCHROMIUM(GL_RGB); | 3015   gl_->CoverageModulationCHROMIUM(GL_RGB); | 
| 3027   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3016   EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 
| 3028 } | 3017 } | 
| 3029 #endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3018 #endif  // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 
| OLD | NEW | 
|---|