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

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

Issue 10106015: Allow textures to be moved from one GL context group to another. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 1648 matching lines...) Expand 10 before | Expand all | Expand 10 after
1659 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) { 1659 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) {
1660 struct Cmds { 1660 struct Cmds {
1661 VertexAttribDivisorANGLE cmd; 1661 VertexAttribDivisorANGLE cmd;
1662 }; 1662 };
1663 Cmds expected; 1663 Cmds expected;
1664 expected.cmd.Init(1, 2); 1664 expected.cmd.Init(1, 2);
1665 1665
1666 gl_->VertexAttribDivisorANGLE(1, 2); 1666 gl_->VertexAttribDivisorANGLE(1, 2);
1667 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1667 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1668 } 1668 }
1669
1670 TEST_F(GLES2ImplementationTest, ProduceTextureCHROMIUM) {
1671 struct Cmds {
1672 ProduceTextureCHROMIUMImmediate cmd;
1673 GLbyte data[64];
1674 };
1675
1676 Cmds expected;
1677 for (int jj = 0; jj < 64; ++jj) {
1678 expected.data[jj] = static_cast<GLbyte>(jj);
1679 }
1680 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
1681 gl_->ProduceTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
1682 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1683 }
1684
1685 TEST_F(GLES2ImplementationTest, ConsumeTextureCHROMIUM) {
1686 struct Cmds {
1687 ConsumeTextureCHROMIUMImmediate cmd;
1688 GLbyte data[64];
1689 };
1690
1691 Cmds expected;
1692 for (int jj = 0; jj < 64; ++jj) {
1693 expected.data[jj] = static_cast<GLbyte>(jj);
1694 }
1695 expected.cmd.Init(GL_TEXTURE_2D, &expected.data[0]);
1696 gl_->ConsumeTextureCHROMIUM(GL_TEXTURE_2D, &expected.data[0]);
1697 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1698 }
1669 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1699 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1670 1700
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/cmd_buffer_functions.txt » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698