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

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

Issue 18492005: Add GL_EXT_multisampled_render_to_texture support to command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: moved ahead to TOT Created 7 years, 5 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
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 1511 matching lines...) Expand 10 before | Expand all | Expand 10 after
1522 struct Cmds { 1522 struct Cmds {
1523 cmds::RenderbufferStorageMultisampleEXT cmd; 1523 cmds::RenderbufferStorageMultisampleEXT cmd;
1524 }; 1524 };
1525 Cmds expected; 1525 Cmds expected;
1526 expected.cmd.Init(GL_RENDERBUFFER, 2, GL_RGBA4, 4, 5); 1526 expected.cmd.Init(GL_RENDERBUFFER, 2, GL_RGBA4, 4, 5);
1527 1527
1528 gl_->RenderbufferStorageMultisampleEXT(GL_RENDERBUFFER, 2, GL_RGBA4, 4, 5); 1528 gl_->RenderbufferStorageMultisampleEXT(GL_RENDERBUFFER, 2, GL_RGBA4, 4, 5);
1529 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1529 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1530 } 1530 }
1531 1531
1532 TEST_F(GLES2ImplementationTest, FramebufferTexture2DMultisampleEXT) {
1533 struct Cmds {
1534 cmds::FramebufferTexture2DMultisampleEXT cmd;
1535 };
1536 Cmds expected;
1537 expected.cmd.Init(
1538 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, 4, 0, 6);
1539
1540 gl_->FramebufferTexture2DMultisampleEXT(
1541 GL_FRAMEBUFFER, GL_COLOR_ATTACHMENT0, GL_TEXTURE_2D, 4, 0, 6);
1542 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1543 }
1544
1532 TEST_F(GLES2ImplementationTest, TexStorage2DEXT) { 1545 TEST_F(GLES2ImplementationTest, TexStorage2DEXT) {
1533 struct Cmds { 1546 struct Cmds {
1534 cmds::TexStorage2DEXT cmd; 1547 cmds::TexStorage2DEXT cmd;
1535 }; 1548 };
1536 Cmds expected; 1549 Cmds expected;
1537 expected.cmd.Init(GL_TEXTURE_2D, 2, GL_RGB565, 4, 5); 1550 expected.cmd.Init(GL_TEXTURE_2D, 2, GL_RGB565, 4, 5);
1538 1551
1539 gl_->TexStorage2DEXT(GL_TEXTURE_2D, 2, GL_RGB565, 4, 5); 1552 gl_->TexStorage2DEXT(GL_TEXTURE_2D, 2, GL_RGB565, 4, 5);
1540 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1553 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1541 } 1554 }
(...skipping 268 matching lines...) Expand 10 before | Expand all | Expand 10 after
1810 for (int jj = 0; jj < 1; ++jj) { 1823 for (int jj = 0; jj < 1; ++jj) {
1811 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); 1824 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj);
1812 } 1825 }
1813 } 1826 }
1814 expected.cmd.Init(1, &expected.data[0][0]); 1827 expected.cmd.Init(1, &expected.data[0][0]);
1815 gl_->DrawBuffersEXT(1, &expected.data[0][0]); 1828 gl_->DrawBuffersEXT(1, &expected.data[0][0]);
1816 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1829 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1817 } 1830 }
1818 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1831 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1819 1832
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