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

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

Issue 9910004: Implement Discard and EnsureBackbufferCHROMIUM using command buffer instead of IPC. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 1637 matching lines...) Expand 10 before | Expand all | Expand 10 after
1648 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) { 1648 TEST_F(GLES2ImplementationTest, VertexAttribDivisorANGLE) {
1649 struct Cmds { 1649 struct Cmds {
1650 VertexAttribDivisorANGLE cmd; 1650 VertexAttribDivisorANGLE cmd;
1651 }; 1651 };
1652 Cmds expected; 1652 Cmds expected;
1653 expected.cmd.Init(1, 2); 1653 expected.cmd.Init(1, 2);
1654 1654
1655 gl_->VertexAttribDivisorANGLE(1, 2); 1655 gl_->VertexAttribDivisorANGLE(1, 2);
1656 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1656 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1657 } 1657 }
1658
1659 TEST_F(GLES2ImplementationTest, DiscardBackbufferCHROMIUM) {
1660 struct Cmds {
1661 DiscardBackbufferCHROMIUM cmd;
1662 };
1663 Cmds expected;
1664 expected.cmd.Init();
1665
1666 gl_->DiscardBackbufferCHROMIUM();
1667 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1668 }
1669
1670 TEST_F(GLES2ImplementationTest, EnsureBackbufferCHROMIUM) {
1671 struct Cmds {
1672 EnsureBackbufferCHROMIUM cmd;
1673 };
1674 Cmds expected;
1675 expected.cmd.Init();
1676
1677 gl_->EnsureBackbufferCHROMIUM();
1678 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1679 }
1658 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1680 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1659 1681
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