| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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/gfx/color_space_switches.h" |
| 5 #include "build/build_config.h" | 6 #include "build/build_config.h" |
| 6 #include "ui/gfx/switches.h" | |
| 7 | 7 |
| 8 namespace switches { | 8 namespace switches { |
| 9 | 9 |
| 10 #if defined(OS_WIN) | |
| 11 // Disables DirectWrite font rendering for general UI elements. | |
| 12 const char kDisableDirectWriteForUI[] = "disable-directwrite-for-ui"; | |
| 13 #endif | |
| 14 | |
| 15 #if defined(OS_MACOSX) | |
| 16 // Enables the HarfBuzz port of RenderText on Mac (it's already used only for | |
| 17 // text editing; this enables it for everything else). | |
| 18 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext"; | |
| 19 #endif | |
| 20 | |
| 21 // Run in headless mode, i.e., without a UI or display server dependencies. | |
| 22 const char kHeadless[] = "headless"; | |
| 23 | |
| 24 // Convert rasterization and compositing inputs to the output color space | 10 // Convert rasterization and compositing inputs to the output color space |
| 25 // before operating on them. | 11 // before operating on them. |
| 26 const char kEnableColorCorrectRendering[] = "enable-color-correct-rendering"; | 12 const char kEnableColorCorrectRendering[] = "enable-color-correct-rendering"; |
| 27 | 13 |
| 28 // Force all monitors to be treated as though they have the specified color | 14 // Force all monitors to be treated as though they have the specified color |
| 29 // profile. Accepted values are "srgb" and "generic-rgb" (currently used by Mac | 15 // profile. Accepted values are "srgb" and "generic-rgb" (currently used by Mac |
| 30 // layout tests) and "color-spin-gamma24" (used by layout tests). | 16 // layout tests) and "color-spin-gamma24" (used by layout tests). |
| 31 const char kForceColorProfile[] = "force-color-profile"; | 17 const char kForceColorProfile[] = "force-color-profile"; |
| 32 | 18 |
| 33 } // namespace switches | 19 } // namespace switches |
| OLD | NEW |