| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
| 8 | 8 |
| 9 // This file is included by gles2_implementation.h to declare the | 9 // This file is included by gles2_implementation.h to declare the |
| 10 // GL api functions. | 10 // GL api functions. |
| (...skipping 1779 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1790 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) { | 1790 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) { |
| 1791 struct Cmds { | 1791 struct Cmds { |
| 1792 cmds::WaitSyncPointCHROMIUM cmd; | 1792 cmds::WaitSyncPointCHROMIUM cmd; |
| 1793 }; | 1793 }; |
| 1794 Cmds expected; | 1794 Cmds expected; |
| 1795 expected.cmd.Init(1); | 1795 expected.cmd.Init(1); |
| 1796 | 1796 |
| 1797 gl_->WaitSyncPointCHROMIUM(1); | 1797 gl_->WaitSyncPointCHROMIUM(1); |
| 1798 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1798 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1799 } | 1799 } |
| 1800 |
| 1801 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) { |
| 1802 struct Cmds { |
| 1803 cmds::DrawBuffersEXTImmediate cmd; |
| 1804 GLenum data[1][1]; |
| 1805 }; |
| 1806 |
| 1807 Cmds expected; |
| 1808 for (int ii = 0; ii < 1; ++ii) { |
| 1809 for (int jj = 0; jj < 1; ++jj) { |
| 1810 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); |
| 1811 } |
| 1812 } |
| 1813 expected.cmd.Init(1, &expected.data[0][0]); |
| 1814 gl_->DrawBuffersEXT(1, &expected.data[0][0]); |
| 1815 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1816 } |
| 1800 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1817 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
| 1801 | 1818 |
| OLD | NEW |