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 using base::CommandLine; |
| 10 |
9 namespace switches { | 11 namespace switches { |
10 | 12 |
11 // Enable compositing individual elements via hardware overlays when | 13 // Enable compositing individual elements via hardware overlays when |
12 // permitted by device. | 14 // permitted by device. |
13 const char kEnableHardwareOverlays[] = "enable-hardware-overlays"; | 15 const char kEnableHardwareOverlays[] = "enable-hardware-overlays"; |
14 | 16 |
15 // Forces tests to produce pixel output when they normally wouldn't. | 17 // Forces tests to produce pixel output when they normally wouldn't. |
16 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; | 18 const char kEnablePixelOutputInTests[] = "enable-pixel-output-in-tests"; |
17 | 19 |
18 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; | 20 const char kUIDisableThreadedCompositing[] = "ui-disable-threaded-compositing"; |
(...skipping 14 matching lines...) Expand all Loading... |
33 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); | 35 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); |
34 } | 36 } |
35 | 37 |
36 bool IsUIZeroCopyEnabled() { | 38 bool IsUIZeroCopyEnabled() { |
37 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 39 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
38 | 40 |
39 return command_line.HasSwitch(switches::kUIEnableZeroCopy); | 41 return command_line.HasSwitch(switches::kUIEnableZeroCopy); |
40 } | 42 } |
41 | 43 |
42 } // namespace ui | 44 } // namespace ui |
OLD | NEW |