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

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

Issue 11568029: Add a command to lose the context (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years 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 1754 matching lines...) Expand 10 before | Expand all | Expand 10 after
1765 Cmds expected; 1765 Cmds expected;
1766 for (int ii = 0; ii < 2; ++ii) { 1766 for (int ii = 0; ii < 2; ++ii) {
1767 for (int jj = 0; jj < 1; ++jj) { 1767 for (int jj = 0; jj < 1; ++jj) {
1768 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj); 1768 expected.data[ii][jj] = static_cast<GLenum>(ii * 1 + jj);
1769 } 1769 }
1770 } 1770 }
1771 expected.cmd.Init(1, 2, &expected.data[0][0]); 1771 expected.cmd.Init(1, 2, &expected.data[0][0]);
1772 gl_->DiscardFramebufferEXT(1, 2, &expected.data[0][0]); 1772 gl_->DiscardFramebufferEXT(1, 2, &expected.data[0][0]);
1773 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1773 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1774 } 1774 }
1775
1776 TEST_F(GLES2ImplementationTest, LoseContextCHROMIUM) {
1777 struct Cmds {
1778 LoseContextCHROMIUM cmd;
1779 };
1780 Cmds expected;
1781 expected.cmd.Init();
1782
1783 gl_->LoseContextCHROMIUM();
1784 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1785 }
1775 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1786 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
1776 1787
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698