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

Unified Diff: ui/gl/gl_fence.cc

Issue 195763015: gpu: Prefer GL_ARB_sync over GL_NV_fence. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | 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 1790f864415f12788297152e9c9645557b834cc5..f44570e2b6042911005dd202a9480322fe76cdf3 100644
--- a/ui/gl/gl_fence.cc
+++ b/ui/gl/gl_fence.cc
@@ -129,10 +129,11 @@ gfx::GLFence* CreateFence(bool flush) {
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);
+ // Prefer ARB_sync which supports server-side wait.
if (gfx::g_driver_gl.ext.b_GL_ARB_sync)
return new GLFenceARBSync(flush);
+ if (gfx::g_driver_gl.ext.b_GL_NV_fence)
+ return new GLFenceNVFence(flush);
return NULL;
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698