OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 3560 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
3571 cmd.header.command); | 3571 cmd.header.command); |
3572 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 3572 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
3573 EXPECT_EQ(static_cast<GLint>(11), cmd.x); | 3573 EXPECT_EQ(static_cast<GLint>(11), cmd.x); |
3574 EXPECT_EQ(static_cast<GLint>(12), cmd.y); | 3574 EXPECT_EQ(static_cast<GLint>(12), cmd.y); |
3575 EXPECT_EQ(static_cast<GLint>(13), cmd.width); | 3575 EXPECT_EQ(static_cast<GLint>(13), cmd.width); |
3576 EXPECT_EQ(static_cast<GLint>(14), cmd.height); | 3576 EXPECT_EQ(static_cast<GLint>(14), cmd.height); |
3577 CheckBytesWrittenMatchesExpectedSize( | 3577 CheckBytesWrittenMatchesExpectedSize( |
3578 next_cmd, sizeof(cmd)); | 3578 next_cmd, sizeof(cmd)); |
3579 } | 3579 } |
3580 | 3580 |
| 3581 TEST_F(GLES2FormatTest, TexImageIOSurface2DCHROMIUM) { |
| 3582 TexImageIOSurface2DCHROMIUM& cmd = |
| 3583 *GetBufferAs<TexImageIOSurface2DCHROMIUM>(); |
| 3584 void* next_cmd = cmd.Set( |
| 3585 &cmd, |
| 3586 static_cast<GLenum>(11), |
| 3587 static_cast<GLsizei>(12), |
| 3588 static_cast<GLsizei>(13), |
| 3589 static_cast<GLuint>(14), |
| 3590 static_cast<GLuint>(15)); |
| 3591 EXPECT_EQ(static_cast<uint32>(TexImageIOSurface2DCHROMIUM::kCmdId), |
| 3592 cmd.header.command); |
| 3593 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
| 3594 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); |
| 3595 EXPECT_EQ(static_cast<GLsizei>(12), cmd.width); |
| 3596 EXPECT_EQ(static_cast<GLsizei>(13), cmd.height); |
| 3597 EXPECT_EQ(static_cast<GLuint>(14), cmd.ioSurfaceId); |
| 3598 EXPECT_EQ(static_cast<GLuint>(15), cmd.plane); |
| 3599 CheckBytesWrittenMatchesExpectedSize( |
| 3600 next_cmd, sizeof(cmd)); |
| 3601 } |
| 3602 |
3581 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 3603 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
3582 | 3604 |
OLD | NEW |