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 1775 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1786 TEST_F(GLES2ImplementationTest, ReleaseTexImage2DCHROMIUM) { | 1786 TEST_F(GLES2ImplementationTest, ReleaseTexImage2DCHROMIUM) { |
1787 struct Cmds { | 1787 struct Cmds { |
1788 ReleaseTexImage2DCHROMIUM cmd; | 1788 ReleaseTexImage2DCHROMIUM cmd; |
1789 }; | 1789 }; |
1790 Cmds expected; | 1790 Cmds expected; |
1791 expected.cmd.Init(GL_TEXTURE_2D, 2); | 1791 expected.cmd.Init(GL_TEXTURE_2D, 2); |
1792 | 1792 |
1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); | 1793 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); |
1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | 1794 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); |
1795 } | 1795 } |
1796 | |
1797 TEST_F(GLES2ImplementationTest, TraceEndCHROMIUM) { | |
1798 struct Cmds { | |
1799 TraceEndCHROMIUM cmd; | |
1800 }; | |
1801 Cmds expected; | |
1802 expected.cmd.Init(); | |
1803 | |
1804 gl_->TraceEndCHROMIUM(); | |
1805 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); | |
1806 } | |
1807 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ | 1796 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ |
1808 | 1797 |
OLD | NEW |