| 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 |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 GFX_EXPORT FontRenderParams GetFontRenderParams( | 105 GFX_EXPORT FontRenderParams GetFontRenderParams( |
| 106 const FontRenderParamsQuery& query, | 106 const FontRenderParamsQuery& query, |
| 107 std::string* family_out); | 107 std::string* family_out); |
| 108 | 108 |
| 109 #if defined(OS_LINUX) | 109 #if defined(OS_LINUX) |
| 110 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are | 110 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are |
| 111 // changing Fontconfig's configuration. | 111 // changing Fontconfig's configuration. |
| 112 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); | 112 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); |
| 113 #endif | 113 #endif |
| 114 | 114 |
| 115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) | 115 #if defined(OS_CHROMEOS) || defined(OS_LINUX) || defined(OS_ANDROID) |
| 116 // Gets the device scale factor to query the FontRenderParams. | 116 // Gets the device scale factor to query the FontRenderParams. |
| 117 GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); | 117 GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor(); |
| 118 | 118 |
| 119 // Sets the device scale factor for FontRenderParams to decide | 119 // Sets the device scale factor for FontRenderParams to decide |
| 120 // if it should enable subpixel positioning. | 120 // if it should enable subpixel positioning. |
| 121 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( | 121 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( |
| 122 float device_scale_factor); | 122 float device_scale_factor); |
| 123 #endif | 123 #endif |
| 124 | 124 |
| 125 } // namespace gfx | 125 } // namespace gfx |
| 126 | 126 |
| 127 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 127 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
| OLD | NEW |