| 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 #include "ui/gfx/render_text_harfbuzz.h" | 5 #include "ui/gfx/render_text_harfbuzz.h" |
| 6 | 6 |
| 7 #include <limits> |
| 7 #include <map> | 8 #include <map> |
| 8 | 9 |
| 9 #include "base/i18n/bidi_line_iterator.h" | 10 #include "base/i18n/bidi_line_iterator.h" |
| 10 #include "base/i18n/break_iterator.h" | 11 #include "base/i18n/break_iterator.h" |
| 11 #include "base/i18n/char_iterator.h" | 12 #include "base/i18n/char_iterator.h" |
| 12 #include "base/lazy_instance.h" | 13 #include "base/lazy_instance.h" |
| 13 #include "third_party/harfbuzz-ng/src/hb.h" | 14 #include "third_party/harfbuzz-ng/src/hb.h" |
| 14 #include "third_party/icu/source/common/unicode/ubidi.h" | 15 #include "third_party/icu/source/common/unicode/ubidi.h" |
| 15 #include "third_party/skia/include/core/SkColor.h" | 16 #include "third_party/skia/include/core/SkColor.h" |
| 16 #include "third_party/skia/include/core/SkTypeface.h" | 17 #include "third_party/skia/include/core/SkTypeface.h" |
| (...skipping 1131 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1148 run->positions[i].set(run->width + x_offset, -y_offset); | 1149 run->positions[i].set(run->width + x_offset, -y_offset); |
| 1149 run->width += SkFixedToScalar(hb_positions[i].x_advance); | 1150 run->width += SkFixedToScalar(hb_positions[i].x_advance); |
| 1150 } | 1151 } |
| 1151 | 1152 |
| 1152 hb_buffer_destroy(buffer); | 1153 hb_buffer_destroy(buffer); |
| 1153 hb_font_destroy(harfbuzz_font); | 1154 hb_font_destroy(harfbuzz_font); |
| 1154 return true; | 1155 return true; |
| 1155 } | 1156 } |
| 1156 | 1157 |
| 1157 } // namespace gfx | 1158 } // namespace gfx |
| OLD | NEW |