Index: ui/gfx/compositor/compositor.cc |
diff --git a/ui/gfx/compositor/compositor.cc b/ui/gfx/compositor/compositor.cc |
index 4fa47a485d6d7a53ff54855edda008f6b5e0c2ef..9d290e2ad84cb2f0861686efcd24b983c756da9d 100644 |
--- a/ui/gfx/compositor/compositor.cc |
+++ b/ui/gfx/compositor/compositor.cc |
@@ -136,6 +136,10 @@ Compositor::Compositor(CompositorDelegate* delegate, |
kTestRefreshRate : kDefaultRefreshRate; |
settings.partialSwapEnabled = |
command_line->HasSwitch(switches::kUIEnablePartialSwap); |
+#if defined(PER_TILE_PAINTING) |
+ settings.perTilePainting = |
+ command_line->HasSwitch(switches::kUIEnablePerTilePainting); |
+#endif |
host_ = WebKit::WebLayerTreeView::create(this, root_web_layer_, settings); |
root_web_layer_.setAnchorPoint(WebKit::WebFloatPoint(0.f, 0.f)); |