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