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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 792623002: egl: Don't query EGL_POST_SUB_BUFFER_SUPPORTED_NV without extension (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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_surface_egl.cc
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
index 3a453b6e20fdf19816f6bfea3e8ff63516221262..4018834de17de1831e9b064bbc5cb3de646d8a9d 100644
--- a/ui/gl/gl_surface_egl.cc
+++ b/ui/gl/gl_surface_egl.cc
@@ -395,12 +395,12 @@ bool NativeViewGLSurfaceEGL::Initialize(
return false;
}
- EGLint surfaceVal;
- EGLBoolean retVal = eglQuerySurface(GetDisplay(),
- surface_,
- EGL_POST_SUB_BUFFER_SUPPORTED_NV,
- &surfaceVal);
- supports_post_sub_buffer_ = (surfaceVal && retVal) == EGL_TRUE;
+ if (gfx::g_driver_egl.ext.b_EGL_NV_post_sub_buffer) {
+ EGLint surfaceVal;
+ EGLBoolean retVal = eglQuerySurface(
+ GetDisplay(), surface_, EGL_POST_SUB_BUFFER_SUPPORTED_NV, &surfaceVal);
+ supports_post_sub_buffer_ = (surfaceVal && retVal) == EGL_TRUE;
+ }
if (sync_provider)
vsync_provider_.reset(sync_provider.release());
« 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