| 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 182 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 193 | 193 |
| 194 gl_->Clear(1); | 194 gl_->Clear(1); |
| 195 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 195 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 196 } | 196 } |
| 197 | 197 |
| 198 TEST_F(GLES2ImplementationTest, ClearBufferfi) { | 198 TEST_F(GLES2ImplementationTest, ClearBufferfi) { |
| 199 struct Cmds { | 199 struct Cmds { |
| 200 cmds::ClearBufferfi cmd; | 200 cmds::ClearBufferfi cmd; |
| 201 }; | 201 }; |
| 202 Cmds expected; | 202 Cmds expected; |
| 203 expected.cmd.Init(GL_COLOR, 2, 3, 4); | 203 expected.cmd.Init(GL_DEPTH_STENCIL, 2, 3, 4); |
| 204 | 204 |
| 205 gl_->ClearBufferfi(GL_COLOR, 2, 3, 4); | 205 gl_->ClearBufferfi(GL_DEPTH_STENCIL, 2, 3, 4); |
| 206 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 206 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 207 } | 207 } |
| 208 | 208 |
| 209 TEST_F(GLES2ImplementationTest, ClearBufferfv) { | 209 TEST_F(GLES2ImplementationTest, ClearBufferfv) { |
| 210 GLfloat data[4] = {0}; | 210 GLfloat data[4] = {0}; |
| 211 struct Cmds { | 211 struct Cmds { |
| 212 cmds::ClearBufferfvImmediate cmd; | 212 cmds::ClearBufferfvImmediate cmd; |
| 213 GLfloat data[4]; | 213 GLfloat data[4]; |
| 214 }; | 214 }; |
| 215 | 215 |
| (...skipping 2793 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 3009 struct Cmds { | 3009 struct Cmds { |
| 3010 cmds::CoverageModulationCHROMIUM cmd; | 3010 cmds::CoverageModulationCHROMIUM cmd; |
| 3011 }; | 3011 }; |
| 3012 Cmds expected; | 3012 Cmds expected; |
| 3013 expected.cmd.Init(GL_RGB); | 3013 expected.cmd.Init(GL_RGB); |
| 3014 | 3014 |
| 3015 gl_->CoverageModulationCHROMIUM(GL_RGB); | 3015 gl_->CoverageModulationCHROMIUM(GL_RGB); |
| 3016 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 3016 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 3017 } | 3017 } |
| 3018 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 3018 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| OLD | NEW |