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 123 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
134 // Enable rasterizer that writes directly to GPU memory. | 134 // Enable rasterizer that writes directly to GPU memory. |
135 const char kEnableMapImage[] = "enable-map-image"; | 135 const char kEnableMapImage[] = "enable-map-image"; |
136 | 136 |
137 // Disable rasterizer that writes directly to GPU memory. | 137 // Disable rasterizer that writes directly to GPU memory. |
138 // Overrides the kEnableMapImage flag. | 138 // Overrides the kEnableMapImage flag. |
139 const char kDisableMapImage[] = "disable-map-image"; | 139 const char kDisableMapImage[] = "disable-map-image"; |
140 | 140 |
141 // Prevents the layer tree unit tests from timing out. | 141 // Prevents the layer tree unit tests from timing out. |
142 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; | 142 const char kCCLayerTreeTestNoTimeout[] = "cc-layer-tree-test-no-timeout"; |
143 | 143 |
| 144 // Disable textures using RGBA_4444 layout. |
| 145 const char kDisable4444Textures[] = "disable-4444-textures"; |
| 146 |
144 bool IsLCDTextEnabled() { | 147 bool IsLCDTextEnabled() { |
145 const CommandLine* command_line = CommandLine::ForCurrentProcess(); | 148 const CommandLine* command_line = CommandLine::ForCurrentProcess(); |
146 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) | 149 if (command_line->HasSwitch(cc::switches::kDisableLCDText)) |
147 return false; | 150 return false; |
148 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) | 151 else if (command_line->HasSwitch(cc::switches::kEnableLCDText)) |
149 return true; | 152 return true; |
150 | 153 |
151 #if defined(OS_ANDROID) | 154 #if defined(OS_ANDROID) |
152 return false; | 155 return false; |
153 #else | 156 #else |
(...skipping 22 matching lines...) Expand all Loading... |
176 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) | 179 if (command_line.HasSwitch(cc::switches::kDisableMapImage)) |
177 return false; | 180 return false; |
178 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) | 181 else if (command_line.HasSwitch(cc::switches::kEnableMapImage)) |
179 return true; | 182 return true; |
180 | 183 |
181 return false; | 184 return false; |
182 } | 185 } |
183 | 186 |
184 } // namespace switches | 187 } // namespace switches |
185 } // namespace cc | 188 } // namespace cc |
OLD | NEW |