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

Unified Diff: mojo/gpu/mojo_gles2_impl_autogen.cc

Issue 1331843005: Implemented new fence syncs which replaces the old sync points. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Reverted mojo readme, changed wait() to take a pointer Created 5 years, 2 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
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/gpu/mojo_gles2_impl_autogen.cc
diff --git a/mojo/gpu/mojo_gles2_impl_autogen.cc b/mojo/gpu/mojo_gles2_impl_autogen.cc
index 5237b6663c56f85d73d5651ecd33e71b7afc9692..f256ba0cfeae829baf24b1dbba2d1d2f3a966b63 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1657,6 +1657,19 @@ void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) {
MojoGLES2MakeCurrent(context_);
glWaitSyncPointCHROMIUM(sync_point);
}
+GLuint64 MojoGLES2Impl::InsertFenceSyncCHROMIUM() {
+ MojoGLES2MakeCurrent(context_);
+ return glInsertFenceSyncCHROMIUM();
+}
+void MojoGLES2Impl::GenSyncTokenCHROMIUM(GLuint64 fence_sync,
+ GLbyte* sync_token) {
+ MojoGLES2MakeCurrent(context_);
+ glGenSyncTokenCHROMIUM(fence_sync, sync_token);
+}
+void MojoGLES2Impl::WaitSyncTokenCHROMIUM(const GLbyte* sync_token) {
+ MojoGLES2MakeCurrent(context_);
+ glWaitSyncTokenCHROMIUM(sync_token);
+}
void MojoGLES2Impl::DrawBuffersEXT(GLsizei count, const GLenum* bufs) {
MojoGLES2MakeCurrent(context_);
glDrawBuffersEXT(count, bufs);
« no previous file with comments | « mojo/gpu/mojo_gles2_impl_autogen.h ('k') | ppapi/proxy/ppapi_command_buffer_proxy.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698