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

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

Issue 1134373002: Add a bunch of ES3 enums to the validator. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 901 matching lines...) Expand 10 before | Expand all | Expand 10 after
912 912
913 TEST_F(GLES2ImplementationTest, GetInternalformativ) { 913 TEST_F(GLES2ImplementationTest, GetInternalformativ) {
914 struct Cmds { 914 struct Cmds {
915 cmds::GetInternalformativ cmd; 915 cmds::GetInternalformativ cmd;
916 }; 916 };
917 typedef cmds::GetInternalformativ::Result::Type ResultType; 917 typedef cmds::GetInternalformativ::Result::Type ResultType;
918 ResultType result = 0; 918 ResultType result = 0;
919 Cmds expected; 919 Cmds expected;
920 ExpectedMemoryInfo result1 = 920 ExpectedMemoryInfo result1 =
921 GetExpectedResultMemory(sizeof(uint32_t) + sizeof(ResultType)); 921 GetExpectedResultMemory(sizeof(uint32_t) + sizeof(ResultType));
922 expected.cmd.Init(123, GL_RGBA4, GL_RENDERBUFFER_RED_SIZE, 4, result1.id, 922 expected.cmd.Init(123, GL_RGBA4, GL_NUM_SAMPLE_COUNTS, 4, result1.id,
923 result1.offset); 923 result1.offset);
924 EXPECT_CALL(*command_buffer(), OnFlush()) 924 EXPECT_CALL(*command_buffer(), OnFlush())
925 .WillOnce(SetMemory(result1.ptr, SizedResultHelper<ResultType>(1))) 925 .WillOnce(SetMemory(result1.ptr, SizedResultHelper<ResultType>(1)))
926 .RetiresOnSaturation(); 926 .RetiresOnSaturation();
927 gl_->GetInternalformativ(123, GL_RGBA4, GL_RENDERBUFFER_RED_SIZE, 4, &result); 927 gl_->GetInternalformativ(123, GL_RGBA4, GL_NUM_SAMPLE_COUNTS, 4, &result);
928 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 928 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
929 EXPECT_EQ(static_cast<ResultType>(1), result); 929 EXPECT_EQ(static_cast<ResultType>(1), result);
930 } 930 }
931 931
932 TEST_F(GLES2ImplementationTest, GetProgramiv) { 932 TEST_F(GLES2ImplementationTest, GetProgramiv) {
933 struct Cmds { 933 struct Cmds {
934 cmds::GetProgramiv cmd; 934 cmds::GetProgramiv cmd;
935 }; 935 };
936 typedef cmds::GetProgramiv::Result::Type ResultType; 936 typedef cmds::GetProgramiv::Result::Type ResultType;
937 ResultType result = 0; 937 ResultType result = 0;
(...skipping 2143 matching lines...) Expand 10 before | Expand all | Expand 10 after
3081 struct Cmds { 3081 struct Cmds {
3082 cmds::MatrixLoadIdentityCHROMIUM cmd; 3082 cmds::MatrixLoadIdentityCHROMIUM cmd;
3083 }; 3083 };
3084 Cmds expected; 3084 Cmds expected;
3085 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM); 3085 expected.cmd.Init(GL_PATH_PROJECTION_CHROMIUM);
3086 3086
3087 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM); 3087 gl_->MatrixLoadIdentityCHROMIUM(GL_PATH_PROJECTION_CHROMIUM);
3088 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected))); 3088 EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));
3089 } 3089 }
3090 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_ 3090 #endif // GPU_COMMAND_BUFFER_CLIENT_GLES2_IMPLEMENTATION_UNITTEST_AUTOGEN_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698