Chromium Code Reviews| 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 |
| (...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 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 |
| OLD | NEW |