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 #include "ui/gfx/harfbuzz_font_skia.h" | 5 #include "ui/gfx/harfbuzz_font_skia.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 #include <stdint.h> |
| 9 |
7 #include <limits> | 10 #include <limits> |
8 #include <map> | 11 #include <map> |
9 | 12 |
10 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
11 #include "base/logging.h" | 14 #include "base/logging.h" |
| 15 #include "base/macros.h" |
12 #include "third_party/skia/include/core/SkPaint.h" | 16 #include "third_party/skia/include/core/SkPaint.h" |
13 #include "third_party/skia/include/core/SkTypeface.h" | 17 #include "third_party/skia/include/core/SkTypeface.h" |
14 #include "ui/gfx/render_text.h" | 18 #include "ui/gfx/render_text.h" |
15 | 19 |
16 namespace gfx { | 20 namespace gfx { |
17 | 21 |
18 namespace { | 22 namespace { |
19 | 23 |
20 class HarfBuzzFace; | 24 class HarfBuzzFace; |
21 | 25 |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
275 // TODO(ckocagil): Do we need to update these params later? | 279 // TODO(ckocagil): Do we need to update these params later? |
276 internal::ApplyRenderParams(params, subpixel_rendering_suppressed, | 280 internal::ApplyRenderParams(params, subpixel_rendering_suppressed, |
277 &hb_font_data->paint_); | 281 &hb_font_data->paint_); |
278 hb_font_set_funcs(harfbuzz_font, g_font_funcs.Get().get(), hb_font_data, | 282 hb_font_set_funcs(harfbuzz_font, g_font_funcs.Get().get(), hb_font_data, |
279 DeleteByType<FontData>); | 283 DeleteByType<FontData>); |
280 hb_font_make_immutable(harfbuzz_font); | 284 hb_font_make_immutable(harfbuzz_font); |
281 return harfbuzz_font; | 285 return harfbuzz_font; |
282 } | 286 } |
283 | 287 |
284 } // namespace gfx | 288 } // namespace gfx |
OLD | NEW |