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 1625 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1636 // TODO: Implement unit test for GenSharedIdsCHROMIUM | 1636 // TODO: Implement unit test for GenSharedIdsCHROMIUM |
1637 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM | 1637 // TODO: Implement unit test for DeleteSharedIdsCHROMIUM |
1638 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM | 1638 // TODO: Implement unit test for RegisterSharedIdsCHROMIUM |
1639 // TODO: Implement unit test for EnableFeatureCHROMIUM | 1639 // TODO: Implement unit test for EnableFeatureCHROMIUM |
1640 | 1640 |
1641 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { | 1641 TEST_F(GLES2ImplementationTest, ResizeCHROMIUM) { |
1642 struct Cmds { | 1642 struct Cmds { |
1643 cmds::ResizeCHROMIUM cmd; | 1643 cmds::ResizeCHROMIUM cmd; |
1644 }; | 1644 }; |
1645 Cmds expected; | 1645 Cmds expected; |
1646 expected.cmd.Init(1, 2); | 1646 expected.cmd.Init(1, 2, 3); |
1647 | 1647 |
1648 gl_->ResizeCHROMIUM(1, 2); | 1648 gl_->ResizeCHROMIUM(1, 2, 3); |
1649 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1649 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1650 } | 1650 } |
1651 // TODO: Implement unit test for GetRequestableExtensionsCHROMIUM | 1651 // TODO: Implement unit test for GetRequestableExtensionsCHROMIUM |
1652 | 1652 |
1653 TEST_F(GLES2ImplementationTest, DestroyStreamTextureCHROMIUM) { | 1653 TEST_F(GLES2ImplementationTest, DestroyStreamTextureCHROMIUM) { |
1654 struct Cmds { | 1654 struct Cmds { |
1655 cmds::DestroyStreamTextureCHROMIUM cmd; | 1655 cmds::DestroyStreamTextureCHROMIUM cmd; |
1656 }; | 1656 }; |
1657 Cmds expected; | 1657 Cmds expected; |
1658 expected.cmd.Init(1); | 1658 expected.cmd.Init(1); |
(...skipping 151 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 |