Commit 4d751298 authored by junov@chromium.org's avatar junov@chromium.org

Revert "Remove the enable-d3d11 flag so that d3d11 is enabled by default."

Holding off on this change until after the m35 branch.

This reverts commit 31b59d61.

BUG=258676
R=kbr@chromium.org, piman@chromium.org, zmo@chromium.org

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@260261 0039d316-1c4b-4281-b951-d872f2087c98
parent a6e3e734
......@@ -6148,6 +6148,12 @@ Keep your key file in a safe place. You will need it to create new versions of y
<message name="IDS_FLAGS_ENABLE_WEBGL_DESCRIPTION" desc="Description for the flag to enable WebGL.">
Enabling this option allows web applications to access the WebGL API.
</message>
<message name="IDS_FLAGS_ENABLE_D3D11_NAME" desc="Name of the 'Enable D3D11' lab.">
Enable D3D11
</message>
<message name="IDS_FLAGS_ENABLE_D3D11_DESCRIPTION" desc="Description for the flag to enable D3D11.">
Enabling this option allows the use of Direct3D 11 on configurations that support it.
</message>
<message name="IDS_FLAGS_ENABLE_WEBGL_DRAFT_EXTENSIONS_NAME" desc="Name of the 'Enable WebGL Draft Extensions' flag.">
Enable WebGL Draft Extensions
</message>
......
......@@ -528,6 +528,13 @@ const Experiment kExperiments[] = {
kOsAll,
SINGLE_VALUE_TYPE(switches::kDisableExperimentalWebGL)
},
{
"enable-d3d11",
IDS_FLAGS_ENABLE_D3D11_NAME,
IDS_FLAGS_ENABLE_D3D11_DESCRIPTION,
kOsWin,
SINGLE_VALUE_TYPE(switches::kEnableD3D11)
},
{
"disable-webrtc",
IDS_FLAGS_DISABLE_WEBRTC_NAME,
......
......@@ -41,7 +41,7 @@
"timeout": 30
}
],
"revision": 3,
"revision": 4,
"test_rect": [0, 0, 400, 300]
}
]
......
......@@ -295,7 +295,8 @@ scoped_refptr<GLSurface> GLSurface::CreateOffscreenGLSurface(
}
EGLNativeDisplayType GetPlatformDefaultEGLNativeDisplay() {
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11))
if (!CommandLine::ForCurrentProcess()->HasSwitch(switches::kDisableD3D11) &&
CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableD3D11))
return EGL_D3D11_ELSE_D3D9_DISPLAY_ANGLE;
return EGL_DEFAULT_DISPLAY;
......
......@@ -18,6 +18,9 @@ const char kGLImplementationMockName[] = "mock";
namespace switches {
// Enables use of D3D11 when available.
const char kEnableD3D11[] = "enable-d3d11";
// Disables use of D3D11.
const char kDisableD3D11[] = "disable-d3d11";
......@@ -72,6 +75,7 @@ const char kUseGpuInTests[] = "use-gpu-in-tests";
// to read it in the GPU process, else don't add it.
const char* kGLSwitchesCopiedFromGpuProcessHost[] = {
kDisableGpuVsync,
kEnableD3D11,
kDisableD3D11,
kEnableGPUServiceLogging,
kEnableGPUServiceTracing,
......
......@@ -23,6 +23,7 @@ extern const char kGLImplementationMockName[];
namespace switches {
GL_EXPORT extern const char kEnableD3D11[];
GL_EXPORT extern const char kDisableD3D11[];
GL_EXPORT extern const char kDisableGpuVsync[];
GL_EXPORT extern const char kEnableGPUServiceLogging[];
......
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