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 36 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
47 return SkFontHost::kHorizontal_LCDOrientation; | 47 return SkFontHost::kHorizontal_LCDOrientation; |
48 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VRGB: | 48 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VRGB: |
49 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VBGR: | 49 case gfx::FontRenderParams::SUBPIXEL_RENDERING_VBGR: |
50 return SkFontHost::kVertical_LCDOrientation; | 50 return SkFontHost::kVertical_LCDOrientation; |
51 } | 51 } |
52 | 52 |
53 NOTREACHED(); | 53 NOTREACHED(); |
54 return SkFontHost::kHorizontal_LCDOrientation; | 54 return SkFontHost::kHorizontal_LCDOrientation; |
55 } | 55 } |
56 | 56 |
57 FontRenderParamsQuery::FontRenderParamsQuery(bool for_web_contents) | 57 FontRenderParamsQuery::FontRenderParamsQuery() |
58 : for_web_contents(for_web_contents), | 58 : pixel_size(0), |
59 pixel_size(0), | |
60 point_size(0), | 59 point_size(0), |
61 style(-1), | 60 style(-1), |
62 device_scale_factor(0) { | 61 device_scale_factor(0) { |
63 } | 62 } |
64 | 63 |
65 FontRenderParamsQuery::~FontRenderParamsQuery() {} | 64 FontRenderParamsQuery::~FontRenderParamsQuery() {} |
66 | 65 |
67 } // namespace gfx | 66 } // namespace gfx |
OLD | NEW |