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 #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 80 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 91 const FontRenderParamsQuery& query, | 91 const FontRenderParamsQuery& query, |
| 92 std::string* family_out); | 92 std::string* family_out); |
| 93 | 93 |
| 94 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are | 94 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are |
| 95 // changing Fontconfig's configuration. | 95 // changing Fontconfig's configuration. |
| 96 // TODO(derat): This is only defined for Linux, but OS_LINUX doesn't seem to be | 96 // TODO(derat): This is only defined for Linux, but OS_LINUX doesn't seem to be |
| 97 // set when font_render_params_linux_unittest.cc includes this header. Figure | 97 // set when font_render_params_linux_unittest.cc includes this header. Figure |
| 98 // out what's going on here. | 98 // out what's going on here. |
| 99 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); | 99 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); |
| 100 | 100 |
| 101 // Enables/Disables the subpixel positioning in browser process. | |
| 102 #if defined(OS_CHROMEOS) | |
| 103 GFX_EXPORT void SetDeviceScaleFactorForInternalDisplay( | |
|
Daniel Erat
2014/08/19 22:32:25
mind renaming this to mention fonts so it's easier
oshima
2014/08/20 01:41:12
Done.
| |
| 104 float device_scale_factor); | |
| 105 | |
| 106 namespace test { | |
| 107 GFX_EXPORT bool GetBrowserTextSubpixelPoisitioningEnabled(); | |
|
Daniel Erat
2014/08/19 22:32:25
i don't think you need this; you should be able to
oshima
2014/08/20 01:41:12
Done.
| |
| 108 } | |
| 109 #endif | |
| 110 | |
| 101 } // namespace gfx | 111 } // namespace gfx |
| 102 | 112 |
| 103 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 113 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
| OLD | NEW |