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/switches.h" | 5 #include "ui/gfx/switches.h" |
6 | 6 |
7 namespace switches { | 7 namespace switches { |
8 | 8 |
9 // The ImageSkia looks up the resource pack with the closest available scale | 9 // The ImageSkia looks up the resource pack with the closest available scale |
10 // factor instead of the actual device scale factor and then rescale on | 10 // factor instead of the actual device scale factor and then rescale on |
11 // ImageSkia side. This switch disables this feature. | 11 // ImageSkia side. This switch disables this feature. |
12 const char kDisableArbitraryScaleFactorInImageSkia[] = | 12 const char kDisableArbitraryScaleFactorInImageSkia[] = |
13 "disable-arbitrary-scale-factor-in-image-skia"; | 13 "disable-arbitrary-scale-factor-in-image-skia"; |
14 | 14 |
| 15 // Disables the HarfBuzz port of RenderText on all platforms. |
| 16 const char kDisableHarfBuzzRenderText[] = "disable-harfbuzz-rendertext"; |
| 17 |
15 // Let text glyphs have X-positions that aren't snapped to the pixel grid in | 18 // Let text glyphs have X-positions that aren't snapped to the pixel grid in |
16 // the browser UI. | 19 // the browser UI. |
17 const char kEnableBrowserTextSubpixelPositioning[] = | 20 const char kEnableBrowserTextSubpixelPositioning[] = |
18 "enable-browser-text-subpixel-positioning"; | 21 "enable-browser-text-subpixel-positioning"; |
19 | 22 |
20 // Uses the HarfBuzz port of RenderText on all platforms. | 23 // Enables the HarfBuzz port of RenderText on all platforms. |
21 const char kEnableHarfBuzzRenderText[] = | 24 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext"; |
22 "enable-harfbuzz-rendertext"; | |
23 | 25 |
24 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid | 26 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid |
25 // in webkit renderers. | 27 // in webkit renderers. |
26 const char kEnableWebkitTextSubpixelPositioning[] = | 28 const char kEnableWebkitTextSubpixelPositioning[] = |
27 "enable-webkit-text-subpixel-positioning"; | 29 "enable-webkit-text-subpixel-positioning"; |
28 | 30 |
29 // Overrides the device scale factor for the browser UI and the contents. | 31 // Overrides the device scale factor for the browser UI and the contents. |
30 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 32 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
31 | 33 |
32 } // namespace switches | 34 } // namespace switches |
OLD | NEW |