OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/font_render_params.h" | 5 #include "ui/gfx/font_render_params.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 | 8 |
9 namespace gfx { | 9 namespace gfx { |
10 | 10 |
11 FontRenderParams::FontRenderParams() | 11 FontRenderParams::FontRenderParams() |
12 : antialiasing(true), | 12 : antialiasing(false), // DO NOT SUBMIT - figure out why OOPIFs differ. |
13 subpixel_positioning(true), | 13 subpixel_positioning(true), // when antialiasing is used. |
14 autohinter(false), | 14 autohinter(false), // this is https://crbug.com/740583. |
15 use_bitmaps(false), | 15 use_bitmaps(false), |
16 hinting(HINTING_MEDIUM), | 16 hinting(HINTING_MEDIUM), |
17 subpixel_rendering(SUBPIXEL_RENDERING_NONE) { | 17 subpixel_rendering(SUBPIXEL_RENDERING_NONE) {} |
18 } | |
19 | 18 |
20 FontRenderParams::FontRenderParams(const FontRenderParams& other) = default; | 19 FontRenderParams::FontRenderParams(const FontRenderParams& other) = default; |
21 | 20 |
22 FontRenderParams::~FontRenderParams() {} | 21 FontRenderParams::~FontRenderParams() {} |
23 | 22 |
24 // static | 23 // static |
25 SkFontLCDConfig::LCDOrder FontRenderParams::SubpixelRenderingToSkiaLCDOrder( | 24 SkFontLCDConfig::LCDOrder FontRenderParams::SubpixelRenderingToSkiaLCDOrder( |
26 FontRenderParams::SubpixelRendering subpixel_rendering) { | 25 FontRenderParams::SubpixelRendering subpixel_rendering) { |
27 switch (subpixel_rendering) { | 26 switch (subpixel_rendering) { |
28 case gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE: | 27 case gfx::FontRenderParams::SUBPIXEL_RENDERING_NONE: |
(...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
62 style(-1), | 61 style(-1), |
63 weight(Font::Weight::INVALID), | 62 weight(Font::Weight::INVALID), |
64 device_scale_factor(0) {} | 63 device_scale_factor(0) {} |
65 | 64 |
66 FontRenderParamsQuery::FontRenderParamsQuery( | 65 FontRenderParamsQuery::FontRenderParamsQuery( |
67 const FontRenderParamsQuery& other) = default; | 66 const FontRenderParamsQuery& other) = default; |
68 | 67 |
69 FontRenderParamsQuery::~FontRenderParamsQuery() {} | 68 FontRenderParamsQuery::~FontRenderParamsQuery() {} |
70 | 69 |
71 } // namespace gfx | 70 } // namespace gfx |
OLD | NEW |