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

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

Issue 298753004: Fix an early return and the error status in glLoseContextCHROMIUM impl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@cmd-buffer-missing-early-returns
Patch Set: Created 6 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: 7 // It's formatted by clang-format using chromium coding style:
8 // clang-format -i -style=chromium filename 8 // clang-format -i -style=chromium filename
9 // DO NOT EDIT! 9 // DO NOT EDIT!
10 10
(...skipping 1834 matching lines...) Expand 10 before | Expand all | Expand 10 after
1845 expected.cmd.Init(1, 2, &data[0][0]); 1845 expected.cmd.Init(1, 2, &data[0][0]);
1846 gl_->DiscardFramebufferEXT(1, 2, &data[0][0]); 1846 gl_->DiscardFramebufferEXT(1, 2, &data[0][0]);
1847 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1847 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1848 } 1848 }
1849 1849
1850 TEST_F(GLES2ImplementationTest, LoseContextCHROMIUM) { 1850 TEST_F(GLES2ImplementationTest, LoseContextCHROMIUM) {
1851 struct Cmds { 1851 struct Cmds {
1852 cmds::LoseContextCHROMIUM cmd; 1852 cmds::LoseContextCHROMIUM cmd;
1853 }; 1853 };
1854 Cmds expected; 1854 Cmds expected;
1855 expected.cmd.Init(1, 2); 1855 expected.cmd.Init(GL_GUILTY_CONTEXT_RESET_ARB, GL_GUILTY_CONTEXT_RESET_ARB);
1856 1856
1857 gl_->LoseContextCHROMIUM(1, 2); 1857 gl_->LoseContextCHROMIUM(GL_GUILTY_CONTEXT_RESET_ARB,
1858 GL_GUILTY_CONTEXT_RESET_ARB);
1858 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1859 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1859 } 1860 }
1860 // TODO: Implement unit test for InsertSyncPointCHROMIUM 1861 // TODO: Implement unit test for InsertSyncPointCHROMIUM
1861 1862
1862 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) { 1863 TEST_F(GLES2ImplementationTest, WaitSyncPointCHROMIUM) {
1863 struct Cmds { 1864 struct Cmds {
1864 cmds::WaitSyncPointCHROMIUM cmd; 1865 cmds::WaitSyncPointCHROMIUM cmd;
1865 }; 1866 };
1866 Cmds expected; 1867 Cmds expected;
1867 expected.cmd.Init(1); 1868 expected.cmd.Init(1);
(...skipping 24 matching lines...) Expand all
1892 struct Cmds { 1893 struct Cmds {
1893 cmds::DiscardBackbufferCHROMIUM cmd; 1894 cmds::DiscardBackbufferCHROMIUM cmd;
1894 }; 1895 };
1895 Cmds expected; 1896 Cmds expected;
1896 expected.cmd.Init(); 1897 expected.cmd.Init();
1897 1898
1898 gl_->DiscardBackbufferCHROMIUM(); 1899 gl_->DiscardBackbufferCHROMIUM();
1899 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1900 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1900 } 1901 }
1901 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1902 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_impl_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