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 1660 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1671 | 1671 |
1672 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); | 1672 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); |
1673 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1673 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1674 } | 1674 } |
1675 | 1675 |
1676 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { | 1676 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { |
1677 struct Cmds { | 1677 struct Cmds { |
1678 cmds::CopyTextureCHROMIUM cmd; | 1678 cmds::CopyTextureCHROMIUM cmd; |
1679 }; | 1679 }; |
1680 Cmds expected; | 1680 Cmds expected; |
1681 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA); | 1681 expected.cmd.Init(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
1682 | 1682 |
1683 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA); | 1683 gl_->CopyTextureCHROMIUM(1, 2, 3, 4, GL_ALPHA, GL_UNSIGNED_BYTE); |
1684 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1684 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1685 } | 1685 } |
1686 | 1686 |
1687 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 1687 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
1688 struct Cmds { | 1688 struct Cmds { |
1689 cmds::DrawArraysInstancedANGLE cmd; | 1689 cmds::DrawArraysInstancedANGLE cmd; |
1690 }; | 1690 }; |
1691 Cmds expected; | 1691 Cmds expected; |
1692 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 1692 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
1693 | 1693 |
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1810 for (int jj = 0; jj < 1; ++jj) { | 1810 for (int jj = 0; jj < 1; ++jj) { |
1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); | 1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); |
1812 } | 1812 } |
1813 } | 1813 } |
1814 expected.cmd.Init(1, &expected.data[0][0]); | 1814 expected.cmd.Init(1, &expected.data[0][0]); |
1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]); | 1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]); |
1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1817 } | 1817 } |
1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1819 | 1819 |
OLD | NEW |