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

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

Issue 1819753003: Allow various font weights in gfx. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a lost comment and modify a render text unittest to not test black because of test env font con… Created 4 years, 6 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 | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.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 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
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 } 53 }
54 54
55 NOTREACHED(); 55 NOTREACHED();
56 return SkFontLCDConfig::kHorizontal_LCDOrientation; 56 return SkFontLCDConfig::kHorizontal_LCDOrientation;
57 } 57 }
58 58
59 FontRenderParamsQuery::FontRenderParamsQuery() 59 FontRenderParamsQuery::FontRenderParamsQuery()
60 : pixel_size(0), 60 : pixel_size(0),
61 point_size(0), 61 point_size(0),
62 style(-1), 62 style(-1),
63 device_scale_factor(0) { 63 weight(Font::Weight::INVALID),
64 } 64 device_scale_factor(0) {}
65 65
66 FontRenderParamsQuery::FontRenderParamsQuery( 66 FontRenderParamsQuery::FontRenderParamsQuery(
67 const FontRenderParamsQuery& other) = default; 67 const FontRenderParamsQuery& other) = default;
68 68
69 FontRenderParamsQuery::~FontRenderParamsQuery() {} 69 FontRenderParamsQuery::~FontRenderParamsQuery() {}
70 70
71 } // namespace gfx 71 } // namespace gfx
OLDNEW
« no previous file with comments | « ui/gfx/font_render_params.h ('k') | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698