| Index: ui/compositor/compositor.cc
|
| diff --git a/ui/compositor/compositor.cc b/ui/compositor/compositor.cc
|
| index 9c17c23a7d9ae35d2fafbaca329f2410c1fbcef5..c0984a13ff15c9ec6e11abb0a73b5f0ff8207958 100644
|
| --- a/ui/compositor/compositor.cc
|
| +++ b/ui/compositor/compositor.cc
|
| @@ -385,6 +385,8 @@ Compositor::Compositor(CompositorDelegate* delegate,
|
| ContextFactory::GetInstance()->DoesCreateTestContexts()
|
| ? kTestRefreshRate
|
| : kDefaultRefreshRate;
|
| + settings.deadline_scheduling_enabled =
|
| + cc::switches::IsDeadlineSchedulingEnabled();
|
| settings.partial_swap_enabled =
|
| !command_line->HasSwitch(cc::switches::kUIDisablePartialSwap);
|
| settings.per_tile_painting_enabled =
|
| @@ -529,6 +531,10 @@ void Compositor::Terminate() {
|
| g_compositor_initialized = false;
|
| }
|
|
|
| +const cc::LayerTreeSettings& Compositor::layer_tree_settings() const {
|
| + return host_->settings();
|
| +}
|
| +
|
| void Compositor::ScheduleDraw() {
|
| if (g_compositor_thread)
|
| host_->Composite(base::TimeTicks::Now());
|
|
|