OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 // It's formatted by clang-format using chromium coding style: | 7 // It's formatted by clang-format using chromium coding style: |
8 // clang-format -i -style=chromium filename | 8 // clang-format -i -style=chromium filename |
9 // DO NOT EDIT! | 9 // DO NOT EDIT! |
10 | 10 |
(...skipping 4796 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4807 EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x); | 4807 EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x); |
4808 EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y); | 4808 EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y); |
4809 EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width); | 4809 EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width); |
4810 EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height); | 4810 EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height); |
4811 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); | 4811 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
4812 } | 4812 } |
4813 | 4813 |
4814 TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) { | 4814 TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) { |
4815 cmds::ScheduleCALayerCHROMIUM& cmd = | 4815 cmds::ScheduleCALayerCHROMIUM& cmd = |
4816 *GetBufferAs<cmds::ScheduleCALayerCHROMIUM>(); | 4816 *GetBufferAs<cmds::ScheduleCALayerCHROMIUM>(); |
4817 void* next_cmd = cmd.Set(&cmd, static_cast<GLuint>(11), | 4817 void* next_cmd = |
4818 static_cast<GLfloat>(12), static_cast<GLuint>(13), | 4818 cmd.Set(&cmd, static_cast<GLuint>(11), static_cast<GLfloat>(12), |
4819 static_cast<GLuint>(14), static_cast<GLuint>(15)); | 4819 static_cast<GLuint>(13), static_cast<GLuint>(14), |
| 4820 static_cast<GLboolean>(15), static_cast<GLint>(16), |
| 4821 static_cast<GLuint>(17), static_cast<GLuint>(18)); |
4820 EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId), | 4822 EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId), |
4821 cmd.header.command); | 4823 cmd.header.command); |
4822 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4824 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
4823 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id); | 4825 EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id); |
4824 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity); | 4826 EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity); |
4825 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color); | 4827 EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color); |
4826 EXPECT_EQ(static_cast<GLuint>(14), cmd.shm_id); | 4828 EXPECT_EQ(static_cast<GLuint>(14), cmd.edge_aa_mask); |
4827 EXPECT_EQ(static_cast<GLuint>(15), cmd.shm_offset); | 4829 EXPECT_EQ(static_cast<GLboolean>(15), cmd.is_clipped); |
| 4830 EXPECT_EQ(static_cast<GLint>(16), cmd.sorting_context_id); |
| 4831 EXPECT_EQ(static_cast<GLuint>(17), cmd.shm_id); |
| 4832 EXPECT_EQ(static_cast<GLuint>(18), cmd.shm_offset); |
4828 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); | 4833 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
4829 } | 4834 } |
4830 | 4835 |
4831 TEST_F(GLES2FormatTest, CommitOverlayPlanesCHROMIUM) { | 4836 TEST_F(GLES2FormatTest, CommitOverlayPlanesCHROMIUM) { |
4832 cmds::CommitOverlayPlanesCHROMIUM& cmd = | 4837 cmds::CommitOverlayPlanesCHROMIUM& cmd = |
4833 *GetBufferAs<cmds::CommitOverlayPlanesCHROMIUM>(); | 4838 *GetBufferAs<cmds::CommitOverlayPlanesCHROMIUM>(); |
4834 void* next_cmd = cmd.Set(&cmd); | 4839 void* next_cmd = cmd.Set(&cmd); |
4835 EXPECT_EQ(static_cast<uint32_t>(cmds::CommitOverlayPlanesCHROMIUM::kCmdId), | 4840 EXPECT_EQ(static_cast<uint32_t>(cmds::CommitOverlayPlanesCHROMIUM::kCmdId), |
4836 cmd.header.command); | 4841 cmd.header.command); |
4837 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 4842 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
(...skipping 500 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
5338 cmd.header.command); | 5343 cmd.header.command); |
5339 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); | 5344 EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u); |
5340 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); | 5345 EXPECT_EQ(static_cast<GLuint>(11), cmd.program); |
5341 EXPECT_EQ(static_cast<uint32_t>(12), cmd.name_bucket_id); | 5346 EXPECT_EQ(static_cast<uint32_t>(12), cmd.name_bucket_id); |
5342 EXPECT_EQ(static_cast<uint32_t>(13), cmd.index_shm_id); | 5347 EXPECT_EQ(static_cast<uint32_t>(13), cmd.index_shm_id); |
5343 EXPECT_EQ(static_cast<uint32_t>(14), cmd.index_shm_offset); | 5348 EXPECT_EQ(static_cast<uint32_t>(14), cmd.index_shm_offset); |
5344 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); | 5349 CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd)); |
5345 } | 5350 } |
5346 | 5351 |
5347 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ | 5352 #endif // GPU_COMMAND_BUFFER_COMMON_GLES2_CMD_FORMAT_TEST_AUTOGEN_H_ |
OLD | NEW |