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

Unified Diff: ui/gl/gl_fence.cc

Issue 285523002: Prefer GL_ARB_sync/ES3 fences (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 years, 7 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 | « gpu/config/gpu_driver_bug_list_json.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/gl/gl_fence.cc
diff --git a/ui/gl/gl_fence.cc b/ui/gl/gl_fence.cc
index def030b5defcdc6b0c64838aa4bb7798a5f9e12e..073e6eea31465443db2bb2fad5b70b01a41378c2 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -161,14 +161,14 @@ gfx::GLFence* CreateFence(bool flush) {
DCHECK(gfx::GLContext::GetCurrent())
<< "Trying to create fence with no context";
-#if !defined(OS_MACOSX)
- if (gfx::g_driver_egl.ext.b_EGL_KHR_fence_sync)
- return new EGLFenceSync(flush);
-#endif
// Prefer ARB_sync which supports server-side wait.
if (gfx::g_driver_gl.ext.b_GL_ARB_sync ||
gfx::GLContext::GetCurrent()->GetVersionInfo()->is_es3)
return new GLFenceARBSync(flush);
+#if !defined(OS_MACOSX)
+ if (gfx::g_driver_egl.ext.b_EGL_KHR_fence_sync)
+ return new EGLFenceSync(flush);
+#endif
if (gfx::g_driver_gl.ext.b_GL_NV_fence)
return new GLFenceNVFence(flush);
return NULL;
« no previous file with comments | « gpu/config/gpu_driver_bug_list_json.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698