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 73 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 84 int style; | 84 int style; |
| 85 }; | 85 }; |
| 86 | 86 |
| 87 // Returns the appropriate parameters for rendering the font described by | 87 // Returns the appropriate parameters for rendering the font described by |
| 88 // |query|. If |family_out| is non-NULL, it will be updated to contain the | 88 // |query|. If |family_out| is non-NULL, it will be updated to contain the |
| 89 // recommended font family from |query.families|. | 89 // recommended font family from |query.families|. |
| 90 GFX_EXPORT FontRenderParams GetFontRenderParams( | 90 GFX_EXPORT FontRenderParams GetFontRenderParams( |
| 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 | |
| 95 // changing Fontconfig's configuration. | |
| 96 GFX_EXPORT void DropFontRenderParamsCacheForTest(); | |
|
Daniel Erat
2014/08/04 23:44:43
i'm getting "undeclared identifier" errors that i
msw
2014/08/05 00:55:10
nit: s/Drop/Clear/
msw
2014/08/05 00:55:10
That seems very odd to me as well... would you min
Daniel Erat
2014/08/06 17:43:11
Done.
Daniel Erat
2014/08/06 17:43:11
sure, uploaded. and i can see with an #error that
msw
2014/08/06 19:31:38
Acknowledged; the comment is fine.
| |
| 97 | |
| 94 } // namespace gfx | 98 } // namespace gfx |
| 95 | 99 |
| 96 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ | 100 #endif // UI_GFX_FONT_RENDER_PARAMS_H_ |
| OLD | NEW |