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

Unified Diff: webkit/glue/webpreferences.cc

Issue 10386213: Add command line flags for compositor's default tile size and (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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 137957)
+++ webkit/glue/webpreferences.cc (working copy)
@@ -11,6 +11,7 @@
#include "third_party/WebKit/Source/WebKit/chromium/public/WebRuntimeFeatures.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebKit.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebSettings.h"
+#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebSize.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebString.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/platform/WebURL.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebView.h"
@@ -20,6 +21,7 @@
using WebKit::WebNetworkStateNotifier;
using WebKit::WebRuntimeFeatures;
using WebKit::WebSettings;
+using WebKit::WebSize;
using WebKit::WebString;
using WebKit::WebURL;
using WebKit::WebView;
@@ -102,7 +104,11 @@
visual_word_movement_enabled(false),
per_tile_painting_enabled(false),
css_regions_enabled(false),
- css_shaders_enabled(false) {
+ css_shaders_enabled(false),
+ default_tile_width(256),
+ default_tile_height(256),
+ max_untiled_layer_width(512),
+ max_untiled_layer_height(512) {
standard_font_family_map[kCommonScript] =
ASCIIToUTF16("Times New Roman");
fixed_font_family_map[kCommonScript] =
@@ -354,6 +360,11 @@
settings->setExperimentalCSSRegionsEnabled(css_regions_enabled);
settings->setExperimentalCSSCustomFilterEnabled(css_shaders_enabled);
+ settings->setDefaultTileSize(
+ WebSize(default_tile_width, default_tile_height));
+ settings->setMaxUntiledLayerSize(
+ WebSize(max_untiled_layer_width, max_untiled_layer_height));
+
WebNetworkStateNotifier::setOnLine(is_online);
}
« 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