OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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_HARFBUZZ_FONT_SKIA_H_ | 5 #ifndef UI_GFX_HARFBUZZ_FONT_SKIA_H_ |
6 #define UI_GFX_HARFBUZZ_FONT_SKIA_H_ | 6 #define UI_GFX_HARFBUZZ_FONT_SKIA_H_ |
7 | 7 |
8 #include "third_party/harfbuzz-ng/src/hb.h" | 8 #include "third_party/harfbuzz-ng/src/hb.h" |
9 #include "third_party/skia/include/core/SkScalar.h" | 9 #include "third_party/skia/include/core/SkScalar.h" |
10 #include "ui/gfx/font_render_params.h" | 10 #include "ui/gfx/font_render_params.h" |
11 | 11 |
12 class SkTypeface; | 12 class SkTypeface; |
13 | 13 |
14 namespace gfx { | 14 namespace gfx { |
15 | 15 |
16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face, | 16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face, |
17 SkScalar text_size, | 17 SkScalar text_size, |
18 const FontRenderParams& params, | 18 const FontRenderParams& params, |
19 bool background_is_transparent); | 19 bool subpixel_rendering_enabled); |
20 | 20 |
21 } // namespace gfx | 21 } // namespace gfx |
22 | 22 |
23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ | 23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ |
OLD | NEW |