summaryrefslogtreecommitdiffstats
path: root/chrome/browser/tab_contents
diff options
context:
space:
mode:
authorvangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 19:51:40 +0000
committervangelis@chromium.org <vangelis@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2010-06-02 19:51:40 +0000
commit7929669df6b5809741393490f259c5249c951ea7 (patch)
treeada5c06384f16b3f19e9df5590764d6b2bbf6be7 /chrome/browser/tab_contents
parentecb72800ed612c10991971bf6c2b7a64117c48a5 (diff)
downloadchromium_src-7929669df6b5809741393490f259c5249c951ea7.zip
chromium_src-7929669df6b5809741393490f259c5249c951ea7.tar.gz
chromium_src-7929669df6b5809741393490f259c5249c951ea7.tar.bz2
Adding command line flag for enabling accelerated compositing.
This CL cannot be checked in until the patch for: https://bugs.webkit.org/show_bug.cgi?id=39917 has landed. BUG=45373 Review URL: http://codereview.chromium.org/2330004 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@48754 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/tab_contents')
-rw-r--r--chrome/browser/tab_contents/render_view_host_delegate_helper.cc2
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 2d84d45..2d80f2aa 100644
--- a/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
+++ b/chrome/browser/tab_contents/render_view_host_delegate_helper.cc
@@ -240,6 +240,8 @@ WebPreferences RenderViewHostDelegateHelper::GetWebkitPrefs(
command_line.HasSwitch(switches::kAllowFileAccessFromFiles);
web_prefs.show_composited_layer_borders =
command_line.HasSwitch(switches::kShowCompositedLayerBorders);
+ web_prefs.accelerated_compositing_enabled =
+ command_line.HasSwitch(switches::kEnableAcceleratedCompositing);
// The user stylesheet watcher may not exist in a testing profile.
if (profile->GetUserStyleSheetWatcher()) {
web_prefs.user_style_sheet_enabled = true;