OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 // DO NOT EDIT! | 7 // DO NOT EDIT! |
8 | 8 |
9 // This file contains unit tests for gles2 commmands | 9 // This file contains unit tests for gles2 commmands |
10 // It is included by gles2_cmd_format_test.cc | 10 // It is included by gles2_cmd_format_test.cc |
(...skipping 4047 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4058 EXPECT_EQ(static_cast<uint32>(BindUniformLocationCHROMIUMBucket::kCmdId), | 4058 EXPECT_EQ(static_cast<uint32>(BindUniformLocationCHROMIUMBucket::kCmdId), |
4059 cmd.header.command); | 4059 cmd.header.command); |
4060 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4060 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
4061 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); | 4061 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); |
4062 EXPECT_EQ(static_cast<GLint>(12), cmd.location); | 4062 EXPECT_EQ(static_cast<GLint>(12), cmd.location); |
4063 EXPECT_EQ(static_cast<uint32>(13), cmd.name_bucket_id); | 4063 EXPECT_EQ(static_cast<uint32>(13), cmd.name_bucket_id); |
4064 CheckBytesWrittenMatchesExpectedSize( | 4064 CheckBytesWrittenMatchesExpectedSize( |
4065 next_cmd, sizeof(cmd)); | 4065 next_cmd, sizeof(cmd)); |
4066 } | 4066 } |
4067 | 4067 |
| 4068 TEST_F(GLES2FormatTest, TexImagePixmap2DCHROMIUM) { |
| 4069 TexImagePixmap2DCHROMIUM& cmd = *GetBufferAs<TexImagePixmap2DCHROMIUM>(); |
| 4070 void* next_cmd = cmd.Set( |
| 4071 &cmd, |
| 4072 static_cast<GLenum>(11), |
| 4073 static_cast<GLuint>(12)); |
| 4074 EXPECT_EQ(static_cast<uint32>(TexImagePixmap2DCHROMIUM::kCmdId), |
| 4075 cmd.header.command); |
| 4076 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
| 4077 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); |
| 4078 EXPECT_EQ(static_cast<GLuint>(12), cmd.pixmapId); |
| 4079 CheckBytesWrittenMatchesExpectedSize( |
| 4080 next_cmd, sizeof(cmd)); |
| 4081 } |
| 4082 |
4068 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 4083 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
4069 | 4084 |
OLD | NEW |