1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "ui/compositor/compositor_switches.h"
7 #include "base/command_line.h"
11 const char kDisableTestCompositor
[] = "disable-test-compositor";
13 const char kUIDisableDeadlineScheduling
[] = "ui-disable-deadline-scheduling";
15 const char kUIDisableThreadedCompositing
[] = "ui-disable-threaded-compositing";
17 const char kUIEnableDeadlineScheduling
[] = "ui-enable-deadline-scheduling";
19 const char kUIEnableSoftwareCompositing
[] = "ui-enable-software-compositing";
21 const char kUIEnableThreadedCompositing
[] = "ui-enable-threaded-compositing";
23 const char kUIMaxFramesPending
[] = "ui-max-frames-pending";
25 const char kUIShowPaintRects
[] = "ui-show-paint-rects";
27 bool IsUIDeadlineSchedulingEnabled() {
28 const CommandLine
& command_line
= *CommandLine::ForCurrentProcess();
30 // Default to disabled.
33 // Default to enabled for Aura.
37 enabled
|= command_line
.HasSwitch(switches::kUIEnableDeadlineScheduling
);
38 enabled
&= !command_line
.HasSwitch(switches::kUIDisableDeadlineScheduling
);
43 } // namespace switches