Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(120)

Unified Diff: webkit/glue/webpreferences.cc

Issue 8404026: Add a command line flag (--enable-fixed-position-compositing) for enabling compositing (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/webpreferences.cc
===================================================================
--- webkit/glue/webpreferences.cc (revision 107226)
+++ webkit/glue/webpreferences.cc (working copy)
@@ -79,6 +79,7 @@
force_compositing_mode(false),
allow_webui_compositing(false),
composite_to_texture_enabled(false),
+ fixed_position_compositing_enabled(false),
accelerated_layers_enabled(false),
accelerated_video_enabled(false),
accelerated_2d_canvas_enabled(false),
@@ -264,6 +265,11 @@
// Enable composite to offscreen texture if requested on the command line.
settings->setCompositeToTextureEnabled(composite_to_texture_enabled);
+ // Enable compositing for fixed position elements if requested
+ // on the command line.
+ settings->setAcceleratedCompositingForFixedPositionEnabled(
+ fixed_position_compositing_enabled);
+
// Enable gpu-accelerated 2d canvas if requested on the command line.
settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
« no previous file with comments | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698