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 4348 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4359 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); | 4359 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); |
4360 EXPECT_EQ(static_cast<GLint>(16), cmd.border); | 4360 EXPECT_EQ(static_cast<GLint>(16), cmd.border); |
4361 EXPECT_EQ(static_cast<GLenum>(17), cmd.format); | 4361 EXPECT_EQ(static_cast<GLenum>(17), cmd.format); |
4362 EXPECT_EQ(static_cast<GLenum>(18), cmd.type); | 4362 EXPECT_EQ(static_cast<GLenum>(18), cmd.type); |
4363 EXPECT_EQ(static_cast<uint32>(19), cmd.pixels_shm_id); | 4363 EXPECT_EQ(static_cast<uint32>(19), cmd.pixels_shm_id); |
4364 EXPECT_EQ(static_cast<uint32>(20), cmd.pixels_shm_offset); | 4364 EXPECT_EQ(static_cast<uint32>(20), cmd.pixels_shm_offset); |
4365 CheckBytesWrittenMatchesExpectedSize( | 4365 CheckBytesWrittenMatchesExpectedSize( |
4366 next_cmd, sizeof(cmd)); | 4366 next_cmd, sizeof(cmd)); |
4367 } | 4367 } |
4368 | 4368 |
| 4369 TEST_F(GLES2FormatTest, WaitAsyncTexImage2DCHROMIUM) { |
| 4370 cmds::WaitAsyncTexImage2DCHROMIUM& cmd = |
| 4371 *GetBufferAs<cmds::WaitAsyncTexImage2DCHROMIUM>(); |
| 4372 void* next_cmd = cmd.Set( |
| 4373 &cmd, |
| 4374 static_cast<GLenum>(11)); |
| 4375 EXPECT_EQ(static_cast<uint32>(cmds::WaitAsyncTexImage2DCHROMIUM::kCmdId), |
| 4376 cmd.header.command); |
| 4377 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
| 4378 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); |
| 4379 CheckBytesWrittenMatchesExpectedSize( |
| 4380 next_cmd, sizeof(cmd)); |
| 4381 } |
| 4382 |
4369 TEST_F(GLES2FormatTest, DiscardFramebufferEXT) { | 4383 TEST_F(GLES2FormatTest, DiscardFramebufferEXT) { |
4370 cmds::DiscardFramebufferEXT& cmd = | 4384 cmds::DiscardFramebufferEXT& cmd = |
4371 *GetBufferAs<cmds::DiscardFramebufferEXT>(); | 4385 *GetBufferAs<cmds::DiscardFramebufferEXT>(); |
4372 void* next_cmd = cmd.Set( | 4386 void* next_cmd = cmd.Set( |
4373 &cmd, | 4387 &cmd, |
4374 static_cast<GLenum>(11), | 4388 static_cast<GLenum>(11), |
4375 static_cast<GLsizei>(12), | 4389 static_cast<GLsizei>(12), |
4376 static_cast<uint32>(13), | 4390 static_cast<uint32>(13), |
4377 static_cast<uint32>(14)); | 4391 static_cast<uint32>(14)); |
4378 EXPECT_EQ(static_cast<uint32>(cmds::DiscardFramebufferEXT::kCmdId), | 4392 EXPECT_EQ(static_cast<uint32>(cmds::DiscardFramebufferEXT::kCmdId), |
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4437 EXPECT_EQ(static_cast<uint32>(cmds::WaitSyncPointCHROMIUM::kCmdId), | 4451 EXPECT_EQ(static_cast<uint32>(cmds::WaitSyncPointCHROMIUM::kCmdId), |
4438 cmd.header.command); | 4452 cmd.header.command); |
4439 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4453 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
4440 EXPECT_EQ(static_cast<GLuint>(11), cmd.sync_point); | 4454 EXPECT_EQ(static_cast<GLuint>(11), cmd.sync_point); |
4441 CheckBytesWrittenMatchesExpectedSize( | 4455 CheckBytesWrittenMatchesExpectedSize( |
4442 next_cmd, sizeof(cmd)); | 4456 next_cmd, sizeof(cmd)); |
4443 } | 4457 } |
4444 | 4458 |
4445 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 4459 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
4446 | 4460 |
OLD | NEW |