| 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 "cc/base/switches.h" | 5 #include "cc/base/switches.h" |
| 6 | 6 |
| 7 #include "base/command_line.h" | 7 #include "base/command_line.h" |
| 8 | 8 |
| 9 namespace cc { | 9 namespace cc { |
| 10 namespace switches { | 10 namespace switches { |
| 11 | 11 |
| 12 // On platforms where checkerboards are used, prefer background colors instead | |
| 13 // of checkerboards. | |
| 14 const char kBackgroundColorInsteadOfCheckerboard[] = | |
| 15 "background-color-instead-of-checkerboard"; | |
| 16 | |
| 17 // Disables LCD text. | 12 // Disables LCD text. |
| 18 const char kDisableLCDText[] = "disable-lcd-text"; | 13 const char kDisableLCDText[] = "disable-lcd-text"; |
| 19 | 14 |
| 20 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; | 15 const char kDisableThreadedAnimation[] = "disable-threaded-animation"; |
| 21 | 16 |
| 22 // Disables layer-edge anti-aliasing in the compositor. | 17 // Disables layer-edge anti-aliasing in the compositor. |
| 23 const char kDisableCompositedAntialiasing[] = | 18 const char kDisableCompositedAntialiasing[] = |
| 24 "disable-composited-antialiasing"; | 19 "disable-composited-antialiasing"; |
| 25 | 20 |
| 26 // Paint content on the main thread instead of the compositor thread. | 21 // Paint content on the main thread instead of the compositor thread. |
| (...skipping 170 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 197 if (command_line.HasSwitch(switches::kDisableMapImage)) | 192 if (command_line.HasSwitch(switches::kDisableMapImage)) |
| 198 return false; | 193 return false; |
| 199 else if (command_line.HasSwitch(switches::kEnableMapImage)) | 194 else if (command_line.HasSwitch(switches::kEnableMapImage)) |
| 200 return true; | 195 return true; |
| 201 | 196 |
| 202 return false; | 197 return false; |
| 203 } | 198 } |
| 204 | 199 |
| 205 } // namespace switches | 200 } // namespace switches |
| 206 } // namespace cc | 201 } // namespace cc |
| OLD | NEW |