diff options
author | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 17:33:45 +0000 |
---|---|---|
committer | jbauman@chromium.org <jbauman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-03-02 17:33:45 +0000 |
commit | 2ffd73d989f9f07df881020d55e2e2e768efda6f (patch) | |
tree | 2b1f8efc792d090f2fc235c8c6e1b32e7dbe2885 /content | |
parent | d60af3733b057d4cbf513219bcd237fd78aa4a6d (diff) | |
download | chromium_src-2ffd73d989f9f07df881020d55e2e2e768efda6f.zip chromium_src-2ffd73d989f9f07df881020d55e2e2e768efda6f.tar.gz chromium_src-2ffd73d989f9f07df881020d55e2e2e768efda6f.tar.bz2 |
Don't trigger accelerated compositing for 3D CSS when using SwiftShader
The performance hit may be too high.
BUG=116401
TEST=
Review URL: http://codereview.chromium.org/9562009
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@124677 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'content')
-rw-r--r-- | content/browser/tab_contents/tab_contents.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/content/browser/tab_contents/tab_contents.cc b/content/browser/tab_contents/tab_contents.cc index 92c1fb2..9bcd915 100644 --- a/content/browser/tab_contents/tab_contents.cc +++ b/content/browser/tab_contents/tab_contents.cc @@ -436,10 +436,11 @@ WebPreferences TabContents::GetWebkitPrefs(RenderViewHost* rvh, prefs.gl_multisampling_enabled = false; // Accelerated video and animation are slower than regular when using a - // software 3d rasterizer. + // software 3d rasterizer. 3D CSS may also be too slow to be worthwhile. if (gpu_data_manager->ShouldUseSoftwareRendering()) { prefs.accelerated_video_enabled = false; prefs.accelerated_animation_enabled = false; + prefs.accelerated_layers_enabled = false; } } |