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

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

Issue 894373004: Add glGetActiveUniformBlockiv to GPU command buffer. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix win bots 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 733 matching lines...) Expand 10 before | Expand all | Expand 10 after
744 expected.gen.Init(arraysize(ids), &ids[0]); 744 expected.gen.Init(arraysize(ids), &ids[0]);
745 expected.data[0] = kTransformFeedbacksStartId; 745 expected.data[0] = kTransformFeedbacksStartId;
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 GetActiveUniformBlockName 755 // TODO(zmo): Implement unit test for GetActiveUniformBlockName
755 // TODO(zmo): Implement unit test for GetAttachedShaders 756 // TODO(zmo): Implement unit test for GetAttachedShaders
756 // TODO(zmo): Implement unit test for GetAttribLocation 757 // TODO(zmo): Implement unit test for GetAttribLocation
757 758
758 TEST_F(GLES2ImplementationTest, GetBooleanv) { 759 TEST_F(GLES2ImplementationTest, GetBooleanv) {
759 struct Cmds { 760 struct Cmds {
760 cmds::GetBooleanv cmd; 761 cmds::GetBooleanv cmd;
761 }; 762 };
762 typedef cmds::GetBooleanv::Result Result; 763 typedef cmds::GetBooleanv::Result Result;
763 Result::Type result = 0; 764 Result::Type result = 0;
(...skipping 2196 matching lines...) Expand 10 before | Expand all | Expand 10 after
2960 struct Cmds { 2961 struct Cmds {
2961 cmds::MatrixLoadIdentityCHROMIUM cmd; 2962 cmds::MatrixLoadIdentityCHROMIUM cmd;
2962 }; 2963 };
2963 Cmds expected; 2964 Cmds expected;
2964 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 2965 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
2965 2966
2966 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 2967 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
2967 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 2968 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
2968 } 2969 }
2969 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 2970 #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