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

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

Issue 2962073002: OOPIF support for layout test pixel dumps.
Patch Set: Rebasing on top of 8bc8e844008b (still works locally). Created 3 years, 5 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
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/resources/frame.html ('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 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
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
OLDNEW
« no previous file with comments | « third_party/WebKit/LayoutTests/http/tests/resources/frame.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698