| 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 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy"; | 22 const char kUIEnableZeroCopy[] = "ui-enable-zero-copy"; |
| 23 | 23 |
| 24 const char kUIShowPaintRects[] = "ui-show-paint-rects"; | 24 const char kUIShowPaintRects[] = "ui-show-paint-rects"; |
| 25 | 25 |
| 26 } // namespace switches | 26 } // namespace switches |
| 27 | 27 |
| 28 namespace ui { | 28 namespace ui { |
| 29 | 29 |
| 30 bool IsUIImplSidePaintingEnabled() { | 30 bool IsUIImplSidePaintingEnabled() { |
| 31 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 31 const base::CommandLine& command_line = |
| 32 *base::CommandLine::ForCurrentProcess(); |
| 32 | 33 |
| 33 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); | 34 return command_line.HasSwitch(switches::kUIEnableImplSidePainting); |
| 34 } | 35 } |
| 35 | 36 |
| 36 bool IsUIZeroCopyEnabled() { | 37 bool IsUIZeroCopyEnabled() { |
| 37 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 38 const base::CommandLine& command_line = |
| 39 *base::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 |