Commit dd49d9c1 authored by oetuaho@nvidia.com's avatar oetuaho@nvidia.com

Disable surfaceless EGL on Android

There are outstanding bugs related to how Android code meant for WebView
is interacting with surfaceless EGL. These cause crashing on startup
and incorrect rendering on platforms that support surfaceless EGL. Work
around the issues by disabling surfaceless EGL on Android to unblock work
before a more complete solution can be developed.

BUG=382349

Review URL: https://codereview.chromium.org/330453003

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@276713 0039d316-1c4b-4281-b951-d872f2087c98
parent f3a95312
......@@ -169,6 +169,13 @@ bool GLSurfaceEGL::InitializeOneOff() {
g_egl_window_fixed_size_supported =
HasEGLExtension("EGL_ANGLE_window_fixed_size");
// TODO(oetuaho@nvidia.com): Surfaceless is disabled on Android as a temporary
// workaround, since code written for Android WebView takes different paths
// based on whether GL surface objects have underlying EGL surface handles,
// conflicting with the use of surfaceless. See https://crbug.com/382349
#if defined(OS_ANDROID)
DCHECK(!g_egl_surfaceless_context_supported);
#else
// Check if SurfacelessEGL is supported.
g_egl_surfaceless_context_supported =
HasEGLExtension("EGL_KHR_surfaceless_context");
......@@ -189,6 +196,7 @@ bool GLSurfaceEGL::InitializeOneOff() {
context->ReleaseCurrent(surface.get());
}
}
#endif
initialized = true;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment