| 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 2819 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2830 struct Cmds { | 2830 struct Cmds { |
| 2831 cmds::DiscardBackbufferCHROMIUM cmd; | 2831 cmds::DiscardBackbufferCHROMIUM cmd; |
| 2832 }; | 2832 }; |
| 2833 Cmds expected; | 2833 Cmds expected; |
| 2834 expected.cmd.Init(); | 2834 expected.cmd.Init(); |
| 2835 | 2835 |
| 2836 gl_->DiscardBackbufferCHROMIUM(); | 2836 gl_->DiscardBackbufferCHROMIUM(); |
| 2837 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 2837 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2838 } | 2838 } |
| 2839 | 2839 |
| 2840 TEST_F(GLES2ImplementationTest, UnscheduleCALayerSharedStateCHROMIUM) { |
| 2841 struct Cmds { |
| 2842 cmds::UnscheduleCALayerSharedStateCHROMIUM cmd; |
| 2843 }; |
| 2844 Cmds expected; |
| 2845 expected.cmd.Init(); |
| 2846 |
| 2847 gl_->UnscheduleCALayerSharedStateCHROMIUM(); |
| 2848 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 2849 } |
| 2850 |
| 2840 TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) { | 2851 TEST_F(GLES2ImplementationTest, ScheduleCALayerInUseQueryCHROMIUM) { |
| 2841 GLuint data[1][1] = {{0}}; | 2852 GLuint data[1][1] = {{0}}; |
| 2842 struct Cmds { | 2853 struct Cmds { |
| 2843 cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate cmd; | 2854 cmds::ScheduleCALayerInUseQueryCHROMIUMImmediate cmd; |
| 2844 GLuint data[1][1]; | 2855 GLuint data[1][1]; |
| 2845 }; | 2856 }; |
| 2846 | 2857 |
| 2847 Cmds expected; | 2858 Cmds expected; |
| 2848 for (int ii = 0; ii < 1; ++ii) { | 2859 for (int ii = 0; ii < 1; ++ii) { |
| 2849 for (int jj = 0; jj < 1; ++jj) { | 2860 for (int jj = 0; jj < 1; ++jj) { |
| (...skipping 177 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3027 struct Cmds { | 3038 struct Cmds { |
| 3028 cmds::CoverageModulationCHROMIUM cmd; | 3039 cmds::CoverageModulationCHROMIUM cmd; |
| 3029 }; | 3040 }; |
| 3030 Cmds expected; | 3041 Cmds expected; |
| 3031 expected.cmd.Init(GL_RGB); | 3042 expected.cmd.Init(GL_RGB); |
| 3032 | 3043 |
| 3033 gl_->CoverageModulationCHROMIUM(GL_RGB); | 3044 gl_->CoverageModulationCHROMIUM(GL_RGB); |
| 3034 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3045 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3035 } | 3046 } |
| 3036 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3047 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |