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

Unified Diff: webkit/glue/webpreferences.cc

Issue 8771056: Add a command-line switch --enable-per-tile-painting. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase on master. Created 9 years 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
« content/public/common/content_switches.cc ('K') | « 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
diff --git a/webkit/glue/webpreferences.cc b/webkit/glue/webpreferences.cc
index 71cd35f9ebb7f82316f60ddef035d2f68cec582e..4a8194577c567dda532b008af50e1b13e5129ed1 100644
--- a/webkit/glue/webpreferences.cc
+++ b/webkit/glue/webpreferences.cc
@@ -85,7 +85,7 @@ WebPreferences::WebPreferences()
accelerated_layers_enabled(false),
accelerated_video_enabled(false),
accelerated_2d_canvas_enabled(false),
- accelerated_drawing_enabled(false),
+ accelerated_painting_enabled(false),
accelerated_filters_enabled(false),
accelerated_plugins_enabled(false),
memory_info_enabled(false),
@@ -96,7 +96,8 @@ WebPreferences::WebPreferences()
should_print_backgrounds(false),
enable_scroll_animator(false),
hixie76_websocket_protocol_enabled(false),
- visual_word_movement_enabled(false) {
+ visual_word_movement_enabled(false),
+ per_tile_painting_enabled(false) {
}
WebPreferences::~WebPreferences() {
@@ -279,8 +280,8 @@ void WebPreferences::Apply(WebView* web_view) const {
// Enable gpu-accelerated 2d canvas if requested on the command line.
settings->setAccelerated2dCanvasEnabled(accelerated_2d_canvas_enabled);
- // Enable gpu-accelerated drawing if requested on the command line.
- settings->setAcceleratedDrawingEnabled(accelerated_drawing_enabled);
+ // Enable gpu-accelerated painting if requested on the command line.
+ settings->setAcceleratedPaintingEnabled(accelerated_painting_enabled);
// Enable gpu-accelerated filters if requested on the command line.
settings->setAcceleratedFiltersEnabled(accelerated_filters_enabled);
@@ -330,5 +331,8 @@ void WebPreferences::Apply(WebView* web_view) const {
hixie76_websocket_protocol_enabled);
settings->setVisualWordMovementEnabled(visual_word_movement_enabled);
+ // Enable per-tile painting if requested on the command line.
+ settings->setPerTilePaintingEnabled(per_tile_painting_enabled);
+
WebNetworkStateNotifier::setOnLine(is_online);
}
« content/public/common/content_switches.cc ('K') | « webkit/glue/webpreferences.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698