| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 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 | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "ui/compositor/compositor_switches.h" | 5 #include "ui/compositor/compositor_switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace switches { | 9 namespace switches { |
| 10 | 10 |
| 11 const char kDisableTestCompositor[] = "disable-test-compositor"; | 11 // Forces tests to produce pixel output when they normally wouldn't. |
| 12 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; |
| 12 | 13 |
| 13 const char kUIDisableDeadlineScheduling[] = "ui-disable-deadline-scheduling"; | 14 const char kUIDisableDeadlineScheduling[] = "ui-disable-deadline-scheduling"; |
| 14 | 15 |
| 15 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; | 16 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; |
| 16 | 17 |
| 17 const char kUIEnableDeadlineScheduling[] = "ui-enable-deadline-scheduling"; | 18 const char kUIEnableDeadlineScheduling[] = "ui-enable-deadline-scheduling"; |
| 18 | 19 |
| 19 const char kUIEnableSoftwareCompositing[] = "ui-enable-software-compositing"; | 20 const char kUIEnableSoftwareCompositing[] = "ui-enable-software-compositing"; |
| 20 | 21 |
| 21 const char kUIEnableThreadedCompositing[] = "ui-enable-threaded-compositing"; | 22 const char kUIEnableThreadedCompositing[] = "ui-enable-threaded-compositing"; |
| (...skipping 12 matching lines...) Expand all Loading... |
| 34 enabled = true; | 35 enabled = true; |
| 35 | 36 |
| 36 // Flags override. | 37 // Flags override. |
| 37 enabled |= command_line.HasSwitch(switches::kUIEnableDeadlineScheduling); | 38 enabled |= command_line.HasSwitch(switches::kUIEnableDeadlineScheduling); |
| 38 enabled &= !command_line.HasSwitch(switches::kUIDisableDeadlineScheduling); | 39 enabled &= !command_line.HasSwitch(switches::kUIDisableDeadlineScheduling); |
| 39 | 40 |
| 40 return enabled; | 41 return enabled; |
| 41 } | 42 } |
| 42 | 43 |
| 43 } // namespace switches | 44 } // namespace switches |
| OLD | NEW |