Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(700)

Side by Side Diff: gpu/command_buffer/client/gles2_implementation_unittest_autogen.h

Issue 11416117: Hookup the GPUTrace events. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Update the autogen'd files. Created 7 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1741 matching lines...) Expand 10 before | Expand all | Expand 10 after
1752 struct Cmds { 1752 struct Cmds {
1753 ReleaseTexImage2DCHROMIUM cmd; 1753 ReleaseTexImage2DCHROMIUM cmd;
1754 }; 1754 };
1755 Cmds expected; 1755 Cmds expected;
1756 expected.cmd.Init(GL_TEXTURE_2D, 2); 1756 expected.cmd.Init(GL_TEXTURE_2D, 2);
1757 1757
1758 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); 1758 gl_->ReleaseTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
1759 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1759 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1760 } 1760 }
1761 1761
1762 TEST_F(GLES2ImplementationTest, TraceEndCHROMIUM) {
1763 struct Cmds {
1764 TraceEndCHROMIUM cmd;
1765 };
1766 Cmds expected;
1767 expected.cmd.Init();
1768
1769 gl_->TraceEndCHROMIUM();
1770 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1771 }
1772
1773 TEST_F(GLES2ImplementationTest, DiscardFramebufferEXT) { 1762 TEST_F(GLES2ImplementationTest, DiscardFramebufferEXT) {
1774 struct Cmds { 1763 struct Cmds {
1775 DiscardFramebufferEXTImmediate cmd; 1764 DiscardFramebufferEXTImmediate cmd;
1776 GLenum data[2][1]; 1765 GLenum data[2][1];
1777 }; 1766 };
1778 1767
1779 Cmds expected; 1768 Cmds expected;
1780 for (int ii = 0; ii < 2; ++ii) { 1769 for (int ii = 0; ii < 2; ++ii) {
1781 for (int jj = 0; jj < 1; ++jj) { 1770 for (int jj = 0; jj < 1; ++jj) {
1782 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); 1771 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj);
1783 } 1772 }
1784 } 1773 }
1785 expected.cmd.Init(1, 2, &expected.data[0][0]); 1774 expected.cmd.Init(1, 2, &expected.data[0][0]);
1786 gl_->DiscardFramebufferEXT(1, 2, &expected.data[0][0]); 1775 gl_->DiscardFramebufferEXT(1, 2, &expected.data[0][0]);
1787 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1776 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1788 } 1777 }
1789 1778
1790 TEST_F(GLES2ImplementationTest, LoseContextCHROMIUM) { 1779 TEST_F(GLES2ImplementationTest, LoseContextCHROMIUM) {
1791 struct Cmds { 1780 struct Cmds {
1792 LoseContextCHROMIUM cmd; 1781 LoseContextCHROMIUM cmd;
1793 }; 1782 };
1794 Cmds expected; 1783 Cmds expected;
1795 expected.cmd.Init(1, 2); 1784 expected.cmd.Init(1, 2);
1796 1785
1797 gl_->LoseContextCHROMIUM(1, 2); 1786 gl_->LoseContextCHROMIUM(1, 2);
1798 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1787 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1799 } 1788 }
1800 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1789 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1801 1790
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_autogen.h ('k') | gpu/command_buffer/service/gles2_cmd_decoder.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698