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

Unified Diff: gpu/command_buffer/client/gles2_implementation_unittest.cc

Issue 1528163002: Added 64 bit number support in the build gles2 command buffer script. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Modifyed glClientWaitSync and glWaitSync to use GLuint64 in command buffer 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/client/gles2_implementation_unittest.cc
diff --git a/gpu/command_buffer/client/gles2_implementation_unittest.cc b/gpu/command_buffer/client/gles2_implementation_unittest.cc
index 0d6c03e083dbf943bc5f4528bb06419f76c2a373..b3c29d043630b842794d9581de5ca80170d6e413 100644
--- a/gpu/command_buffer/client/gles2_implementation_unittest.cc
+++ b/gpu/command_buffer/client/gles2_implementation_unittest.cc
@@ -4007,10 +4007,8 @@ TEST_F(GLES2ImplementationTest, ClientWaitSync) {
ExpectedMemoryInfo result1 =
GetExpectedResultMemory(sizeof(cmds::ClientWaitSync::Result));
const GLuint64 kTimeout = 0xABCDEF0123456789;
- uint32_t v32_0 = 0, v32_1 = 0;
- GLES2Util::MapUint64ToTwoUint32(kTimeout, &v32_0, &v32_1);
expected.cmd.Init(client_sync_id, GL_SYNC_FLUSH_COMMANDS_BIT,
- v32_0, v32_1, result1.id, result1.offset);
+ kTimeout, result1.id, result1.offset);
EXPECT_CALL(*command_buffer(), OnFlush())
.WillOnce(SetMemory(result1.ptr, uint32_t(GL_CONDITION_SATISFIED)))
@@ -4030,9 +4028,7 @@ TEST_F(GLES2ImplementationTest, WaitSync) {
};
Cmds expected;
const GLuint64 kTimeout = GL_TIMEOUT_IGNORED;
- uint32_t v32_0 = 0, v32_1 = 0;
- GLES2Util::MapUint64ToTwoUint32(kTimeout, &v32_0, &v32_1);
- expected.cmd.Init(kClientSyncId, 0, v32_0, v32_1);
+ expected.cmd.Init(kClientSyncId, 0, kTimeout);
gl_->WaitSync(reinterpret_cast<GLsync>(kClientSyncId), 0, kTimeout);
EXPECT_EQ(0, memcmp(&expected, commands_, sizeof(expected)));

Powered by Google App Engine
This is Rietveld 408576698