Index: ui/gl/gl_surface_egl.cc |
diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc |
index 0bce1d00911a2be32ed9ca1f70446fe8468112c5..ab258625a0417e09f34b1583cc63a69ec602fd8a 100644 |
--- a/ui/gl/gl_surface_egl.cc |
+++ b/ui/gl/gl_surface_egl.cc |
@@ -126,8 +126,6 @@ |
const char* g_egl_extensions = nullptr; |
bool g_egl_create_context_robustness_supported = false; |
-bool g_egl_create_context_bind_generates_resource_supported = false; |
-bool g_egl_create_context_webgl_compatability_supported = false; |
bool g_egl_sync_control_supported = false; |
bool g_egl_window_fixed_size_supported = false; |
bool g_egl_surfaceless_context_supported = false; |
@@ -480,10 +478,6 @@ |
g_egl_extensions = eglQueryString(g_display, EGL_EXTENSIONS); |
g_egl_create_context_robustness_supported = |
HasEGLExtension("EGL_EXT_create_context_robustness"); |
- g_egl_create_context_bind_generates_resource_supported = |
- HasEGLExtension("EGL_CHROMIUM_create_context_bind_generates_resource"); |
- g_egl_create_context_webgl_compatability_supported = |
- HasEGLExtension("EGL_ANGLE_create_context_webgl_compatibility"); |
g_egl_sync_control_supported = |
HasEGLExtension("EGL_CHROMIUM_sync_control"); |
g_egl_window_fixed_size_supported = |
@@ -515,7 +509,7 @@ |
// to query for supported GL extensions. |
scoped_refptr<GLSurface> surface = new SurfacelessEGL(gfx::Size(1, 1)); |
scoped_refptr<GLContext> context = InitializeGLContext( |
- new GLContextEGL(nullptr), surface.get(), GLContextAttribs()); |
+ new GLContextEGL(nullptr), surface.get(), PreferIntegratedGpu); |
if (!context->MakeCurrent(surface.get())) |
g_egl_surfaceless_context_supported = false; |
@@ -540,8 +534,6 @@ |
g_egl_extensions = nullptr; |
g_egl_create_context_robustness_supported = false; |
- g_egl_create_context_bind_generates_resource_supported = false; |
- g_egl_create_context_webgl_compatability_supported = false; |
g_egl_sync_control_supported = false; |
g_egl_window_fixed_size_supported = false; |
g_egl_surface_orientation_supported = false; |
@@ -574,14 +566,6 @@ |
// static |
bool GLSurfaceEGL::IsCreateContextRobustnessSupported() { |
return g_egl_create_context_robustness_supported; |
-} |
- |
-bool GLSurfaceEGL::IsCreateContextBindGeneratesResourceSupported() { |
- return g_egl_create_context_bind_generates_resource_supported; |
-} |
- |
-bool GLSurfaceEGL::IsCreateContextWebGLCompatabilitySupported() { |
- return g_egl_create_context_webgl_compatability_supported; |
} |
// static |