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

Unified Diff: gpu/command_buffer/client/gles2_implementation.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.cc
diff --git a/gpu/command_buffer/client/gles2_implementation.cc b/gpu/command_buffer/client/gles2_implementation.cc
index 587a5db07d5513758a194ac285f3bd7f0a1d1620..d5a05e9a21202d0027e64f0379684891fdbde838 100644
--- a/gpu/command_buffer/client/gles2_implementation.cc
+++ b/gpu/command_buffer/client/gles2_implementation.cc
@@ -5937,11 +5937,8 @@ GLenum GLES2Implementation::ClientWaitSync(
return GL_WAIT_FAILED;
}
*result = GL_WAIT_FAILED;
- uint32_t v32_0 = 0, v32_1 = 0;
- GLES2Util::MapUint64ToTwoUint32(timeout, &v32_0, &v32_1);
helper_->ClientWaitSync(
- ToGLuint(sync), flags, v32_0, v32_1,
- GetResultShmId(), GetResultShmOffset());
+ ToGLuint(sync), flags, timeout, GetResultShmId(), GetResultShmOffset());
WaitForCmd();
GPU_CLIENT_LOG("returned " << *result);
CheckGLError();
@@ -5953,9 +5950,7 @@ void GLES2Implementation::WaitSync(
GPU_CLIENT_SINGLE_THREAD_CHECK();
GPU_CLIENT_LOG("[" << GetLogPrefix() << "] glWaitSync(" << sync << ", "
<< flags << ", " << timeout << ")");
- uint32_t v32_0 = 0, v32_1 = 0;
- GLES2Util::MapUint64ToTwoUint32(timeout, &v32_0, &v32_1);
- helper_->WaitSync(ToGLuint(sync), flags, v32_0, v32_1);
+ helper_->WaitSync(ToGLuint(sync), flags, timeout);
CheckGLError();
}

Powered by Google App Engine
This is Rietveld 408576698