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

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

Issue 116863003: gpu: Reuse transfer buffers more aggresively (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: [WIP] gpu: Reuse transfer buffers more aggresively Created 6 years, 11 months 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 9672db4c7497ca2ceccf15188659390ad1e3f1b3..1a1dbe44fd709e5546b8019bbdf80c9dc9219e36 100644
--- a/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
+++ b/gpu/command_buffer/common/gles2_cmd_format_test_autogen.h
@@ -3436,14 +3436,16 @@ TEST_F(GLES2FormatTest, BeginQueryEXT) {
static_cast<GLenum>(11),
static_cast<GLuint>(12),
static_cast<uint32>(13),
- static_cast<uint32>(14));
+ static_cast<uint32>(14),
+ static_cast<uint32>(15));
EXPECT_EQ(static_cast<uint32>(cmds::BeginQueryEXT::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
EXPECT_EQ(static_cast<GLuint>(12), cmd.id);
- EXPECT_EQ(static_cast<uint32>(13), cmd.sync_data_shm_id);
- EXPECT_EQ(static_cast<uint32>(14), cmd.sync_data_shm_offset);
+ EXPECT_EQ(static_cast<uint32>(13), cmd.serial);
+ EXPECT_EQ(static_cast<uint32>(14), cmd.sync_data_shm_id);
+ EXPECT_EQ(static_cast<uint32>(15), cmd.sync_data_shm_offset);
CheckBytesWrittenMatchesExpectedSize(
next_cmd, sizeof(cmd));
}
@@ -3453,12 +3455,14 @@ TEST_F(GLES2FormatTest, EndQueryEXT) {
void* next_cmd = cmd.Set(
&cmd,
static_cast<GLenum>(11),
- static_cast<GLuint>(12));
+ static_cast<uint32>(12),
+ static_cast<GLuint>(13));
EXPECT_EQ(static_cast<uint32>(cmds::EndQueryEXT::kCmdId),
cmd.header.command);
EXPECT_EQ(sizeof(cmd), cmd.header.size * 4u);
EXPECT_EQ(static_cast<GLenum>(11), cmd.target);
- EXPECT_EQ(static_cast<GLuint>(12), cmd.submit_count);
+ EXPECT_EQ(static_cast<uint32>(12), cmd.serial);
+ EXPECT_EQ(static_cast<GLuint>(13), cmd.submit_count);
CheckBytesWrittenMatchesExpectedSize(
next_cmd, sizeof(cmd));
}

Powered by Google App Engine
This is Rietveld 408576698