Chromium Code Reviews| 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 { |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 144 // Makes pixel tests write their output instead of read it. | 144 // Makes pixel tests write their output instead of read it. |
| 145 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; | 145 const char kCCRebaselinePixeltests[] = "cc-rebaseline-pixeltests"; |
| 146 | 146 |
| 147 // Disable textures using RGBA_4444 layout. | 147 // Disable textures using RGBA_4444 layout. |
| 148 const char kDisable4444Textures[] = "disable-4444-textures"; | 148 const char kDisable4444Textures[] = "disable-4444-textures"; |
| 149 | 149 |
| 150 // Disable touch hit testing in the compositor. | 150 // Disable touch hit testing in the compositor. |
| 151 const char kDisableCompositorTouchHitTesting[] = | 151 const char kDisableCompositorTouchHitTesting[] = |
| 152 "disable-compositor-touch-hit-testing"; | 152 "disable-compositor-touch-hit-testing"; |
| 153 | 153 |
| 154 // Enable tile rasterization with Ganesh. | |
| 155 const char kEnableGpuRasterizing[] = "enable-gpu-rasterizing"; | |
| 156 | |
| 154 bool IsLCDTextEnabled() { | 157 bool IsLCDTextEnabled() { |
| 155 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 158 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
| 156 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) | 159 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) |
| 157 return false; | 160 return false; |
| 158 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) | 161 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) |
| 159 return true; | 162 return true; |
| 160 | 163 |
| 161 #if defined(OS_ANDROID) | 164 #if defined(OS_ANDROID) |
| 162 return false; | 165 return false; |
| 163 #else | 166 #else |
| (...skipping 27 matching lines...) Expand all Loading... | |
| 191 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | 194 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); |
| 192 | 195 |
| 193 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) | 196 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) |
| 194 return false; | 197 return false; |
| 195 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) | 198 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) |
| 196 return true; | 199 return true; |
| 197 | 200 |
| 198 return false; | 201 return false; |
| 199 } | 202 } |
| 200 | 203 |
| 204 bool IsGpuRasterizingEnabled() { | |
|
reveman
2013/11/24 21:56:57
Do we need this helper function when it just retur
slavi
2013/11/25 23:13:14
Also removed. See humper's patch.
| |
| 205 const CommandLine& command_line = *CommandLine::ForCurrentProcess(); | |
| 206 return command_line.HasSwitch(cc::switches::kEnableGpuRasterizing); | |
| 207 } | |
| 208 | |
| 201 } // namespace switches | 209 } // namespace switches |
| 202 } // namespace cc | 210 } // namespace cc |
| OLD | NEW |