summaryrefslogtreecommitdiffstats
path: root/webkit
diff options
context:
space:
mode:
Diffstat (limited to 'webkit')
-rw-r--r--webkit/glue/webpreferences.cc4
-rw-r--r--webkit/glue/webpreferences.h1
2 files changed, 5 insertions, 0 deletions
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 25fa0bf..497efd7 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -67,6 +67,7 @@ WebPreferences::WebPreferences()
show_composited_layer_borders(false),
asynchronous_spell_checking_enabled(true),
accelerated_compositing_enabled(false),
+ composite_to_texture_enabled(false),
accelerated_layers_enabled(false),
accelerated_video_enabled(false),
accelerated_2d_canvas_enabled(false),
@@ -165,6 +166,9 @@ void WebPreferences::Apply(WebView* web_view) const {
// Enable gpu-accelerated compositing if requested on the command line.
settings->setAcceleratedCompositingEnabled(accelerated_compositing_enabled);
+ // Enable composite to offscreen texture if requested on the command line.
+ settings->setCompositeToTextureEnabled(composite_to_texture_enabled);
+
// Enable gpu-accelerated 2d canvas if requested on the command line.
settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
diff --git a/webkit/glue/webpreferences.h b/webkit/glue/webpreferences.h
index c163dc9..1b07b76 100644
--- a/webkit/glue/webpreferences.h
+++ b/webkit/glue/webpreferences.h
@@ -72,6 +72,7 @@ struct WebPreferences {
bool show_composited_layer_borders;
bool asynchronous_spell_checking_enabled;
bool accelerated_compositing_enabled;
+ bool composite_to_texture_enabled;
bool accelerated_layers_enabled;
bool accelerated_video_enabled;
bool accelerated_2d_canvas_enabled;