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 4361 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4372 static_cast<GLenum>(12)); | 4372 static_cast<GLenum>(12)); |
4373 EXPECT_EQ(static_cast<uint32>(LoseContextCHROMIUM::kCmdId), | 4373 EXPECT_EQ(static_cast<uint32>(LoseContextCHROMIUM::kCmdId), |
4374 cmd.header.command); | 4374 cmd.header.command); |
4375 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4375 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
4376 EXPECT_EQ(static_cast<GLenum>(11), cmd.current); | 4376 EXPECT_EQ(static_cast<GLenum>(11), cmd.current); |
4377 EXPECT_EQ(static_cast<GLenum>(12), cmd.other); | 4377 EXPECT_EQ(static_cast<GLenum>(12), cmd.other); |
4378 CheckBytesWrittenMatchesExpectedSize( | 4378 CheckBytesWrittenMatchesExpectedSize( |
4379 next_cmd, sizeof(cmd)); | 4379 next_cmd, sizeof(cmd)); |
4380 } | 4380 } |
4381 | 4381 |
| 4382 TEST_F(GLES2FormatTest, WaitSyncPointCHROMIUM) { |
| 4383 WaitSyncPointCHROMIUM& cmd = *GetBufferAs<WaitSyncPointCHROMIUM>(); |
| 4384 void* next_cmd = cmd.Set( |
| 4385 &cmd, |
| 4386 static_cast<GLuint>(11)); |
| 4387 EXPECT_EQ(static_cast<uint32>(WaitSyncPointCHROMIUM::kCmdId), |
| 4388 cmd.header.command); |
| 4389 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
| 4390 EXPECT_EQ(static_cast<GLuint>(11), cmd.sync_point); |
| 4391 CheckBytesWrittenMatchesExpectedSize( |
| 4392 next_cmd, sizeof(cmd)); |
| 4393 } |
| 4394 |
4382 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 4395 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
4383 | 4396 |
OLD | NEW |