Chromium Code Reviews| Index: ui/compositor/compositor.cc |
| diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc |
| index dbaac60941cbb24bc7e3e4833b2573b7cc6e5317..96be4d6654199948612218698ae4ba4946943dce 100644 |
| --- a/ui/compositor/compositor.cc |
| +++ b/ui/compositor/compositor.cc |
| @@ -176,14 +176,8 @@ Compositor::~Compositor() { |
| } |
| void Compositor::Initialize(bool use_thread) { |
| - CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| WebKit::WebCompositorSupport* compositor_support = |
| WebKit::Platform::current()->compositorSupport(); |
| - // These settings must be applied before we initialize the compositor. |
| - compositor_support->setPartialSwapEnabled( |
| - command_line->HasSwitch(switches::kUIEnablePartialSwap)); |
| - compositor_support->setPerTilePaintingEnabled( |
| - command_line->HasSwitch(switches::kUIEnablePerTilePainting)); |
|
jamesr
2012/10/18 02:44:32
notice that this is checking switches::kUIEnablePa
|
| if (use_thread) |
| g_compositor_thread = new webkit_glue::WebThreadImpl("Browser Compositor"); |
| compositor_support->initialize(g_compositor_thread); |