Commit becb501a authored by skyostil@chromium.org's avatar skyostil@chromium.org

Android: Pass --disable-webgl flag to renderer when needed

Clean up a stray #ifdef that prevented the --disable-webgl flag from
getting passed to the renderer when WebGL is blacklisted. Note that the
blacklist was already correctly disabling WebGL even before this patch
via GpuDataManagerImplPrivate::UpdateRendererWebPrefs().

BUG=112928

Review URL: https://chromiumcodereview.appspot.com/21877004

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215920 0039d316-1c4b-4281-b951-d872f2087c98
parent be979249
......@@ -637,10 +637,8 @@ void GpuDataManagerImplPrivate::AppendRendererCommandLine(
DCHECK(command_line);
if (IsFeatureBlacklisted(gpu::GPU_FEATURE_TYPE_WEBGL)) {
#if !defined(OS_ANDROID)
if (!command_line->HasSwitch(switches::kDisableExperimentalWebGL))
command_line->AppendSwitch(switches::kDisableExperimentalWebGL);
#endif
if (!command_line->HasSwitch(switches::kDisablePepper3d))
command_line->AppendSwitch(switches::kDisablePepper3d);
}
......
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