| 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;
|
|
|