diff options
author | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-08 08:50:24 +0000 |
---|---|---|
committer | vangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-01-08 08:50:24 +0000 |
commit | e38b0052ba68c2b44e8dbeb5a0cc16ea4be78974 (patch) | |
tree | b6f4c16b72b571e508aefae50842c026e15ca83c /chrome/browser/tab_contents | |
parent | 73f092fa32cb7cbd88c8b8a206daa09754d253c2 (diff) | |
download | chromium_src-e38b0052ba68c2b44e8dbeb5a0cc16ea4be78974.zip chromium_src-e38b0052ba68c2b44e8dbeb5a0cc16ea4be78974.tar.gz chromium_src-e38b0052ba68c2b44e8dbeb5a0cc16ea4be78974.tar.bz2 |
Turn gpu acceleration of video (CSC and scaling) on by default. <video> elements will
now trigger the accelerated compositor even if --enable-accelerated-layers isn't specified.
A new flag (--disable-accelerated-video) is added to disable the feature.
BUG=68911
Review URL: http://codereview.chromium.org/6160004
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@70842 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r-- | chrome/browser/tab_contents/render_view_host_delegate_helper.cc | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc index 491e7f6..568ae4cf 100644 --- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc +++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc @@ -291,6 +291,8 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs( command_line.HasSwitch(switches::kEnableAccelerated2dCanvas); web_prefs.accelerated_layers_enabled = command_line.HasSwitch(switches::kEnableAcceleratedLayers); + web_prefs.accelerated_video_enabled = + !command_line.HasSwitch(switches::kDisableAcceleratedVideo); web_prefs.memory_info_enabled = command_line.HasSwitch(switches::kEnableMemoryInfo); web_prefs.hyperlink_auditing_enabled = |