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 1616 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1627 struct Cmds { | 1627 struct Cmds { |
1628 TexImageIOSurface2DCHROMIUM cmd; | 1628 TexImageIOSurface2DCHROMIUM cmd; |
1629 }; | 1629 }; |
1630 Cmds expected; | 1630 Cmds expected; |
1631 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); | 1631 expected.cmd.Init(GL_TEXTURE_2D, 2, 3, 4, 5); |
1632 | 1632 |
1633 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); | 1633 gl_->TexImageIOSurface2DCHROMIUM(GL_TEXTURE_2D, 2, 3, 4, 5); |
1634 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1634 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1635 } | 1635 } |
1636 | 1636 |
| 1637 TEST_F(GLES2ImplementationTest, CopyTextureCHROMIUM) { |
| 1638 struct Cmds { |
| 1639 CopyTextureCHROMIUM cmd; |
| 1640 }; |
| 1641 Cmds expected; |
| 1642 expected.cmd.Init(1, 2, 3, 4); |
| 1643 |
| 1644 gl_->CopyTextureCHROMIUM(1, 2, 3, 4); |
| 1645 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1646 } |
| 1647 |
1637 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { | 1648 TEST_F(GLES2ImplementationTest, DrawArraysInstancedANGLE) { |
1638 struct Cmds { | 1649 struct Cmds { |
1639 DrawArraysInstancedANGLE cmd; | 1650 DrawArraysInstancedANGLE cmd; |
1640 }; | 1651 }; |
1641 Cmds expected; | 1652 Cmds expected; |
1642 expected.cmd.Init(GL_POINTS, 2, 3, 4); | 1653 expected.cmd.Init(GL_POINTS, 2, 3, 4); |
1643 | 1654 |
1644 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); | 1655 gl_->DrawArraysInstancedANGLE(GL_POINTS, 2, 3, 4); |
1645 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1656 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1646 } | 1657 } |
1647 | 1658 |
1648 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) { | 1659 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) { |
1649 struct Cmds { | 1660 struct Cmds { |
1650 VertexAttribDivisorANGLE cmd; | 1661 VertexAttribDivisorANGLE cmd; |
1651 }; | 1662 }; |
1652 Cmds expected; | 1663 Cmds expected; |
1653 expected.cmd.Init(1, 2); | 1664 expected.cmd.Init(1, 2); |
1654 | 1665 |
1655 gl_->VertexAttribDivisorANGLE(1, 2); | 1666 gl_->VertexAttribDivisorANGLE(1, 2); |
1656 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1667 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1657 } | 1668 } |
1658 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1669 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1659 | 1670 |
OLD | NEW |