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 1679 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1690 | 1690 |
1691 Cmds expected; | 1691 Cmds expected; |
1692 for (int jj = 0; jj < 64; ++jj) { | 1692 for (int jj = 0; jj < 64; ++jj) { |
1693 expected.data[jj] = static_cast<GLbyte>(jj); | 1693 expected.data[jj] = static_cast<GLbyte>(jj); |
1694 } | 1694 } |
1695 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); | 1695 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); |
1696 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); | 1696 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); |
1697 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1697 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1698 } | 1698 } |
1699 // TODO: Implement unit test for BindUniformLocationCHROMIUM | 1699 // TODO: Implement unit test for BindUniformLocationCHROMIUM |
| 1700 |
| 1701 TEST_F(GLES2ImplementationTest, TexImagePixmap2DCHROMIUM) { |
| 1702 struct Cmds { |
| 1703 TexImagePixmap2DCHROMIUM cmd; |
| 1704 }; |
| 1705 Cmds expected; |
| 1706 expected.cmd.Init(GL_TEXTURE_2D, 2); |
| 1707 |
| 1708 gl_->TexImagePixmap2DCHROMIUM(GL_TEXTURE_2D, 2); |
| 1709 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1710 } |
1700 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1711 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1701 | 1712 |
OLD | NEW |