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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 2497503004: Revert of Refactor context creation parameters into a struct. (Closed)
Patch Set: Created 4 years, 1 month 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 | « ui/gl/gl_surface_egl.h ('k') | ui/gl/init/gl_factory.h » ('j') | 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 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
« no previous file with comments | « ui/gl/gl_surface_egl.h ('k') | ui/gl/init/gl_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698