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

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: Further Mac and Linux fixes. Created 4 years, 9 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
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 SkFontHost::kHorizontal_LCDOrientation; 56 return SkFontHost::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(gfx::Font::Weight::NORMAL),
msw 2016/03/25 01:33:09 q: Should this init to invalid, like style, etc?
Mikus 2016/03/25 11:49:00 Done. And yes, it should.
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

Powered by Google App Engine
This is Rietveld 408576698