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 1576 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1587 GLuint data[2]; | 1587 GLuint data[2]; |
1588 }; | 1588 }; |
1589 Cmds expected; | 1589 Cmds expected; |
1590 expected.del.Init(arraysize(ids), &ids[0]); | 1590 expected.del.Init(arraysize(ids), &ids[0]); |
1591 expected.data[0] = kQueriesStartId; | 1591 expected.data[0] = kQueriesStartId; |
1592 expected.data[1] = kQueriesStartId + 1; | 1592 expected.data[1] = kQueriesStartId + 1; |
1593 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]); | 1593 gl_->DeleteQueriesEXT(arraysize(ids), &ids[0]); |
1594 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1594 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1595 } | 1595 } |
1596 // TODO: Implement unit test for BeginQueryEXT | 1596 // TODO: Implement unit test for BeginQueryEXT |
| 1597 // TODO: Implement unit test for InsertEventMarkerEXT |
| 1598 // TODO: Implement unit test for PushGroupMarkerEXT |
| 1599 |
| 1600 TEST_F(GLES2ImplementationTest, PopGroupMarkerEXT) { |
| 1601 struct Cmds { |
| 1602 PopGroupMarkerEXT cmd; |
| 1603 }; |
| 1604 Cmds expected; |
| 1605 expected.cmd.Init(); |
| 1606 |
| 1607 gl_->PopGroupMarkerEXT(); |
| 1608 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
| 1609 } |
1597 // TODO: Implement unit test for GenSharedIdsCHROMIUM | 1610 // TODO: Implement unit test for GenSharedIdsCHROMIUM |
1598 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM | 1611 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM |
1599 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM | 1612 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM |
1600 // TODO: Implement unit test for EnableFeatureCHROMIUM | 1613 // TODO: Implement unit test for EnableFeatureCHROMIUM |
1601 | 1614 |
1602 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 1615 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
1603 struct Cmds { | 1616 struct Cmds { |
1604 ResizeCHROMIUM cmd; | 1617 ResizeCHROMIUM cmd; |
1605 }; | 1618 }; |
1606 Cmds expected; | 1619 Cmds expected; |
(...skipping 85 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1692 for (int jj = 0; jj < 64; ++jj) { | 1705 for (int jj = 0; jj < 64; ++jj) { |
1693 expected.data[jj] = static_cast<GLbyte>(jj); | 1706 expected.data[jj] = static_cast<GLbyte>(jj); |
1694 } | 1707 } |
1695 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); | 1708 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]); |
1696 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); | 1709 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]); |
1697 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1710 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1698 } | 1711 } |
1699 // TODO: Implement unit test for BindUniformLocationCHROMIUM | 1712 // TODO: Implement unit test for BindUniformLocationCHROMIUM |
1700 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1713 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1701 | 1714 |
OLD | NEW |