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

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

Issue 152473008: More or less implement RenderTextHarfBuzz (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: actual android fix Created 6 years, 7 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') | ui/views/examples/multiline_example.cc » ('j') | 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 // When allowed, the ImageSkia looks up the resource pack with the closest 9 // When allowed, the ImageSkia looks up the resource pack with the closest
10 // available scale factor instead of the actual device scale factor and then 10 // available scale factor instead of the actual device scale factor and then
11 // rescale on ImageSkia side. 11 // rescale on ImageSkia side.
12 // In Windows: default is allowed. Specify --disallow-... to prevent this. 12 // In Windows: default is allowed. Specify --disallow-... to prevent this.
13 // Other platforms: default is not allowed. Specify --allow-... to do this. 13 // Other platforms: default is not allowed. Specify --allow-... to do this.
14 const char kAllowArbitraryScaleFactorInImageSkia[] = 14 const char kAllowArbitraryScaleFactorInImageSkia[] =
15 "allow-arbitrary-scale-factor-in-image-skia"; 15 "allow-arbitrary-scale-factor-in-image-skia";
16 16
17 const char kDisallowArbitraryScaleFactorInImageSkia[] = 17 const char kDisallowArbitraryScaleFactorInImageSkia[] =
18 "disallow-arbitrary-scale-factor-in-image-skia"; 18 "disallow-arbitrary-scale-factor-in-image-skia";
19 19
20 // Let text glyphs have X-positions that aren't snapped to the pixel grid in 20 // Let text glyphs have X-positions that aren't snapped to the pixel grid in
21 // the browser UI. 21 // the browser UI.
22 const char kEnableBrowserTextSubpixelPositioning[] = 22 const char kEnableBrowserTextSubpixelPositioning[] =
23 "enable-browser-text-subpixel-positioning"; 23 "enable-browser-text-subpixel-positioning";
24 24
25 // Uses the HarfBuzz port of RenderText on all platforms.
26 const char kEnableHarfBuzzRenderText[] =
27 "enable-harfbuzz-rendertext";
28
25 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid 29 // Enable text glyphs to have X-positions that aren't snapped to the pixel grid
26 // in webkit renderers. 30 // in webkit renderers.
27 const char kEnableWebkitTextSubpixelPositioning[] = 31 const char kEnableWebkitTextSubpixelPositioning[] =
28 "enable-webkit-text-subpixel-positioning"; 32 "enable-webkit-text-subpixel-positioning";
29 33
30 // Overrides the device scale factor for the browser UI and the contents. 34 // Overrides the device scale factor for the browser UI and the contents.
31 const char kForceDeviceScaleFactor[] = "force-device-scale-factor"; 35 const char kForceDeviceScaleFactor[] = "force-device-scale-factor";
32 36
33 // Enables/Disables High DPI support (windows) 37 // Enables/Disables High DPI support (windows)
34 const char kHighDPISupport[] = "high-dpi-support"; 38 const char kHighDPISupport[] = "high-dpi-support";
35 39
36 } // namespace switches 40 } // namespace switches
OLDNEW
« no previous file with comments | « ui/gfx/switches.h ('k') | ui/views/examples/multiline_example.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698