Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1344)

Side by Side Diff: ui/gfx/font_render_params.h

Issue 1870873003: Remove screen dependency from font_render_params_linux (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 90 matching lines...) Expand 10 before | Expand all | Expand 10 after
101 GFX_EXPORT FontRenderParams GetFontRenderParams( 101 GFX_EXPORT FontRenderParams GetFontRenderParams(
102 const FontRenderParamsQuery& query, 102 const FontRenderParamsQuery& query,
103 std::string* family_out); 103 std::string* family_out);
104 104
105 #if defined(OS_LINUX) 105 #if defined(OS_LINUX)
106 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are 106 // Clears GetFontRenderParams()'s cache. Intended to be called by tests that are
107 // changing Fontconfig's configuration. 107 // changing Fontconfig's configuration.
108 GFX_EXPORT void ClearFontRenderParamsCacheForTest(); 108 GFX_EXPORT void ClearFontRenderParamsCacheForTest();
109 #endif 109 #endif
110 110
111 #if defined(OS_CHROMEOS) 111 #if defined(OS_CHROMEOS) || defined(OS_LINUX)
msw 2016/04/08 20:42:58 nit: Isn't OS_LINUX true on OS_CHROMEOS? If so, yo
oshima 2016/04/08 21:28:17 That's technically true, although it still can be
112 // Gets the device scale factor to query the FontRenderParams. 112 // Gets the device scale factor to query the FontRenderParams.
113 float GetFontRenderParamsDeviceScaleFactor(); 113 GFX_EXPORT float GetFontRenderParamsDeviceScaleFactor();
114 114
115 // Sets the device scale factor for FontRenderParams to decide 115 // Sets the device scale factor for FontRenderParams to decide
116 // if it should enable subpixel positioning. 116 // if it should enable subpixel positioning.
117 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor( 117 GFX_EXPORT void SetFontRenderParamsDeviceScaleFactor(
118 float device_scale_factor); 118 float device_scale_factor);
119 #endif 119 #endif
120 120
121 } // namespace gfx 121 } // namespace gfx
122 122
123 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ 123 #endif // UI_GFX_FONT_RENDER_PARAMS_H_
OLDNEW
« no previous file with comments | « no previous file | ui/gfx/font_render_params_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698