diff options
author | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 18:47:09 +0000 |
---|---|---|
committer | jamesr@chromium.org <jamesr@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-07-29 18:47:09 +0000 |
commit | aea7cab06f32dd29934a8244097780b8489b3a2a (patch) | |
tree | fcef23adea08e98e30c2a752a6ee6ba45a606be8 /webkit/glue/webpreferences.cc | |
parent | 000de16cb7cb64db108b2e9cc914eff8608ae70c (diff) | |
download | chromium_src-aea7cab06f32dd29934a8244097780b8489b3a2a.zip chromium_src-aea7cab06f32dd29934a8244097780b8489b3a2a.tar.gz chromium_src-aea7cab06f32dd29934a8244097780b8489b3a2a.tar.bz2 |
Add a command line switch to control accelerated 2d canvas
TEST=none
BUG=none
Review URL: http://codereview.chromium.org/2873074
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@54159 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/glue/webpreferences.cc')
-rw-r--r-- | webkit/glue/webpreferences.cc | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc index 987cef4..b8229a5 100644 --- a/webkit/glue/webpreferences.cc +++ b/webkit/glue/webpreferences.cc @@ -96,6 +96,9 @@ void WebPreferences::Apply(WebView* web_view) const { // Enable gpu-accelerated compositing if requested on the command line. settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled); + // Enable gpu-accelerated 2d canvas if requested on the command line. + settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled); + // Enable memory info reporting to page if requested on the command line. settings->setMemoryInfoEnabled(memory_info_enabled); |