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

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: Some fixes Created 5 years, 3 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: 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 55e8ba6f45492c6b16630307fdb2dc071fb7e30e..f701adb48bfdbfefc938475f334e5a54b4ee41b0 100644
--- a/mojo/gpu/mojo_gles2_impl_autogen.cc
+++ b/mojo/gpu/mojo_gles2_impl_autogen.cc
@@ -1621,6 +1621,19 @@ void MojoGLES2Impl::WaitSyncPointCHROMIUM(GLuint sync_point) {
MojoGLES2MakeCurrent(context_);
glWaitSyncPointCHROMIUM(sync_point);
}
+GLuint MojoGLES2Impl::InsertFenceSyncCHROMIUM() {
+ MojoGLES2MakeCurrent(context_);
+ return glInsertFenceSyncCHROMIUM();
+}
+void MojoGLES2Impl::GenSyncTokenCHROMIUM(GLuint 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) {
NOTREACHED() << "Unimplemented DrawBuffersEXT.";
}

Powered by Google App Engine
This is Rietveld 408576698