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

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

Issue 659903002: Add subscribeUniform extension pipeline (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: piman@ review + merge uniform_subscription_manager with program_manager Created 6 years, 2 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 1786 matching lines...) Expand 10 before | Expand all | Expand 10 after
1797 }; 1797 };
1798 Cmds expected; 1798 Cmds expected;
1799 expected.cmd.Init(1, 2); 1799 expected.cmd.Init(1, 2);
1800 1800
1801 gl_->VertexAttribDivisorANGLE(1, 2); 1801 gl_->VertexAttribDivisorANGLE(1, 2);
1802 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1802 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1803 } 1803 }
1804 // TODO: Implement unit test for GenMailboxCHROMIUM 1804 // TODO: Implement unit test for GenMailboxCHROMIUM
1805 // TODO: Implement unit test for BindUniformLocationCHROMIUM 1805 // TODO: Implement unit test for BindUniformLocationCHROMIUM
1806 1806
1807 TEST_F(GLES2ImplementationTest, SubscribeUniformCHROMIUM) {
1808 struct Cmds {
1809 cmds::SubscribeUniformCHROMIUM cmd;
1810 };
1811 Cmds expected;
1812 expected.cmd.Init(1, GL_MOUSE_POSITION_CHROMIUM);
1813
1814 gl_->SubscribeUniformCHROMIUM(1, GL_MOUSE_POSITION_CHROMIUM);
1815 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1816 }
1817
1818 TEST_F(GLES2ImplementationTest, UnsubscribeUniformCHROMIUM) {
1819 struct Cmds {
1820 cmds::UnsubscribeUniformCHROMIUM cmd;
1821 };
1822 Cmds expected;
1823 expected.cmd.Init(1);
1824
1825 gl_->UnsubscribeUniformCHROMIUM(1);
1826 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1827 }
1828
1807 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) { 1829 TEST_F(GLES2ImplementationTest, BindTexImage2DCHROMIUM) {
1808 struct Cmds { 1830 struct Cmds {
1809 cmds::BindTexImage2DCHROMIUM cmd; 1831 cmds::BindTexImage2DCHROMIUM cmd;
1810 }; 1832 };
1811 Cmds expected; 1833 Cmds expected;
1812 expected.cmd.Init(GL_TEXTURE_2D, 2); 1834 expected.cmd.Init(GL_TEXTURE_2D, 2);
1813 1835
1814 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2); 1836 gl_->BindTexImage2DCHROMIUM(GL_TEXTURE_2D, 2);
1815 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1837 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1816 } 1838 }
(...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after
1917 struct Cmds { 1939 struct Cmds {
1918 cmds::MatrixLoadIdentityCHROMIUM cmd; 1940 cmds::MatrixLoadIdentityCHROMIUM cmd;
1919 }; 1941 };
1920 Cmds expected; 1942 Cmds expected;
1921 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 1943 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
1922 1944
1923 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 1945 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
1924 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 1946 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
1925 } 1947 }
1926 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 1948 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698