| 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/SkRefCnt.h" |
| 9 #include "third_party/skia/include/core/SkScalar.h" | 10 #include "third_party/skia/include/core/SkScalar.h" |
| 10 #include "ui/gfx/font_render_params.h" | 11 #include "ui/gfx/font_render_params.h" |
| 11 | 12 |
| 12 class SkTypeface; | 13 class SkTypeface; |
| 13 | 14 |
| 14 namespace gfx { | 15 namespace gfx { |
| 15 | 16 |
| 16 hb_font_t* CreateHarfBuzzFont(SkTypeface* skia_face, | 17 hb_font_t* CreateHarfBuzzFont(sk_sp<SkTypeface> skia_face, |
| 17 SkScalar text_size, | 18 SkScalar text_size, |
| 18 const FontRenderParams& params, | 19 const FontRenderParams& params, |
| 19 bool subpixel_rendering_suppressed); | 20 bool subpixel_rendering_suppressed); |
| 20 | 21 |
| 21 } // namespace gfx | 22 } // namespace gfx |
| 22 | 23 |
| 23 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ | 24 #endif // UI_GFX_HARFBUZZ_FONT_SKIA_H_ |
| OLD | NEW |