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

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

Issue 1513283002: Add support to send optimal format as part of ScheduleOverlayPlane (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Update cmd_buffer_functions 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..83e65c98ea79ef408d0d353b6b844abee1e6784f 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
@@ -4788,26 +4788,29 @@ TEST_F(GLES2FormatTest, DiscardBackbufferCHROMIUM) {
TEST_F(GLES2FormatTest, ScheduleOverlayPlaneCHROMIUM) {
cmds::ScheduleOverlayPlaneCHROMIUM& cmd =
*GetBufferAs<cmds::ScheduleOverlayPlaneCHROMIUM>();
- void* next_cmd = cmd.Set(&cmd, static_cast<GLint>(11),
- static_cast<GLenum>(12), static_cast<GLuint>(13),
- static_cast<GLint>(14), static_cast<GLint>(15),
- static_cast<GLint>(16), static_cast<GLint>(17),
- static_cast<GLfloat>(18), static_cast<GLfloat>(19),
- static_cast<GLfloat>(20), static_cast<GLfloat>(21));
+ void* next_cmd = cmd.Set(
+ &cmd, static_cast<GLint>(11), static_cast<GLenum>(12),
+ static_cast<GLuint>(13), static_cast<GLuint>(14), static_cast<GLint>(15),
+ static_cast<GLint>(16), static_cast<GLint>(17), static_cast<GLint>(18),
+ static_cast<GLfloat>(19), static_cast<GLfloat>(20),
+ static_cast<GLfloat>(21), static_cast<GLfloat>(22),
+ static_cast<GLboolean>(23));
EXPECT_EQ(static_cast<uint32_t>(cmds::ScheduleOverlayPlaneCHROMIUM::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<GLint>(11), cmd.plane_z_order);
EXPECT_EQ(static_cast<GLenum>(12), cmd.plane_transform);
- EXPECT_EQ(static_cast<GLuint>(13), cmd.overlay_texture_id);
- EXPECT_EQ(static_cast<GLint>(14), cmd.bounds_x);
- EXPECT_EQ(static_cast<GLint>(15), cmd.bounds_y);
- EXPECT_EQ(static_cast<GLint>(16), cmd.bounds_width);
- EXPECT_EQ(static_cast<GLint>(17), cmd.bounds_height);
- EXPECT_EQ(static_cast<GLfloat>(18), cmd.uv_x);
- EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_y);
- EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_width);
- EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_height);
+ EXPECT_EQ(static_cast<GLuint>(13), cmd.storage_format);
+ EXPECT_EQ(static_cast<GLuint>(14), cmd.overlay_texture_id);
+ EXPECT_EQ(static_cast<GLint>(15), cmd.bounds_x);
+ EXPECT_EQ(static_cast<GLint>(16), cmd.bounds_y);
+ EXPECT_EQ(static_cast<GLint>(17), cmd.bounds_width);
+ EXPECT_EQ(static_cast<GLint>(18), cmd.bounds_height);
+ EXPECT_EQ(static_cast<GLfloat>(19), cmd.uv_x);
+ EXPECT_EQ(static_cast<GLfloat>(20), cmd.uv_y);
+ EXPECT_EQ(static_cast<GLfloat>(21), cmd.uv_width);
+ EXPECT_EQ(static_cast<GLfloat>(22), cmd.uv_height);
+ EXPECT_EQ(static_cast<GLboolean>(23), cmd.handle_scaling);
CheckBytesWrittenMatchesExpectedSize(next_cmd, sizeof(cmd));
}

Powered by Google App Engine
This is Rietveld 408576698