| 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_RENDER_TEXT_HARFBUZZ_H_ | 5 #ifndef UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 6 #define UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| 7 | 7 |
| 8 #include <stddef.h> | 8 #include <stddef.h> |
| 9 #include <stdint.h> | 9 #include <stdint.h> |
| 10 | 10 |
| (...skipping 56 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 67 bool is_rtl; | 67 bool is_rtl; |
| 68 UBiDiLevel level; | 68 UBiDiLevel level; |
| 69 UScriptCode script; | 69 UScriptCode script; |
| 70 | 70 |
| 71 std::unique_ptr<uint16_t[]> glyphs; | 71 std::unique_ptr<uint16_t[]> glyphs; |
| 72 std::unique_ptr<SkPoint[]> positions; | 72 std::unique_ptr<SkPoint[]> positions; |
| 73 std::vector<uint32_t> glyph_to_char; | 73 std::vector<uint32_t> glyph_to_char; |
| 74 size_t glyph_count; | 74 size_t glyph_count; |
| 75 | 75 |
| 76 Font font; | 76 Font font; |
| 77 skia::RefPtr<SkTypeface> skia_face; | 77 sk_sp<SkTypeface> skia_face; |
| 78 FontRenderParams render_params; | 78 FontRenderParams render_params; |
| 79 int font_size; | 79 int font_size; |
| 80 int baseline_offset; | 80 int baseline_offset; |
| 81 int baseline_type; | 81 int baseline_type; |
| 82 int font_style; | 82 int font_style; |
| 83 bool strike; | 83 bool strike; |
| 84 bool diagonal_strike; | 84 bool diagonal_strike; |
| 85 bool underline; | 85 bool underline; |
| 86 | 86 |
| 87 private: | 87 private: |
| (...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 274 | 274 |
| 275 // Fixed width of glyphs. This should only be set in test environments. | 275 // Fixed width of glyphs. This should only be set in test environments. |
| 276 float glyph_width_for_test_; | 276 float glyph_width_for_test_; |
| 277 | 277 |
| 278 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); | 278 DISALLOW_COPY_AND_ASSIGN(RenderTextHarfBuzz); |
| 279 }; | 279 }; |
| 280 | 280 |
| 281 } // namespace gfx | 281 } // namespace gfx |
| 282 | 282 |
| 283 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ | 283 #endif // UI_GFX_RENDER_TEXT_HARFBUZZ_H_ |
| OLD | NEW |