Chromium Code Reviews

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

Issue 660229: "/b/slave/chromium-rel-linux/build/src/gpu/command_buffer/client/gles2_demo_c... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 10 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
===================================================================
--- gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (revision 40197)
+++ gpu/command_buffer/common/gles2_cmd_format_test_autogen.h (working copy)
@@ -1284,14 +1284,22 @@
void* next_cmd = cmd.Set(
&cmd,
static_cast<GLuint>(11),
- static_cast<uint32>(12));
+ static_cast<GLsizei>(12),
+ static_cast<uint32>(13),
+ static_cast<uint32>(14),
+ static_cast<uint32>(15),
+ static_cast<uint32>(16));
EXPECT_EQ(static_cast<uint32>(GetProgramInfoLog::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<char*>(next_cmd),
reinterpret_cast<char*>(&cmd) + sizeof(cmd));
EXPECT_EQ(static_cast<GLuint>(11), cmd.program);
- EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
+ EXPECT_EQ(static_cast<GLsizei>(12), cmd.bufsize);
+ EXPECT_EQ(static_cast<uint32>(13), cmd.length_shm_id);
+ EXPECT_EQ(static_cast<uint32>(14), cmd.length_shm_offset);
+ EXPECT_EQ(static_cast<uint32>(15), cmd.infolog_shm_id);
+ EXPECT_EQ(static_cast<uint32>(16), cmd.infolog_shm_offset);
}
TEST(GLES2FormatTest, GetRenderbufferParameteriv) {
@@ -1337,14 +1345,22 @@
void* next_cmd = cmd.Set(
&cmd,
static_cast<GLuint>(11),
- static_cast<uint32>(12));
+ static_cast<GLsizei>(12),
+ static_cast<uint32>(13),
+ static_cast<uint32>(14),
+ static_cast<uint32>(15),
+ static_cast<uint32>(16));
EXPECT_EQ(static_cast<uint32>(GetShaderInfoLog::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<char*>(next_cmd),
reinterpret_cast<char*>(&cmd) + sizeof(cmd));
EXPECT_EQ(static_cast<GLuint>(11), cmd.shader);
- EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
+ EXPECT_EQ(static_cast<GLsizei>(12), cmd.bufsize);
+ EXPECT_EQ(static_cast<uint32>(13), cmd.length_shm_id);
+ EXPECT_EQ(static_cast<uint32>(14), cmd.length_shm_offset);
+ EXPECT_EQ(static_cast<uint32>(15), cmd.infolog_shm_id);
+ EXPECT_EQ(static_cast<uint32>(16), cmd.infolog_shm_offset);
}
TEST(GLES2FormatTest, GetShaderPrecisionFormat) {
@@ -1371,29 +1387,35 @@
void* next_cmd = cmd.Set(
&cmd,
static_cast<GLuint>(11),
- static_cast<uint32>(12));
+ static_cast<GLsizei>(12),
+ static_cast<uint32>(13),
+ static_cast<uint32>(14),
+ static_cast<uint32>(15),
+ static_cast<uint32>(16));
EXPECT_EQ(static_cast<uint32>(GetShaderSource::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<char*>(next_cmd),
reinterpret_cast<char*>(&cmd) + sizeof(cmd));
EXPECT_EQ(static_cast<GLuint>(11), cmd.shader);
- EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
+ EXPECT_EQ(static_cast<GLsizei>(12), cmd.bufsize);
+ EXPECT_EQ(static_cast<uint32>(13), cmd.length_shm_id);
+ EXPECT_EQ(static_cast<uint32>(14), cmd.length_shm_offset);
+ EXPECT_EQ(static_cast<uint32>(15), cmd.source_shm_id);
+ EXPECT_EQ(static_cast<uint32>(16), cmd.source_shm_offset);
}
TEST(GLES2FormatTest, GetString) {
GetString cmd = { { 0 } };
void* next_cmd = cmd.Set(
&cmd,
- static_cast<GLenum>(11),
- static_cast<uint32>(12));
+ static_cast<GLenum>(11));
EXPECT_EQ(static_cast<uint32>(GetString::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<char*>(next_cmd),
reinterpret_cast<char*>(&cmd) + sizeof(cmd));
EXPECT_EQ(static_cast<GLenum>(11), cmd.name);
- EXPECT_EQ(static_cast<uint32>(12), cmd.bucket_id);
}
TEST(GLES2FormatTest, GetTexParameterfv) {
« no previous file with comments | « gpu/command_buffer/common/gles2_cmd_format_autogen.h ('k') | gpu/command_buffer/common/gles2_cmd_utils.h » ('j') | no next file with comments »

Powered by Google App Engine