| 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 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_ | 5 #ifndef UI_GFX_FONT_RENDER_PARAMS_H_ |
| 6 #define UI_GFX_FONT_RENDER_PARAMS_H_ | 6 #define UI_GFX_FONT_RENDER_PARAMS_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "build/build_config.h" | 11 #include "build/build_config.h" |
| 12 #include "device/vr/features.h" | 12 #include "device/vr/features/features.h" |
| 13 #include "third_party/skia/include/core/SkFontLCDConfig.h" | 13 #include "third_party/skia/include/core/SkFontLCDConfig.h" |
| 14 #include "ui/gfx/font.h" | 14 #include "ui/gfx/font.h" |
| 15 #include "ui/gfx/gfx_export.h" | 15 #include "ui/gfx/gfx_export.h" |
| 16 | 16 |
| 17 namespace gfx { | 17 namespace gfx { |
| 18 | 18 |
| 19 // A collection of parameters describing how text should be rendered on Linux. | 19 // A collection of parameters describing how text should be rendered on Linux. |
| 20 struct GFX_EXPORT FontRenderParams { | 20 struct GFX_EXPORT FontRenderParams { |
| 21 FontRenderParams(); | 21 FontRenderParams(); |
| 22 FontRenderParams(const FontRenderParams& other); | 22 FontRenderParams(const FontRenderParams& other); |
| (...skipping 97 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 120 | 120 |
| 121 // Sets the device scale factor for FontRenderParams to decide | 121 // Sets the device scale factor for FontRenderParams to decide |
| 122 // if it should enable subpixel positioning. | 122 // if it should enable subpixel positioning. |
| 123 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( | 123 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( |
| 124 float device_scale_factor); | 124 float device_scale_factor); |
| 125 #endif | 125 #endif |
| 126 | 126 |
| 127 } // namespace gfx | 127 } // namespace gfx |
| 128 | 128 |
| 129 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 129 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
| OLD | NEW |