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 4300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4311 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); | 4311 EXPECT_EQ(static_cast<GLsizei>(15), cmd.height); |
4312 EXPECT_EQ(static_cast<GLint>(16), cmd.border); | 4312 EXPECT_EQ(static_cast<GLint>(16), cmd.border); |
4313 EXPECT_EQ(static_cast<GLenum>(17), cmd.format); | 4313 EXPECT_EQ(static_cast<GLenum>(17), cmd.format); |
4314 EXPECT_EQ(static_cast<GLenum>(18), cmd.type); | 4314 EXPECT_EQ(static_cast<GLenum>(18), cmd.type); |
4315 EXPECT_EQ(static_cast<uint32>(19), cmd.pixels_shm_id); | 4315 EXPECT_EQ(static_cast<uint32>(19), cmd.pixels_shm_id); |
4316 EXPECT_EQ(static_cast<uint32>(20), cmd.pixels_shm_offset); | 4316 EXPECT_EQ(static_cast<uint32>(20), cmd.pixels_shm_offset); |
4317 CheckBytesWrittenMatchesExpectedSize( | 4317 CheckBytesWrittenMatchesExpectedSize( |
4318 next_cmd, sizeof(cmd)); | 4318 next_cmd, sizeof(cmd)); |
4319 } | 4319 } |
4320 | 4320 |
| 4321 TEST_F(GLES2FormatTest, WaitAsyncTexImage2DCHROMIUM) { |
| 4322 WaitAsyncTexImage2DCHROMIUM& cmd = |
| 4323 *GetBufferAs<WaitAsyncTexImage2DCHROMIUM>(); |
| 4324 void* next_cmd = cmd.Set( |
| 4325 &cmd, |
| 4326 static_cast<GLenum>(11)); |
| 4327 EXPECT_EQ(static_cast<uint32>(WaitAsyncTexImage2DCHROMIUM::kCmdId), |
| 4328 cmd.header.command); |
| 4329 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
| 4330 EXPECT_EQ(static_cast<GLenum>(11), cmd.target); |
| 4331 CheckBytesWrittenMatchesExpectedSize( |
| 4332 next_cmd, sizeof(cmd)); |
| 4333 } |
| 4334 |
4321 TEST_F(GLES2FormatTest, DiscardFramebufferEXT) { | 4335 TEST_F(GLES2FormatTest, DiscardFramebufferEXT) { |
4322 DiscardFramebufferEXT& cmd = *GetBufferAs<DiscardFramebufferEXT>(); | 4336 DiscardFramebufferEXT& cmd = *GetBufferAs<DiscardFramebufferEXT>(); |
4323 void* next_cmd = cmd.Set( | 4337 void* next_cmd = cmd.Set( |
4324 &cmd, | 4338 &cmd, |
4325 static_cast<GLenum>(11), | 4339 static_cast<GLenum>(11), |
4326 static_cast<GLsizei>(12), | 4340 static_cast<GLsizei>(12), |
4327 static_cast<uint32>(13), | 4341 static_cast<uint32>(13), |
4328 static_cast<uint32>(14)); | 4342 static_cast<uint32>(14)); |
4329 EXPECT_EQ(static_cast<uint32>(DiscardFramebufferEXT::kCmdId), | 4343 EXPECT_EQ(static_cast<uint32>(DiscardFramebufferEXT::kCmdId), |
4330 cmd.header.command); | 4344 cmd.header.command); |
(...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4387 EXPECT_EQ(static_cast<uint32>(WaitSyncPointCHROMIUM::kCmdId), | 4401 EXPECT_EQ(static_cast<uint32>(WaitSyncPointCHROMIUM::kCmdId), |
4388 cmd.header.command); | 4402 cmd.header.command); |
4389 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4403 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
4390 EXPECT_EQ(static_cast<GLuint>(11), cmd.sync_point); | 4404 EXPECT_EQ(static_cast<GLuint>(11), cmd.sync_point); |
4391 CheckBytesWrittenMatchesExpectedSize( | 4405 CheckBytesWrittenMatchesExpectedSize( |
4392 next_cmd, sizeof(cmd)); | 4406 next_cmd, sizeof(cmd)); |
4393 } | 4407 } |
4394 | 4408 |
4395 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 4409 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
4396 | 4410 |
OLD | NEW |