Commit f6514c66 authored by piman@chromium.org's avatar piman@chromium.org

Don't send the renderer flags that it doesn't use.

BUG=314909

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

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@233542 0039d316-1c4b-4281-b951-d872f2087c98
parent 2c09075b
...@@ -634,20 +634,12 @@ void GpuDataManagerImplPrivate::AppendRendererCommandLine( ...@@ -634,20 +634,12 @@ void GpuDataManagerImplPrivate::AppendRendererCommandLine(
DCHECK(command_line); DCHECK(command_line);
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL)) { if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL)) {
if (!command_line->HasSwitch(switches::kDisableExperimentalWebGL))
command_line->AppendSwitch(switches::kDisableExperimentalWebGL);
if (!command_line->HasSwitch(switches::kDisablePepper3d)) if (!command_line->HasSwitch(switches::kDisablePepper3d))
command_line->AppendSwitch(switches::kDisablePepper3d); command_line->AppendSwitch(switches::kDisablePepper3d);
} }
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_MULTISAMPLING) &&
!command_line->HasSwitch(switches::kDisableGLMultisampling))
command_line->AppendSwitch(switches::kDisableGLMultisampling);
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING) && if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_COMPOSITING) &&
!command_line->HasSwitch(switches::kDisableAcceleratedCompositing)) !command_line->HasSwitch(switches::kDisableAcceleratedCompositing))
command_line->AppendSwitch(switches::kDisableAcceleratedCompositing); command_line->AppendSwitch(switches::kDisableAcceleratedCompositing);
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_2D_CANVAS) &&
!command_line->HasSwitch(switches::kDisableAccelerated2dCanvas))
command_line->AppendSwitch(switches::kDisableAccelerated2dCanvas);
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) && if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_ACCELERATED_VIDEO_DECODE) &&
!command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode)) !command_line->HasSwitch(switches::kDisableAcceleratedVideoDecode))
command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode); command_line->AppendSwitch(switches::kDisableAcceleratedVideoDecode);
......
...@@ -902,7 +902,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer( ...@@ -902,7 +902,6 @@ void RenderProcessHostImpl::PropagateBrowserCommandLineToRenderer(
switches::kDisableFiltersOverIPC, switches::kDisableFiltersOverIPC,
switches::kDisableFullScreen, switches::kDisableFullScreen,
switches::kDisableGeolocation, switches::kDisableGeolocation,
switches::kDisableGLMultisampling,
switches::kDisableGpu, switches::kDisableGpu,
switches::kDisableGpuCompositing, switches::kDisableGpuCompositing,
switches::kDisableGpuVsync, switches::kDisableGpuVsync,
......
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