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 1753 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1764 | 1764 |
1765 Cmds expected; | 1765 Cmds expected; |
1766 for (int jj = 0; jj < 64; ++jj) { | 1766 for (int jj = 0; jj < 64; ++jj) { |
1767 expected.data[jj] = static_cast<GLbyte>(jj); | 1767 expected.data[jj] = static_cast<GLbyte>(jj); |
1768 } | 1768 } |
1769 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); | 1769 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); |
1770 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); | 1770 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); |
1771 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1771 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1772 } | 1772 } |
1773 // TODO: Implement unit test for BindUniformLocationCHROMIUM | 1773 // TODO: Implement unit test for BindUniformLocationCHROMIUM |
| 1774 |
| 1775 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) { |
| 1776 struct Cmds { |
| 1777 BindTexImage2DCHROMIUM cmd; |
| 1778 }; |
| 1779 Cmds expected; |
| 1780 expected.cmd.Init(GL_TEXTURE_2D, 2); |
| 1781 |
| 1782 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); |
| 1783 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1784 } |
| 1785 |
| 1786 TEST_F(GLES2ImplementationTest, ReleaseTexImage2DCHROMIUM) { |
| 1787 struct Cmds { |
| 1788 ReleaseTexImage2DCHROMIUM cmd; |
| 1789 }; |
| 1790 Cmds expected; |
| 1791 expected.cmd.Init(GL_TEXTURE_2D, 2); |
| 1792 |
| 1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); |
| 1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1795 } |
1774 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1796 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1775 | 1797 |
OLD | NEW |