Index: ui/gl/gl_fence_egl.cc |
diff --git a/ui/gl/gl_fence_egl.cc b/ui/gl/gl_fence_egl.cc |
index 458360b71f150735a9a70f6b3d38b8aee41de227..ebc33bf9a95d63f9d41ef8f65c09879feab5d6df 100644 |
--- a/ui/gl/gl_fence_egl.cc |
+++ b/ui/gl/gl_fence_egl.cc |
@@ -32,7 +32,7 @@ bool GLFenceEGL::HasCompleted() { |
} |
void GLFenceEGL::ClientWait() { |
- if (!flush_event_ || flush_event_->IsSignaled()) { |
+ if (!flush_event_.get() || flush_event_->IsSignaled()) { |
EGLint flags = 0; |
EGLTimeKHR time = EGL_FOREVER_KHR; |
eglClientWaitSyncKHR(display_, sync_, flags, time); |
@@ -42,7 +42,7 @@ void GLFenceEGL::ClientWait() { |
} |
void GLFenceEGL::ServerWait() { |
- if (!flush_event_ || flush_event_->IsSignaled()) { |
+ if (!flush_event_.get() || flush_event_->IsSignaled()) { |
EGLint flags = 0; |
eglWaitSyncKHR(display_, sync_, flags); |
} else { |