| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index 79b8c163911d1ac834dd48042b486cf20e3988bb..4318d13bccd8d4b6752557a4bb21ed3fafceecdc 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -397,8 +397,8 @@ bool GLSurfaceEGL::InitializeOneOff() {
|
| g_use_direct_composition =
|
| HasEGLExtension("EGL_ANGLE_direct_composition") &&
|
| HasEGLExtension("EGL_ANGLE_flexible_surface_compatibility") &&
|
| - base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| - switches::kUseDirectComposition);
|
| + !base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDisableDirectComposition);
|
|
|
| // TODO(oetuaho@nvidia.com): Surfaceless is disabled on Android as a temporary
|
| // workaround, since code written for Android WebView takes different paths
|
|
|