Index: ui/gl/gl_fence_egl.cc |
diff --git a/ui/gl/gl_fence_egl.cc b/ui/gl/gl_fence_egl.cc |
index ebc33bf9a95d63f9d41ef8f65c09879feab5d6df..2ff18fc8353a09ee4c4f86f3c0aad84d6f3e5bbf 100644 |
--- a/ui/gl/gl_fence_egl.cc |
+++ b/ui/gl/gl_fence_egl.cc |
@@ -42,6 +42,10 @@ void GLFenceEGL::ClientWait() { |
} |
void GLFenceEGL::ServerWait() { |
+ if (!gfx::g_driver_egl.ext.b_EGL_KHR_wait_sync) { |
+ ClientWait(); |
+ return; |
+ } |
if (!flush_event_.get() || flush_event_->IsSignaled()) { |
EGLint flags = 0; |
eglWaitSyncKHR(display_, sync_, flags); |