Don't send touch move events within the slop region in Aura.
[chromium-blink-merge.git] / ui / compositor / compositor_switches.cc
blob87a4f2645733bb540d2059da7cceb25bd45bf995
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"
9 namespace switches {
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.
31 bool enabled = false;
33 // Default to enabled for Aura.
34 enabled = true;
36 // Flags override.
37 enabled |= command_line.HasSwitch(switches::kUIEnableDeadlineScheduling);
38 enabled &= !command_line.HasSwitch(switches::kUIDisableDeadlineScheduling);
40 return enabled;
43 } // namespace switches