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

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

Issue 12545014: Implement EXT_draw_buffers WebGL extention support in command buffer. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 9 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 1780 matching lines...) Expand 10 before | Expand all | Expand 10 after
1791 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) { 1791 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) {
1792 struct Cmds { 1792 struct Cmds {
1793 cmds::WaitSyncPointCHROMIUM cmd; 1793 cmds::WaitSyncPointCHROMIUM cmd;
1794 }; 1794 };
1795 Cmds expected; 1795 Cmds expected;
1796 expected.cmd.Init(1); 1796 expected.cmd.Init(1);
1797 1797
1798 gl_->WaitSyncPointCHROMIUM(1); 1798 gl_->WaitSyncPointCHROMIUM(1);
1799 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1799 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1800 } 1800 }
1801
1802 TEST_F(GLES2ImplementationTest, DrawBuffersEXT) {
1803 struct Cmds {
1804 cmds::DrawBuffersEXTImmediate cmd;
1805 GLenum data[1][1];
1806 };
1807
1808 Cmds expected;
1809 for (int ii = 0; ii < 1; ++ii) {
1810 for (int jj = 0; jj < 1; ++jj) {
1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj);
1812 }
1813 }
1814 expected.cmd.Init(1, &expected.data[0][0]);
1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]);
1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1817 }
1801 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1802 1819
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_autogen.h ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698