Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(335)

Unified Diff: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h

Issue 1534623002: Mac CoreAnimation: Add more CALayer parameters (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix windows compile Created 5 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
diff --git a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
index 939ea4e97ea48ff60ea3b37d5b6bcbfa588cc959..7afffa68895a5861b10b4c43b9bf5e8be22f55a9 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
@@ -4814,17 +4814,22 @@ TEST_F(GLES2FormatTest, ScheduleOverlayPlaneCHROMIUM) {
TEST_F(GLES2FormatTest, ScheduleCALayerCHROMIUM) {
cmds::ScheduleCALayerCHROMIUM& cmd =
*GetBufferAs<cmds::ScheduleCALayerCHROMIUM>();
- void* next_cmd = cmd.Set(&cmd, static_cast<GLuint>(11),
- static_cast<GLfloat>(12), static_cast<GLuint>(13),
- static_cast<GLuint>(14), static_cast<GLuint>(15));
+ void* next_cmd =
+ cmd.Set(&cmd, static_cast<GLuint>(11), static_cast<GLfloat>(12),
+ static_cast<GLuint>(13), static_cast<GLuint>(14),
+ static_cast<GLboolean>(15), static_cast<GLint>(16),
+ static_cast<GLuint>(17), static_cast<GLuint>(18));
EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleCALayerCHROMIUM::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<GLuint>(11), cmd.contents_texture_id);
EXPECT_EQ(static_cast<GLfloat>(12), cmd.opacity);
EXPECT_EQ(static_cast<GLuint>(13), cmd.background_color);
- EXPECT_EQ(static_cast<GLuint>(14), cmd.shm_id);
- EXPECT_EQ(static_cast<GLuint>(15), cmd.shm_offset);
+ EXPECT_EQ(static_cast<GLuint>(14), cmd.edge_aa_mask);
+ EXPECT_EQ(static_cast<GLboolean>(15), cmd.is_clipped);
+ EXPECT_EQ(static_cast<GLint>(16), cmd.sorting_context_id);
+ EXPECT_EQ(static_cast<GLuint>(17), cmd.shm_id);
+ EXPECT_EQ(static_cast<GLuint>(18), cmd.shm_offset);
CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
}

Powered by Google App Engine
This is Rietveld 408576698