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

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

Issue 921023002: Add glGetActiveUniformsiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@uniform
Patch Set: Created 5 years, 10 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 735 matching lines...) Expand 10 before | Expand all | Expand 10 after
746 expected.data[1] = kTransformFeedbacksStartId + 1; 746 expected.data[1] = kTransformFeedbacksStartId + 1;
747 gl_->GenTransformFeedbacks(arraysize(ids), &ids[0]); 747 gl_->GenTransformFeedbacks(arraysize(ids), &ids[0]);
748 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 748 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
749 EXPECT_EQ(kTransformFeedbacksStartId, ids[0]); 749 EXPECT_EQ(kTransformFeedbacksStartId, ids[0]);
750 EXPECT_EQ(kTransformFeedbacksStartId + 1, ids[1]); 750 EXPECT_EQ(kTransformFeedbacksStartId + 1, ids[1]);
751 } 751 }
752 // TODO(zmo): Implement unit test for GetActiveAttrib 752 // TODO(zmo): Implement unit test for GetActiveAttrib
753 // TODO(zmo): Implement unit test for GetActiveUniform 753 // TODO(zmo): Implement unit test for GetActiveUniform
754 // TODO(zmo): Implement unit test for GetActiveUniformBlockiv 754 // TODO(zmo): Implement unit test for GetActiveUniformBlockiv
755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName 755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName
756 // TODO(zmo): Implement unit test for GetActiveUniformsiv
756 // TODO(zmo): Implement unit test for GetAttachedShaders 757 // TODO(zmo): Implement unit test for GetAttachedShaders
757 // TODO(zmo): Implement unit test for GetAttribLocation 758 // TODO(zmo): Implement unit test for GetAttribLocation
758 759
759 TEST_F(GLES2ImplementationTest, GetBooleanv) { 760 TEST_F(GLES2ImplementationTest, GetBooleanv) {
760 struct Cmds { 761 struct Cmds {
761 cmds::GetBooleanv cmd; 762 cmds::GetBooleanv cmd;
762 }; 763 };
763 typedef cmds::GetBooleanv::Result Result; 764 typedef cmds::GetBooleanv::Result Result;
764 Result::Type result = 0; 765 Result::Type result = 0;
765 Cmds expected; 766 Cmds expected;
(...skipping 2208 matching lines...) Expand 10 before | Expand all | Expand 10 after
2974 struct Cmds { 2975 struct Cmds {
2975 cmds::MatrixLoadIdentityCHROMIUM cmd; 2976 cmds::MatrixLoadIdentityCHROMIUM cmd;
2976 }; 2977 };
2977 Cmds expected; 2978 Cmds expected;
2978 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2979 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2979 2980
2980 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2981 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2981 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2982 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2982 } 2983 }
2983 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2984 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW
« no previous file with comments | « gpu/command_buffer/client/gles2_implementation_autogen.h ('k') | gpu/command_buffer/client/gles2_interface_autogen.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698