| 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 // When allowed, the ImageSkia looks up the resource pack with the closest | 9 // The ImageSkia looks up the resource pack with the closest available scale |
| 10 // available scale factor instead of the actual device scale factor and then | 10 // factor instead of the actual device scale factor and then rescale on |
| 11 // rescale on ImageSkia side. | 11 // ImageSkia side. This switch disables this feature. |
| 12 // In Windows: default is allowed. Specify --disallow-... to prevent this. | 12 const char kDisableArbitraryScaleFactorInImageSkia[] = |
| 13 // Other platforms: default is not allowed. Specify --allow-... to do this. | 13 "disable-arbitrary-scale-factor-in-image-skia"; |
| 14 const char kAllowArbitraryScaleFactorInImageSkia[] = | |
| 15 "allow-arbitrary-scale-factor-in-image-skia"; | |
| 16 | |
| 17 const char kDisallowArbitraryScaleFactorInImageSkia[] = | |
| 18 "disallow-arbitrary-scale-factor-in-image-skia"; | |
| 19 | 14 |
| 20 // Let text glyphs have X-positions that aren't snapped to the pixel grid in | 15 // Let text glyphs have X-positions that aren't snapped to the pixel grid in |
| 21 // the browser UI. | 16 // the browser UI. |
| 22 const char kEnableBrowserTextSubpixelPositioning[] = | 17 const char kEnableBrowserTextSubpixelPositioning[] = |
| 23 "enable-browser-text-subpixel-positioning"; | 18 "enable-browser-text-subpixel-positioning"; |
| 24 | 19 |
| 25 // Uses the HarfBuzz port of RenderText on all platforms. | 20 // Uses the HarfBuzz port of RenderText on all platforms. |
| 26 const char kEnableHarfBuzzRenderText[] = | 21 const char kEnableHarfBuzzRenderText[] = |
| 27 "enable-harfbuzz-rendertext"; | 22 "enable-harfbuzz-rendertext"; |
| 28 | 23 |
| 29 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid | 24 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid |
| 30 // in webkit renderers. | 25 // in webkit renderers. |
| 31 const char kEnableWebkitTextSubpixelPositioning[] = | 26 const char kEnableWebkitTextSubpixelPositioning[] = |
| 32 "enable-webkit-text-subpixel-positioning"; | 27 "enable-webkit-text-subpixel-positioning"; |
| 33 | 28 |
| 34 // Overrides the device scale factor for the browser UI and the contents. | 29 // Overrides the device scale factor for the browser UI and the contents. |
| 35 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; | 30 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; |
| 36 | 31 |
| 37 } // namespace switches | 32 } // namespace switches |
| OLD | NEW |