summaryrefslogtreecommitdiffstats
path: root/webkit/compositor_bindings
diff options
context:
space:
mode:
authorskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 13:33:03 +0000
committerskyostil@chromium.org <skyostil@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-02-04 13:33:03 +0000
commit0ab1baab43faed2d4f38b8af9b905d8c903c2637 (patch)
tree45e8064d426efaeef5b3e017f6f1504b69bfcaea /webkit/compositor_bindings
parentf331875f1ceea2daa7ae17d18d629407488dcedb (diff)
downloadchromium_src-0ab1baab43faed2d4f38b8af9b905d8c903c2637.zip
chromium_src-0ab1baab43faed2d4f38b8af9b905d8c903c2637.tar.gz
chromium_src-0ab1baab43faed2d4f38b8af9b905d8c903c2637.tar.bz2
cc: Add flag to use raster cheapness estimator
Add a command line flag to turn on the raster job cheapness estimator. It will be used to schedule raster jobs according to their estimated processing cost. BUG=173426 TBR=piman Review URL: https://chromiumcodereview.appspot.com/12185015 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@180399 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'webkit/compositor_bindings')
-rw-r--r--webkit/compositor_bindings/web_layer_tree_view_impl.cc1
1 files changed, 1 insertions, 0 deletions
diff --git a/webkit/compositor_bindings/web_layer_tree_view_impl.cc b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
index 2b71187..f8e8d54 100644
--- a/webkit/compositor_bindings/web_layer_tree_view_impl.cc
+++ b/webkit/compositor_bindings/web_layer_tree_view_impl.cc
@@ -54,6 +54,7 @@ bool WebLayerTreeViewImpl::initialize(const WebLayerTreeView::Settings& webSetti
settings.initialDebugState.showDebugBorders = webSettings.showDebugBorders;
settings.implSidePainting = CommandLine::ForCurrentProcess()->HasSwitch(cc::switches::kEnableImplSidePainting);
settings.recordRenderingStats = webSettings.recordRenderingStats;
+ settings.useCheapnessEstimator = CommandLine::ForCurrentProcess()->HasSwitch(switches::kUseCheapnessEstimator);
settings.calculateTopControlsPosition = CommandLine::ForCurrentProcess()->HasSwitch(switches::kEnableTopControlsPositionCalculation);
if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kTopControlsHeight)) {