Index: webkit/glue/webpreferences.cc |
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc |
index 987cef449c98d5521c43e3935d55e5fb89357ddd..b8229a52666a72390887ad396704ce27d7870ba1 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); |