Index: ui/gl/gl_surface_egl.cc |
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc |
index 2fe371092c6f45591e5c0b16029e5b116f491a0b..e9a9618ed6143417e98efdbb6eab985e9ad51e3a 100644 |
--- a/ui/gl/gl_surface_egl.cc |
+++ b/ui/gl/gl_surface_egl.cc |
@@ -200,12 +200,13 @@ bool NativeViewGLSurfaceEGL::Initialize() { |
}; |
// Create a surface for the native window. |
- surface_ = eglCreateWindowSurface(GetDisplay(), |
- GetConfig(), |
- window_, |
- gfx::g_EGL_NV_post_sub_buffer ? |
- egl_window_attributes_sub_buffer : |
- NULL); |
+ surface_ = eglCreateWindowSurface( |
+ GetDisplay(), |
+ GetConfig(), |
+ window_, |
+ gfx::g_driver_egl.ext.b_EGL_NV_post_sub_buffer ? |
+ egl_window_attributes_sub_buffer : |
+ NULL); |
if (!surface_) { |
LOG(ERROR) << "eglCreateWindowSurface failed with error " |
@@ -490,10 +491,10 @@ void* PbufferGLSurfaceEGL::GetShareHandle() { |
NOTREACHED(); |
return NULL; |
#else |
- if (!g_EGL_ANGLE_query_surface_pointer) |
+ if (!gfx::g_driver_egl.ext.b_EGL_ANGLE_query_surface_pointer) |
return NULL; |
- if (!g_EGL_ANGLE_surface_d3d_texture_2d_share_handle) |
+ if (!gfx::g_driver_egl.ext.b_EGL_ANGLE_surface_d3d_texture_2d_share_handle) |
return NULL; |
void* handle; |