| Index: ui/gl/gl_surface_egl.cc
|
| diff --git a/ui/gl/gl_surface_egl.cc b/ui/gl/gl_surface_egl.cc
|
| index 2a75fb6ed8ab0541af1787fe579e3a098a32e681..18e54063e9497c07d227e59e22d1091e5244fad0 100644
|
| --- a/ui/gl/gl_surface_egl.cc
|
| +++ b/ui/gl/gl_surface_egl.cc
|
| @@ -108,8 +108,10 @@ bool GLSurfaceEGL::InitializeOneOff() {
|
| g_native_display = base::MessagePumpForUI::GetDefaultXDisplay();
|
| #elif defined(OS_WIN)
|
| g_native_display = EGL_DEFAULT_DISPLAY;
|
| - if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableD3D11))
|
| + if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11) ||
|
| + CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableD3D11)) {
|
| g_native_display = EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE;
|
| + }
|
| #else
|
| g_native_display = EGL_DEFAULT_DISPLAY;
|
| #endif
|
|
|