Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(428)

Side by Side Diff: ui/gfx/switches.cc

Issue 485873002: Enable subpixel positioning for internal display with dsf larger than 1.0 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: addressed Created 6 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/gfx/switches.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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. 15 // Disables the HarfBuzz port of RenderText on all platforms.
16 const char kDisableHarfBuzzRenderText[] = "disable-harfbuzz-rendertext"; 16 const char kDisableHarfBuzzRenderText[] = "disable-harfbuzz-rendertext";
17 17
18 // Let text glyphs have X-positions that aren't snapped to the pixel grid in
19 // the browser UI.
20 const char kEnableBrowserTextSubpixelPositioning[] =
21 "enable-browser-text-subpixel-positioning";
22
23 // Enables the HarfBuzz port of RenderText on all platforms. 18 // Enables the HarfBuzz port of RenderText on all platforms.
24 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext"; 19 const char kEnableHarfBuzzRenderText[] = "enable-harfbuzz-rendertext";
25 20
26 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid 21 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid
27 // in webkit renderers. 22 // in webkit renderers.
28 const char kEnableWebkitTextSubpixelPositioning[] = 23 const char kEnableWebkitTextSubpixelPositioning[] =
29 "enable-webkit-text-subpixel-positioning"; 24 "enable-webkit-text-subpixel-positioning";
30 25
31 // Overrides the device scale factor for the browser UI and the contents. 26 // Overrides the device scale factor for the browser UI and the contents.
32 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; 27 const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
33 28
34 } // namespace switches 29 } // namespace switches
OLDNEW
« no previous file with comments | « ui/gfx/switches.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698