Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(991)

Side by Side Diff: ui/gfx/render_text_harfbuzz.h

Issue 1907833002: RenderTextMac: Cache the SkTypeface on the TextRun (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: skia::RefPtr<>(Adopt(..)) -> sk_sp<>(..) Created 4 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « ui/gfx/render_text.cc ('k') | ui/gfx/render_text_harfbuzz.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698