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

Unified Diff: ui/gl/gl_surface_egl.cc

Issue 18501018: Enable ANGLE D3D11 runtime for Windows 7+. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 5 months 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
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

Powered by Google App Engine
This is Rietveld 408576698