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

Unified Diff: ui/gl/gl_fence_egl.cc

Issue 492513002: gpu: Handle EGL_KHR_fence_sync test failure (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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_egl.cc
diff --git a/ui/gl/gl_fence_egl.cc b/ui/gl/gl_fence_egl.cc
index 71d3103311b794d7c95fae977e1780e541184bfe..458360b71f150735a9a70f6b3d38b8aee41de227 100644
--- a/ui/gl/gl_fence_egl.cc
+++ b/ui/gl/gl_fence_egl.cc
@@ -22,7 +22,11 @@ GLFenceEGL::GLFenceEGL(bool flush) {
bool GLFenceEGL::HasCompleted() {
EGLint value = 0;
- eglGetSyncAttribKHR(display_, sync_, EGL_SYNC_STATUS_KHR, &value);
+ if (eglGetSyncAttribKHR(display_, sync_, EGL_SYNC_STATUS_KHR, &value) !=
+ EGL_TRUE) {
+ return true;
+ }
+
DCHECK(value == EGL_SIGNALED_KHR || value == EGL_UNSIGNALED_KHR);
return !value || value == EGL_SIGNALED_KHR;
}
« 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